Add a BUILD_FLAGS variable so that autoconf checks have a place
[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_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_EXPENSIVE_CHECKS
691 EXPENSIVE_CHECKS
692 DEBUG_RUNTIME
693 DEBUG_SYMBOLS
694 JIT
695 TARGET_HAS_JIT
696 ENABLE_DOCS
697 ENABLE_DOXYGEN
698 LLVM_ENABLE_THREADS
699 ENABLE_PTHREADS
700 ENABLE_PIC
701 ENABLE_SHARED
702 ENABLE_EMBED_STDCXX
703 ENABLE_TIMESTAMPS
704 TARGETS_TO_BUILD
705 LLVM_ENUM_TARGETS
706 LLVM_ENUM_ASM_PRINTERS
707 LLVM_ENUM_ASM_PARSERS
708 LLVM_ENUM_DISASSEMBLERS
709 OPTIMIZE_OPTION
710 EXTRA_OPTIONS
711 EXTRA_LD_OPTIONS
712 CLANG_SRC_ROOT
713 BINUTILS_INCDIR
714 INTERNAL_PREFIX
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 PDFROFF
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 NO_VARIADIC_MACROS
761 NO_MISSING_FIELD_INITIALIZERS
762 COVERED_SWITCH_DEFAULT
763 USE_UDIS86
764 USE_OPROFILE
765 USE_INTEL_JITEVENTS
766 INTEL_JITEVENTS_INCDIR
767 INTEL_JITEVENTS_LIBDIR
768 BUILD_FLAGS
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 SHLIBEXT
773 SHLIBPATH_VAR
774 LLVM_PREFIX
775 LLVM_BINDIR
776 LLVM_LIBDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='projects/llvm-gcc
805 projects/test-suite
806 projects/llvm-test
807 projects/poolalloc
808 projects/llvm-poolalloc
809 projects/sample
810 projects/privbracket
811 projects/llvm-stacker
812 projects/llvm-reopt
813 projects/llvm-java
814 projects/llvm-tv
815 projects/safecode
816 projects/llvm-kernel
817 tools/polly'
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924    { (exit 1); exit 1; }; }
925     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926     eval enable_$ac_feature=no ;;
927
928   -docdir | --docdir | --docdi | --doc | --do)
929     ac_prev=docdir ;;
930   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931     docdir=$ac_optarg ;;
932
933   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934     ac_prev=dvidir ;;
935   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936     dvidir=$ac_optarg ;;
937
938   -enable-* | --enable-*)
939     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940     # Reject names that are not valid shell variable names.
941     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943    { (exit 1); exit 1; }; }
944     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945     eval enable_$ac_feature=\$ac_optarg ;;
946
947   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949   | --exec | --exe | --ex)
950     ac_prev=exec_prefix ;;
951   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953   | --exec=* | --exe=* | --ex=*)
954     exec_prefix=$ac_optarg ;;
955
956   -gas | --gas | --ga | --g)
957     # Obsolete; use --with-gas.
958     with_gas=yes ;;
959
960   -help | --help | --hel | --he | -h)
961     ac_init_help=long ;;
962   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963     ac_init_help=recursive ;;
964   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965     ac_init_help=short ;;
966
967   -host | --host | --hos | --ho)
968     ac_prev=host_alias ;;
969   -host=* | --host=* | --hos=* | --ho=*)
970     host_alias=$ac_optarg ;;
971
972   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973     ac_prev=htmldir ;;
974   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975   | --ht=*)
976     htmldir=$ac_optarg ;;
977
978   -includedir | --includedir | --includedi | --included | --include \
979   | --includ | --inclu | --incl | --inc)
980     ac_prev=includedir ;;
981   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982   | --includ=* | --inclu=* | --incl=* | --inc=*)
983     includedir=$ac_optarg ;;
984
985   -infodir | --infodir | --infodi | --infod | --info | --inf)
986     ac_prev=infodir ;;
987   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988     infodir=$ac_optarg ;;
989
990   -libdir | --libdir | --libdi | --libd)
991     ac_prev=libdir ;;
992   -libdir=* | --libdir=* | --libdi=* | --libd=*)
993     libdir=$ac_optarg ;;
994
995   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996   | --libexe | --libex | --libe)
997     ac_prev=libexecdir ;;
998   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999   | --libexe=* | --libex=* | --libe=*)
1000     libexecdir=$ac_optarg ;;
1001
1002   -localedir | --localedir | --localedi | --localed | --locale)
1003     ac_prev=localedir ;;
1004   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005     localedir=$ac_optarg ;;
1006
1007   -localstatedir | --localstatedir | --localstatedi | --localstated \
1008   | --localstate | --localstat | --localsta | --localst | --locals)
1009     ac_prev=localstatedir ;;
1010   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012     localstatedir=$ac_optarg ;;
1013
1014   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015     ac_prev=mandir ;;
1016   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017     mandir=$ac_optarg ;;
1018
1019   -nfp | --nfp | --nf)
1020     # Obsolete; use --without-fp.
1021     with_fp=no ;;
1022
1023   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024   | --no-cr | --no-c | -n)
1025     no_create=yes ;;
1026
1027   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029     no_recursion=yes ;;
1030
1031   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033   | --oldin | --oldi | --old | --ol | --o)
1034     ac_prev=oldincludedir ;;
1035   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038     oldincludedir=$ac_optarg ;;
1039
1040   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041     ac_prev=prefix ;;
1042   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043     prefix=$ac_optarg ;;
1044
1045   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046   | --program-pre | --program-pr | --program-p)
1047     ac_prev=program_prefix ;;
1048   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050     program_prefix=$ac_optarg ;;
1051
1052   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053   | --program-suf | --program-su | --program-s)
1054     ac_prev=program_suffix ;;
1055   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057     program_suffix=$ac_optarg ;;
1058
1059   -program-transform-name | --program-transform-name \
1060   | --program-transform-nam | --program-transform-na \
1061   | --program-transform-n | --program-transform- \
1062   | --program-transform | --program-transfor \
1063   | --program-transfo | --program-transf \
1064   | --program-trans | --program-tran \
1065   | --progr-tra | --program-tr | --program-t)
1066     ac_prev=program_transform_name ;;
1067   -program-transform-name=* | --program-transform-name=* \
1068   | --program-transform-nam=* | --program-transform-na=* \
1069   | --program-transform-n=* | --program-transform-=* \
1070   | --program-transform=* | --program-transfor=* \
1071   | --program-transfo=* | --program-transf=* \
1072   | --program-trans=* | --program-tran=* \
1073   | --progr-tra=* | --program-tr=* | --program-t=*)
1074     program_transform_name=$ac_optarg ;;
1075
1076   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077     ac_prev=pdfdir ;;
1078   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079     pdfdir=$ac_optarg ;;
1080
1081   -psdir | --psdir | --psdi | --psd | --ps)
1082     ac_prev=psdir ;;
1083   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084     psdir=$ac_optarg ;;
1085
1086   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087   | -silent | --silent | --silen | --sile | --sil)
1088     silent=yes ;;
1089
1090   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091     ac_prev=sbindir ;;
1092   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093   | --sbi=* | --sb=*)
1094     sbindir=$ac_optarg ;;
1095
1096   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098   | --sharedst | --shareds | --shared | --share | --shar \
1099   | --sha | --sh)
1100     ac_prev=sharedstatedir ;;
1101   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104   | --sha=* | --sh=*)
1105     sharedstatedir=$ac_optarg ;;
1106
1107   -site | --site | --sit)
1108     ac_prev=site ;;
1109   -site=* | --site=* | --sit=*)
1110     site=$ac_optarg ;;
1111
1112   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113     ac_prev=srcdir ;;
1114   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115     srcdir=$ac_optarg ;;
1116
1117   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118   | --syscon | --sysco | --sysc | --sys | --sy)
1119     ac_prev=sysconfdir ;;
1120   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122     sysconfdir=$ac_optarg ;;
1123
1124   -target | --target | --targe | --targ | --tar | --ta | --t)
1125     ac_prev=target_alias ;;
1126   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127     target_alias=$ac_optarg ;;
1128
1129   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130     verbose=yes ;;
1131
1132   -version | --version | --versio | --versi | --vers | -V)
1133     ac_init_version=: ;;
1134
1135   -with-* | --with-*)
1136     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid package name: $ac_package" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_package=`echo $ac_package| sed 's/-/_/g'`
1142     eval with_$ac_package=\$ac_optarg ;;
1143
1144   -without-* | --without-*)
1145     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146     # Reject names that are not valid shell variable names.
1147     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148       { echo "$as_me: error: invalid package name: $ac_package" >&2
1149    { (exit 1); exit 1; }; }
1150     ac_package=`echo $ac_package | sed 's/-/_/g'`
1151     eval with_$ac_package=no ;;
1152
1153   --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156
1157   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158   | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163
1164   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170
1171   -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173    { (exit 1); exit 1; }; }
1174     ;;
1175
1176   *=*)
1177     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181    { (exit 1); exit 1; }; }
1182     eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184
1185   *)
1186     # FIXME: should be removed in autoconf 3.0.
1187     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191     ;;
1192
1193   esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198   { echo "$as_me: error: missing argument to $ac_option" >&2
1199    { (exit 1); exit 1; }; }
1200 fi
1201
1202 # Be sure to have absolute directory names.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   case $ac_val in
1210     [\\/$]* | ?:[\\/]* )  continue;;
1211     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212   esac
1213   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214    { (exit 1); exit 1; }; }
1215 done
1216
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1223
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226   if test "x$build_alias" = x; then
1227     cross_compiling=maybe
1228     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229     If a cross compiler is detected then cross compile mode will be used." >&2
1230   elif test "x$build_alias" != "x$host_alias"; then
1231     cross_compiling=yes
1232   fi
1233 fi
1234
1235 ac_tool_prefix=
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238 test "$silent" = yes && exec 6>/dev/null
1239
1240
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244   { echo "$as_me: error: Working directory cannot be determined" >&2
1245    { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   { echo "$as_me: error: pwd does not report name of working directory" >&2
1248    { (exit 1); exit 1; }; }
1249
1250
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253   ac_srcdir_defaulted=yes
1254   # Try the directory containing this script, then the parent directory.
1255   ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257          X"$0" : 'X\(//\)[^/]' \| \
1258          X"$0" : 'X\(//\)$' \| \
1259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260 echo X"$0" |
1261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\/\)[^/].*/{
1266             s//\1/
1267             q
1268           }
1269           /^X\(\/\/\)$/{
1270             s//\1/
1271             q
1272           }
1273           /^X\(\/\).*/{
1274             s//\1/
1275             q
1276           }
1277           s/.*/./; q'`
1278   srcdir=$ac_confdir
1279   if test ! -r "$srcdir/$ac_unique_file"; then
1280     srcdir=..
1281   fi
1282 else
1283   ac_srcdir_defaulted=no
1284 fi
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288    { (exit 1); exit 1; }; }
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293    { (exit 1); exit 1; }; }
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR           user executables [EPREFIX/bin]
1354   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR       program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR           object code libraries [EPREFIX/lib]
1360   --includedir=DIR       C header files [PREFIX/include]
1361   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR          info documentation [DATAROOTDIR/info]
1365   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR           man documentation [DATAROOTDIR/man]
1367   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1368   --htmldir=DIR          html documentation [DOCDIR]
1369   --dvidir=DIR           dvi documentation [DOCDIR]
1370   --pdfdir=DIR           pdf documentation [DOCDIR]
1371   --psdir=DIR            ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384   case $ac_init_help in
1385      short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1386    esac
1387   cat <<\_ACEOF
1388
1389 Optional Features:
1390   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392   --enable-polly          Use polly if available (default is YES)
1393   --enable-libcpp         Use libc++ if available (default is NO)
1394   --enable-optimized      Compile with optimizations enabled (default is NO)
1395   --enable-profiling      Compile with profiling enabled (default is NO)
1396   --enable-assertions     Compile with assertion checks enabled (default is
1397                           YES)
1398   --enable-expensive-checks
1399                           Compile with expensive debug checks enabled (default
1400                           is NO)
1401   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1402                           NO)
1403   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1404                           optimization is on and YES if it's off)
1405   --enable-jit            Enable Just In Time Compiling (default is YES)
1406   --enable-docs           Build documents (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pthreads       Use pthreads if available (default is YES)
1410   --enable-pic            Build LLVM with Position Independent Code (default
1411                           is YES)
1412   --enable-shared         Build a shared library and link tools against it
1413                           (default is NO)
1414   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1415                           Win32 DLL (default is NO)
1416   --enable-timestamps     Enable embedding timestamp information in build
1417                           (default is YES)
1418   --enable-targets        Build specific host targets: all or
1419                           target1,target2,... Valid targets are: host, x86,
1420                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421                           xcore, msp430, nvptx, and cpp (default=all)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-optimize-option  Select the compiler options to use for optimized
1431                           builds
1432   --with-extra-options    Specify additional options to compile LLVM with
1433   --with-extra-ld-options Specify additional options to link LLVM with
1434   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1435                           is stdlib)
1436   --with-clang-srcdir     Directory to the out-of-tree Clang source
1437   --with-clang-resource-dir
1438                           Relative directory from the Clang binary for
1439                           resource files
1440   --with-c-include-dirs   Colon separated list of directories clang will
1441                           search for headers
1442   --with-gcc-toolchain    Directory where gcc is installed.
1443   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1444   --with-binutils-include Specify path to binutils/include/ containing
1445                           plugin-api.h file for gold plugin.
1446   --with-bug-report-url   Specify the URL where bug reports should be
1447                           submitted (default=http://llvm.org/bugs/)
1448   --with-internal-prefix  Installation directory for internal files
1449   --with-udis86=<path>    Use udis86 external x86 disassembler library
1450   --with-oprofile=<prefix>
1451                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1452   --with-intel-jitevents=<vtune-amplifier-dir>
1453                           Specify location of run-time support library for
1454                           Intel JIT API
1455                           (default=/opt/intel/vtune_amplifier_xe_2011)
1456
1457 Some influential environment variables:
1458   CC          C compiler command
1459   CFLAGS      C compiler flags
1460   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461               nonstandard directory <lib dir>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   CXX         C++ compiler command
1465   CXXFLAGS    C++ compiler flags
1466   CPP         C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <http://llvm.org/bugs/>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" || continue
1480     ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486   # A ".." for each directory in $ac_dir_suffix.
1487   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488   case $ac_top_builddir_sub in
1489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491   esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499   .)  # We are building in place.
1500     ac_srcdir=.
1501     ac_top_srcdir=$ac_top_builddir_sub
1502     ac_abs_top_srcdir=$ac_pwd ;;
1503   [\\/]* | ?:[\\/]* )  # Absolute name.
1504     ac_srcdir=$srcdir$ac_dir_suffix;
1505     ac_top_srcdir=$srcdir
1506     ac_abs_top_srcdir=$srcdir ;;
1507   *) # Relative name.
1508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509     ac_top_srcdir=$ac_top_build_prefix$srcdir
1510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514     cd "$ac_dir" || { ac_status=$?; continue; }
1515     # Check for guested configure.
1516     if test -f "$ac_srcdir/configure.gnu"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519     elif test -f "$ac_srcdir/configure"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure" --help=recursive
1522     else
1523       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524     fi || ac_status=$?
1525     cd "$ac_pwd" || { ac_status=$?; break; }
1526   done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531   cat <<\_ACEOF
1532 LLVM configure 3.2svn
1533 generated by GNU Autoconf 2.60
1534
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539
1540 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1541 _ACEOF
1542   exit
1543 fi
1544 cat >config.log <<_ACEOF
1545 This file contains any messages produced by compilers while
1546 running configure, to aid debugging if configure makes a mistake.
1547
1548 It was created by LLVM $as_me 3.2svn, which was
1549 generated by GNU Autoconf 2.60.  Invocation command line was
1550
1551   $ $0 $@
1552
1553 _ACEOF
1554 exec 5>>config.log
1555 {
1556 cat <<_ASUNAME
1557 ## --------- ##
1558 ## Platform. ##
1559 ## --------- ##
1560
1561 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1562 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1563 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1564 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1565 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566
1567 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1568 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1569
1570 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1571 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1572 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1573 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1574 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1575 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1576 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1577
1578 _ASUNAME
1579
1580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 for as_dir in $PATH
1582 do
1583   IFS=$as_save_IFS
1584   test -z "$as_dir" && as_dir=.
1585   echo "PATH: $as_dir"
1586 done
1587 IFS=$as_save_IFS
1588
1589 } >&5
1590
1591 cat >&5 <<_ACEOF
1592
1593
1594 ## ----------- ##
1595 ## Core tests. ##
1596 ## ----------- ##
1597
1598 _ACEOF
1599
1600
1601 # Keep a trace of the command line.
1602 # Strip out --no-create and --no-recursion so they do not pile up.
1603 # Strip out --silent because we don't want to record it for future runs.
1604 # Also quote any args containing shell meta-characters.
1605 # Make two passes to allow for proper duplicate-argument suppression.
1606 ac_configure_args=
1607 ac_configure_args0=
1608 ac_configure_args1=
1609 ac_must_keep_next=false
1610 for ac_pass in 1 2
1611 do
1612   for ac_arg
1613   do
1614     case $ac_arg in
1615     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1616     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1617     | -silent | --silent | --silen | --sile | --sil)
1618       continue ;;
1619     *\'*)
1620       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621     esac
1622     case $ac_pass in
1623     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624     2)
1625       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1626       if test $ac_must_keep_next = true; then
1627         ac_must_keep_next=false # Got value, back to normal.
1628       else
1629         case $ac_arg in
1630           *=* | --config-cache | -C | -disable-* | --disable-* \
1631           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1632           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1633           | -with-* | --with-* | -without-* | --without-* | --x)
1634             case "$ac_configure_args0 " in
1635               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636             esac
1637             ;;
1638           -* ) ac_must_keep_next=true ;;
1639         esac
1640       fi
1641       ac_configure_args="$ac_configure_args '$ac_arg'"
1642       ;;
1643     esac
1644   done
1645 done
1646 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1647 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648
1649 # When interrupted or exit'd, cleanup temporary files, and complete
1650 # config.log.  We remove comments because anyway the quotes in there
1651 # would cause problems or look ugly.
1652 # WARNING: Use '\'' to represent an apostrophe within the trap.
1653 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1654 trap 'exit_status=$?
1655   # Save into config.log some information that might help in debugging.
1656   {
1657     echo
1658
1659     cat <<\_ASBOX
1660 ## ---------------- ##
1661 ## Cache variables. ##
1662 ## ---------------- ##
1663 _ASBOX
1664     echo
1665     # The following way of writing the cache mishandles newlines in values,
1666 (
1667   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1668     eval ac_val=\$$ac_var
1669     case $ac_val in #(
1670     *${as_nl}*)
1671       case $ac_var in #(
1672       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1673 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674       esac
1675       case $ac_var in #(
1676       _ | IFS | as_nl) ;; #(
1677       *) $as_unset $ac_var ;;
1678       esac ;;
1679     esac
1680   done
1681   (set) 2>&1 |
1682     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1683     *${as_nl}ac_space=\ *)
1684       sed -n \
1685         "s/'\''/'\''\\\\'\'''\''/g;
1686           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687       ;; #(
1688     *)
1689       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1690       ;;
1691     esac |
1692     sort
1693 )
1694     echo
1695
1696     cat <<\_ASBOX
1697 ## ----------------- ##
1698 ## Output variables. ##
1699 ## ----------------- ##
1700 _ASBOX
1701     echo
1702     for ac_var in $ac_subst_vars
1703     do
1704       eval ac_val=\$$ac_var
1705       case $ac_val in
1706       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707       esac
1708       echo "$ac_var='\''$ac_val'\''"
1709     done | sort
1710     echo
1711
1712     if test -n "$ac_subst_files"; then
1713       cat <<\_ASBOX
1714 ## ------------------- ##
1715 ## File substitutions. ##
1716 ## ------------------- ##
1717 _ASBOX
1718       echo
1719       for ac_var in $ac_subst_files
1720       do
1721         eval ac_val=\$$ac_var
1722         case $ac_val in
1723         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724         esac
1725         echo "$ac_var='\''$ac_val'\''"
1726       done | sort
1727       echo
1728     fi
1729
1730     if test -s confdefs.h; then
1731       cat <<\_ASBOX
1732 ## ----------- ##
1733 ## confdefs.h. ##
1734 ## ----------- ##
1735 _ASBOX
1736       echo
1737       cat confdefs.h
1738       echo
1739     fi
1740     test "$ac_signal" != 0 &&
1741       echo "$as_me: caught signal $ac_signal"
1742     echo "$as_me: exit $exit_status"
1743   } >&5
1744   rm -f core *.core core.conftest.* &&
1745     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746     exit $exit_status
1747 ' 0
1748 for ac_signal in 1 2 13 15; do
1749   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750 done
1751 ac_signal=0
1752
1753 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1754 rm -f -r conftest* confdefs.h
1755
1756 # Predefined preprocessor variables.
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_NAME "$PACKAGE_NAME"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_STRING "$PACKAGE_STRING"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780 _ACEOF
1781
1782
1783 # Let the site file select an alternate cache file if it wants to.
1784 # Prefer explicitly selected file to automatically selected ones.
1785 if test -n "$CONFIG_SITE"; then
1786   set x "$CONFIG_SITE"
1787 elif test "x$prefix" != xNONE; then
1788   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 else
1790   set x "$ac_default_prefix/share/config.site" \
1791         "$ac_default_prefix/etc/config.site"
1792 fi
1793 shift
1794 for ac_site_file
1795 do
1796   if test -r "$ac_site_file"; then
1797     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1798 echo "$as_me: loading site script $ac_site_file" >&6;}
1799     sed 's/^/| /' "$ac_site_file" >&5
1800     . "$ac_site_file"
1801   fi
1802 done
1803
1804 if test -r "$cache_file"; then
1805   # Some versions of bash will fail to source /dev/null (special
1806   # files actually), so we avoid doing that.
1807   if test -f "$cache_file"; then
1808     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1809 echo "$as_me: loading cache $cache_file" >&6;}
1810     case $cache_file in
1811       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1812       *)                      . "./$cache_file";;
1813     esac
1814   fi
1815 else
1816   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1817 echo "$as_me: creating cache $cache_file" >&6;}
1818   >$cache_file
1819 fi
1820
1821 # Check that the precious variables saved in the cache have kept the same
1822 # value.
1823 ac_cache_corrupted=false
1824 for ac_var in $ac_precious_vars; do
1825   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1826   eval ac_new_set=\$ac_env_${ac_var}_set
1827   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1828   eval ac_new_val=\$ac_env_${ac_var}_value
1829   case $ac_old_set,$ac_new_set in
1830     set,)
1831       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1833       ac_cache_corrupted=: ;;
1834     ,set)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,);;
1839     *)
1840       if test "x$ac_old_val" != "x$ac_new_val"; then
1841         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1842 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1843         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1844 echo "$as_me:   former value:  $ac_old_val" >&2;}
1845         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1846 echo "$as_me:   current value: $ac_new_val" >&2;}
1847         ac_cache_corrupted=:
1848       fi;;
1849   esac
1850   # Pass precious variables to config.status.
1851   if test "$ac_new_set" = set; then
1852     case $ac_new_val in
1853     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1854     *) ac_arg=$ac_var=$ac_new_val ;;
1855     esac
1856     case " $ac_configure_args " in
1857       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1858       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859     esac
1860   fi
1861 done
1862 if $ac_cache_corrupted; then
1863   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1864 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1865   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1866 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1867    { (exit 1); exit 1; }; }
1868 fi
1869
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 ac_ext=c
1895 ac_cpp='$CPP $CPPFLAGS'
1896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899
1900
1901
1902 cat >>confdefs.h <<\_ACEOF
1903 #define LLVM_VERSION_MAJOR 3
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<\_ACEOF
1908 #define LLVM_VERSION_MINOR 2
1909 _ACEOF
1910
1911
1912 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1913
1914
1915
1916
1917
1918
1919
1920 ac_aux_dir=
1921 for ac_dir in autoconf "$srcdir"/autoconf; do
1922   if test -f "$ac_dir/install-sh"; then
1923     ac_aux_dir=$ac_dir
1924     ac_install_sh="$ac_aux_dir/install-sh -c"
1925     break
1926   elif test -f "$ac_dir/install.sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install.sh -c"
1929     break
1930   elif test -f "$ac_dir/shtool"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/shtool install -c"
1933     break
1934   fi
1935 done
1936 if test -z "$ac_aux_dir"; then
1937   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1938 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1939    { (exit 1); exit 1; }; }
1940 fi
1941
1942 # These three variables are undocumented and unsupported,
1943 # and are intended to be withdrawn in a future Autoconf release.
1944 # They can cause serious problems if a builder's source tree is in a directory
1945 # whose full name contains unusual characters.
1946 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1947 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1948 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1949
1950
1951
1952 if test ${srcdir} != "." ; then
1953   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1954     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1955 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1956    { (exit 1); exit 1; }; }
1957   fi
1958 fi
1959
1960 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966   for ac_prog in clang llvm-gcc gcc
1967   do
1968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test -n "$CC"; then
1976   ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983   for ac_exec_ext in '' $ac_executable_extensions; do
1984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991 IFS=$as_save_IFS
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
1999 else
2000   { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2002 fi
2003
2004
2005     test -n "$CC" && break
2006   done
2007 fi
2008 if test -z "$CC"; then
2009   ac_ct_CC=$CC
2010   for ac_prog in clang llvm-gcc gcc
2011 do
2012   # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017   echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019   if test -n "$ac_ct_CC"; then
2020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   for ac_exec_ext in '' $ac_executable_extensions; do
2028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2029     ac_cv_prog_ac_ct_CC="$ac_prog"
2030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 fi
2038 fi
2039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040 if test -n "$ac_ct_CC"; then
2041   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 else
2044   { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2046 fi
2047
2048
2049   test -n "$ac_ct_CC" && break
2050 done
2051
2052   if test "x$ac_ct_CC" = x; then
2053     CC=""
2054   else
2055     case $cross_compiling:$ac_tool_warned in
2056 yes:)
2057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2058 whose name does not start with the host triplet.  If you think this
2059 configuration is useful to you, please write to autoconf@gnu.org." >&5
2060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2061 whose name does not start with the host triplet.  If you think this
2062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2063 ac_tool_warned=yes ;;
2064 esac
2065     CC=$ac_ct_CC
2066   fi
2067 fi
2068
2069
2070 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: no acceptable C compiler found in \$PATH
2073 See \`config.log' for more details." >&2;}
2074    { (exit 1); exit 1; }; }
2075
2076 # Provide some information about the compiler.
2077 echo "$as_me:$LINENO: checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (ac_try="$ac_compiler --version >&5"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2085   (eval "$ac_compiler --version >&5") 2>&5
2086   ac_status=$?
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); }
2089 { (ac_try="$ac_compiler -v >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler -v >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -V >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -V >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109
2110 cat >conftest.$ac_ext <<_ACEOF
2111 /* confdefs.h.  */
2112 _ACEOF
2113 cat confdefs.h >>conftest.$ac_ext
2114 cat >>conftest.$ac_ext <<_ACEOF
2115 /* end confdefs.h.  */
2116
2117 int
2118 main ()
2119 {
2120
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 ac_clean_files_save=$ac_clean_files
2126 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127 # Try to create an executable without -o first, disregard a.out.
2128 # It will help us diagnose broken compilers, and finding out an intuition
2129 # of exeext.
2130 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2132 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 #
2134 # List of possible output files, starting from the most likely.
2135 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2136 # only as a last resort.  b.out is created by i960 compilers.
2137 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138 #
2139 # The IRIX 6 linker writes into existing files which may not be
2140 # executable, retaining their permissions.  Remove them first so a
2141 # subsequent execution test works.
2142 ac_rmfiles=
2143 for ac_file in $ac_files
2144 do
2145   case $ac_file in
2146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2147     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2148   esac
2149 done
2150 rm -f $ac_rmfiles
2151
2152 if { (ac_try="$ac_link_default"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158   (eval "$ac_link_default") 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2164 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2165 # so that the user can short-circuit this test for compilers unknown to
2166 # Autoconf.
2167 for ac_file in $ac_files
2168 do
2169   test -f "$ac_file" || continue
2170   case $ac_file in
2171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2172         ;;
2173     [ab].out )
2174         # We found the default executable, but exeext='' is most
2175         # certainly right.
2176         break;;
2177     *.* )
2178         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2179         then :; else
2180            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181         fi
2182         # We set ac_cv_exeext here because the later test for it is not
2183         # safe: cross compilers may not add the suffix if given an `-o'
2184         # argument, so we may need to know it at that point already.
2185         # Even if this section looks crufty: it has the advantage of
2186         # actually working.
2187         break;;
2188     * )
2189         break;;
2190   esac
2191 done
2192 test "$ac_cv_exeext" = no && ac_cv_exeext=
2193
2194 else
2195   echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199 See \`config.log' for more details." >&5
2200 echo "$as_me: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&2;}
2202    { (exit 77); exit 77; }; }
2203 fi
2204
2205 ac_exeext=$ac_cv_exeext
2206 { echo "$as_me:$LINENO: result: $ac_file" >&5
2207 echo "${ECHO_T}$ac_file" >&6; }
2208
2209 # Check that the compiler produces executables we can run.  If not, either
2210 # the compiler is broken, or we cross compile.
2211 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2213 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214 # If not cross compiling, check that we can run a simple program.
2215 if test "$cross_compiling" != yes; then
2216   if { ac_try='./$ac_file'
2217   { (case "(($ac_try" in
2218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219   *) ac_try_echo=$ac_try;;
2220 esac
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222   (eval "$ac_try") 2>&5
2223   ac_status=$?
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); }; }; then
2226     cross_compiling=no
2227   else
2228     if test "$cross_compiling" = maybe; then
2229         cross_compiling=yes
2230     else
2231         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2232 If you meant to cross compile, use \`--host'.
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot run C compiled programs.
2235 If you meant to cross compile, use \`--host'.
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238     fi
2239   fi
2240 fi
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2243
2244 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2245 ac_clean_files=$ac_clean_files_save
2246 # Check that the compiler produces executables we can run.  If not, either
2247 # the compiler is broken, or we cross compile.
2248 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2249 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2250 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2251 echo "${ECHO_T}$cross_compiling" >&6; }
2252
2253 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2254 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2255 if { (ac_try="$ac_link"
2256 case "(($ac_try" in
2257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258   *) ac_try_echo=$ac_try;;
2259 esac
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261   (eval "$ac_link") 2>&5
2262   ac_status=$?
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); }; then
2265   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2266 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2267 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 # `rm'.
2269 for ac_file in conftest.exe conftest conftest.*; do
2270   test -f "$ac_file" || continue
2271   case $ac_file in
2272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2273     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2274           break;;
2275     * ) break;;
2276   esac
2277 done
2278 else
2279   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283    { (exit 1); exit 1; }; }
2284 fi
2285
2286 rm -f conftest$ac_cv_exeext
2287 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2289
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2292 ac_exeext=$EXEEXT
2293 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2295 if test "${ac_cv_objext+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   cat >conftest.$ac_ext <<_ACEOF
2299 /* confdefs.h.  */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h.  */
2304
2305 int
2306 main ()
2307 {
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.o conftest.obj
2314 if { (ac_try="$ac_compile"
2315 case "(($ac_try" in
2316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317   *) ac_try_echo=$ac_try;;
2318 esac
2319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2320   (eval "$ac_compile") 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; then
2324   for ac_file in conftest.o conftest.obj conftest.*; do
2325   test -f "$ac_file" || continue;
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2328     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329        break;;
2330   esac
2331 done
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details." >&2;}
2340    { (exit 1); exit 1; }; }
2341 fi
2342
2343 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 fi
2345 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346 echo "${ECHO_T}$ac_cv_objext" >&6; }
2347 OBJEXT=$ac_cv_objext
2348 ac_objext=$OBJEXT
2349 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2351 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 int
2362 main ()
2363 {
2364 #ifndef __GNUC__
2365        choke me
2366 #endif
2367
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2374 case "(($ac_try" in
2375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376   *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379   (eval "$ac_compile") 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387   { (case "(($ac_try" in
2388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389   *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392   (eval "$ac_try") 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; } &&
2396          { ac_try='test -s conftest.$ac_objext'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   ac_compiler_gnu=yes
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411         ac_compiler_gnu=no
2412 fi
2413
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416
2417 fi
2418 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2419 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2420 GCC=`test $ac_compiler_gnu = yes && echo yes`
2421 ac_test_CFLAGS=${CFLAGS+set}
2422 ac_save_CFLAGS=$CFLAGS
2423 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2424 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_cc_g+set}" = set; then
2426   echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428   ac_save_c_werror_flag=$ac_c_werror_flag
2429    ac_c_werror_flag=yes
2430    ac_cv_prog_cc_g=no
2431    CFLAGS="-g"
2432    cat >conftest.$ac_ext <<_ACEOF
2433 /* confdefs.h.  */
2434 _ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h.  */
2438
2439 int
2440 main ()
2441 {
2442
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454   (eval "$ac_compile") 2>conftest.er1
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
2458   cat conftest.err >&5
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); } &&
2461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462   { (case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_try") 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_cv_prog_cc_g=yes
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486         CFLAGS=""
2487       cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   :
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541         ac_c_werror_flag=$ac_save_c_werror_flag
2542          CFLAGS="-g"
2543          cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.$ac_objext
2559 if { (ac_try="$ac_compile"
2560 case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_compile") 2>conftest.er1
2566   ac_status=$?
2567   grep -v '^ *+' conftest.er1 >conftest.err
2568   rm -f conftest.er1
2569   cat conftest.err >&5
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); } &&
2572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573   { (case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578   (eval "$ac_try") 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; }; then
2592   ac_cv_prog_cc_g=yes
2593 else
2594   echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597
2598 fi
2599
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 fi
2602
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 fi
2605
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607    ac_c_werror_flag=$ac_save_c_werror_flag
2608 fi
2609 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2611 if test "$ac_test_CFLAGS" = set; then
2612   CFLAGS=$ac_save_CFLAGS
2613 elif test $ac_cv_prog_cc_g = yes; then
2614   if test "$GCC" = yes; then
2615     CFLAGS="-g -O2"
2616   else
2617     CFLAGS="-g"
2618   fi
2619 else
2620   if test "$GCC" = yes; then
2621     CFLAGS="-O2"
2622   else
2623     CFLAGS=
2624   fi
2625 fi
2626 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2627 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_cc_c89+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   ac_cv_prog_cc_c89=no
2632 ac_save_CC=$CC
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639 #include <stdarg.h>
2640 #include <stdio.h>
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2647      char **p;
2648      int i;
2649 {
2650   return p[i];
2651 }
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2653 {
2654   char *s;
2655   va_list v;
2656   va_start (v,p);
2657   s = g (p, va_arg (v,int));
2658   va_end (v);
2659   return s;
2660 }
2661
2662 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663    function prototypes and stuff, but not '\xHH' hex character constants.
2664    These don't provoke an error unfortunately, instead are silently treated
2665    as 'x'.  The following induces an error, until -std is added to get
2666    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667    array size at least.  It's necessary to write '\x00'==0 to get something
2668    that's true only with -std.  */
2669 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2672    inside strings and character constants.  */
2673 #define FOO(x) 'x'
2674 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675
2676 int test (int i, double x);
2677 struct s1 {int (*f) (int a);};
2678 struct s2 {int (*f) (double a);};
2679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2680 int argc;
2681 char **argv;
2682 int
2683 main ()
2684 {
2685 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2691         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 do
2693   CC="$ac_save_CC $ac_arg"
2694   rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701   (eval "$ac_compile") 2>conftest.er1
2702   ac_status=$?
2703   grep -v '^ *+' conftest.er1 >conftest.err
2704   rm -f conftest.er1
2705   cat conftest.err >&5
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); } &&
2708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2709   { (case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_try") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; } &&
2718          { ac_try='test -s conftest.$ac_objext'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_cv_prog_cc_c89=$ac_arg
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
2734 fi
2735
2736 rm -f core conftest.err conftest.$ac_objext
2737   test "x$ac_cv_prog_cc_c89" != "xno" && break
2738 done
2739 rm -f conftest.$ac_ext
2740 CC=$ac_save_CC
2741
2742 fi
2743 # AC_CACHE_VAL
2744 case "x$ac_cv_prog_cc_c89" in
2745   x)
2746     { echo "$as_me:$LINENO: result: none needed" >&5
2747 echo "${ECHO_T}none needed" >&6; } ;;
2748   xno)
2749     { echo "$as_me:$LINENO: result: unsupported" >&5
2750 echo "${ECHO_T}unsupported" >&6; } ;;
2751   *)
2752     CC="$CC $ac_cv_prog_cc_c89"
2753     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2754 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2755 esac
2756
2757
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764 ac_ext=cpp
2765 ac_cpp='$CXXCPP $CPPFLAGS'
2766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2769 if test -z "$CXX"; then
2770   if test -n "$CCC"; then
2771     CXX=$CCC
2772   else
2773     if test -n "$ac_tool_prefix"; then
2774   for ac_prog in clang++ llvm-g++ g++
2775   do
2776     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_CXX+set}" = set; then
2781   echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783   if test -n "$CXX"; then
2784   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791   for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CXX=$ac_cv_prog_CXX
2804 if test -n "$CXX"; then
2805   { echo "$as_me:$LINENO: result: $CXX" >&5
2806 echo "${ECHO_T}$CXX" >&6; }
2807 else
2808   { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2810 fi
2811
2812
2813     test -n "$CXX" && break
2814   done
2815 fi
2816 if test -z "$CXX"; then
2817   ac_ct_CXX=$CXX
2818   for ac_prog in clang++ llvm-g++ g++
2819 do
2820   # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   if test -n "$ac_ct_CXX"; then
2828   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835   for ac_exec_ext in '' $ac_executable_extensions; do
2836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2837     ac_cv_prog_ac_ct_CXX="$ac_prog"
2838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2848 if test -n "$ac_ct_CXX"; then
2849   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2850 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851 else
2852   { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2854 fi
2855
2856
2857   test -n "$ac_ct_CXX" && break
2858 done
2859
2860   if test "x$ac_ct_CXX" = x; then
2861     CXX="g++"
2862   else
2863     case $cross_compiling:$ac_tool_warned in
2864 yes:)
2865 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2866 whose name does not start with the host triplet.  If you think this
2867 configuration is useful to you, please write to autoconf@gnu.org." >&5
2868 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet.  If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873     CXX=$ac_ct_CXX
2874   fi
2875 fi
2876
2877   fi
2878 fi
2879 # Provide some information about the compiler.
2880 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2881 ac_compiler=`set X $ac_compile; echo $2`
2882 { (ac_try="$ac_compiler --version >&5"
2883 case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_compiler --version >&5") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }
2892 { (ac_try="$ac_compiler -v >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler -v >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -V >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -V >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2916   echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924
2925 int
2926 main ()
2927 {
2928 #ifndef __GNUC__
2929        choke me
2930 #endif
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compile") 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2951   { (case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_try") 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; } &&
2960          { ac_try='test -s conftest.$ac_objext'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   ac_compiler_gnu=yes
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975         ac_compiler_gnu=no
2976 fi
2977
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2980
2981 fi
2982 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2983 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2984 GXX=`test $ac_compiler_gnu = yes && echo yes`
2985 ac_test_CXXFLAGS=${CXXFLAGS+set}
2986 ac_save_CXXFLAGS=$CXXFLAGS
2987 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2988 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_cxx_g+set}" = set; then
2990   echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2993    ac_cxx_werror_flag=yes
2994    ac_cv_prog_cxx_g=no
2995    CXXFLAGS="-g"
2996    cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 int
3004 main ()
3005 {
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compile") 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_cv_prog_cxx_g=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050         CXXFLAGS=""
3051       cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   :
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106          CXXFLAGS="-g"
3107          cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113
3114 int
3115 main ()
3116 {
3117
3118   ;
3119   return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_compile") 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } &&
3136          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3137   { (case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_try") 2>&5
3143   ac_status=$?
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); }; } &&
3146          { ac_try='test -s conftest.$ac_objext'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; }; then
3156   ac_cv_prog_cxx_g=yes
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 fi
3166
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 fi
3169
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172 fi
3173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3174 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3175 if test "$ac_test_CXXFLAGS" = set; then
3176   CXXFLAGS=$ac_save_CXXFLAGS
3177 elif test $ac_cv_prog_cxx_g = yes; then
3178   if test "$GXX" = yes; then
3179     CXXFLAGS="-g -O2"
3180   else
3181     CXXFLAGS="-g"
3182   fi
3183 else
3184   if test "$GXX" = yes; then
3185     CXXFLAGS="-O2"
3186   else
3187     CXXFLAGS=
3188   fi
3189 fi
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195
3196 ac_ext=c
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3202 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3205   CPP=
3206 fi
3207 if test -z "$CPP"; then
3208   if test "${ac_cv_prog_CPP+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211       # Double quotes because CPP needs to be expanded
3212     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3213     do
3214       ac_preproc_ok=false
3215 for ac_c_preproc_warn_flag in '' yes
3216 do
3217   # Use a header file that comes with gcc, so configuring glibc
3218   # with a fresh cross-compiler works.
3219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220   # <limits.h> exists even on freestanding compilers.
3221   # On the NeXT, cc -E runs the code through the compiler's parser,
3222   # not just through cpp. "Syntax error" is here to catch this case.
3223   cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229 #ifdef __STDC__
3230 # include <limits.h>
3231 #else
3232 # include <assert.h>
3233 #endif
3234                      Syntax error
3235 _ACEOF
3236 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
3246   cat conftest.err >&5
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } >/dev/null; then
3249   if test -s conftest.err; then
3250     ac_cpp_err=$ac_c_preproc_warn_flag
3251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252   else
3253     ac_cpp_err=
3254   fi
3255 else
3256   ac_cpp_err=yes
3257 fi
3258 if test -z "$ac_cpp_err"; then
3259   :
3260 else
3261   echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264   # Broken: fails on valid input.
3265 continue
3266 fi
3267
3268 rm -f conftest.err conftest.$ac_ext
3269
3270   # OK, works on sane cases.  Now check whether nonexistent headers
3271   # can be detected and how.
3272   cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <ac_nonexistent.h>
3279 _ACEOF
3280 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 case "(($ac_try" in
3282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283   *) ac_try_echo=$ac_try;;
3284 esac
3285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287   ac_status=$?
3288   grep -v '^ *+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } >/dev/null; then
3293   if test -s conftest.err; then
3294     ac_cpp_err=$ac_c_preproc_warn_flag
3295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3296   else
3297     ac_cpp_err=
3298   fi
3299 else
3300   ac_cpp_err=yes
3301 fi
3302 if test -z "$ac_cpp_err"; then
3303   # Broken: success on invalid input.
3304 continue
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309   # Passes both tests.
3310 ac_preproc_ok=:
3311 break
3312 fi
3313
3314 rm -f conftest.err conftest.$ac_ext
3315
3316 done
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3320   break
3321 fi
3322
3323     done
3324     ac_cv_prog_CPP=$CPP
3325
3326 fi
3327   CPP=$ac_cv_prog_CPP
3328 else
3329   ac_cv_prog_CPP=$CPP
3330 fi
3331 { echo "$as_me:$LINENO: result: $CPP" >&5
3332 echo "${ECHO_T}$CPP" >&6; }
3333 ac_preproc_ok=false
3334 for ac_c_preproc_warn_flag in '' yes
3335 do
3336   # Use a header file that comes with gcc, so configuring glibc
3337   # with a fresh cross-compiler works.
3338   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3339   # <limits.h> exists even on freestanding compilers.
3340   # On the NeXT, cc -E runs the code through the compiler's parser,
3341   # not just through cpp. "Syntax error" is here to catch this case.
3342   cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h.  */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h.  */
3348 #ifdef __STDC__
3349 # include <limits.h>
3350 #else
3351 # include <assert.h>
3352 #endif
3353                      Syntax error
3354 _ACEOF
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } >/dev/null; then
3368   if test -s conftest.err; then
3369     ac_cpp_err=$ac_c_preproc_warn_flag
3370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371   else
3372     ac_cpp_err=
3373   fi
3374 else
3375   ac_cpp_err=yes
3376 fi
3377 if test -z "$ac_cpp_err"; then
3378   :
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383   # Broken: fails on valid input.
3384 continue
3385 fi
3386
3387 rm -f conftest.err conftest.$ac_ext
3388
3389   # OK, works on sane cases.  Now check whether nonexistent headers
3390   # can be detected and how.
3391   cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <ac_nonexistent.h>
3398 _ACEOF
3399 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } >/dev/null; then
3412   if test -s conftest.err; then
3413     ac_cpp_err=$ac_c_preproc_warn_flag
3414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415   else
3416     ac_cpp_err=
3417   fi
3418 else
3419   ac_cpp_err=yes
3420 fi
3421 if test -z "$ac_cpp_err"; then
3422   # Broken: success on invalid input.
3423 continue
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428   # Passes both tests.
3429 ac_preproc_ok=:
3430 break
3431 fi
3432
3433 rm -f conftest.err conftest.$ac_ext
3434
3435 done
3436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3437 rm -f conftest.err conftest.$ac_ext
3438 if $ac_preproc_ok; then
3439   :
3440 else
3441   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3442 See \`config.log' for more details." >&5
3443 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3444 See \`config.log' for more details." >&2;}
3445    { (exit 1); exit 1; }; }
3446 fi
3447
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455
3456
3457 if test -d ${srcdir}/projects/llvm-gcc ; then
3458   subdirs="$subdirs projects/llvm-gcc"
3459
3460 fi
3461
3462 if test -d ${srcdir}/projects/test-suite ; then
3463   subdirs="$subdirs projects/test-suite"
3464
3465 fi
3466
3467 if test -d ${srcdir}/projects/llvm-test ; then
3468   subdirs="$subdirs projects/llvm-test"
3469
3470 fi
3471
3472 if test -d ${srcdir}/projects/poolalloc ; then
3473   subdirs="$subdirs projects/poolalloc"
3474
3475 fi
3476
3477 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3478   subdirs="$subdirs projects/llvm-poolalloc"
3479
3480 fi
3481
3482 for i in `ls ${srcdir}/projects`
3483 do
3484   if test -d ${srcdir}/projects/${i} ; then
3485     case ${i} in
3486       sample)       subdirs="$subdirs projects/sample"
3487     ;;
3488       privbracket)  subdirs="$subdirs projects/privbracket"
3489  ;;
3490       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491  ;;
3492       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3493 ;;
3494       llvm-java)    subdirs="$subdirs projects/llvm-java"
3495  ;;
3496       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3497    ;;
3498       safecode)     subdirs="$subdirs projects/safecode"
3499  ;;
3500       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3501  ;;
3502       compiler-rt)       ;;
3503       llvm-gcc)       ;;
3504       test-suite)     ;;
3505       llvm-test)      ;;
3506       poolalloc)      ;;
3507       llvm-poolalloc) ;;
3508       *)
3509         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3510 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3511         ;;
3512     esac
3513   fi
3514 done
3515
3516 # Check whether --enable-polly was given.
3517 if test "${enable_polly+set}" = set; then
3518   enableval=$enable_polly;
3519 else
3520   enableval=default
3521 fi
3522
3523 case "$enableval" in
3524   yes) ENABLE_POLLY=1
3525  ;;
3526   no)  ENABLE_POLLY=0
3527  ;;
3528   default) ENABLE_POLLY=1
3529  ;;
3530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3531 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3532    { (exit 1); exit 1; }; } ;;
3533 esac
3534
3535
3536 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537   LLVM_HAS_POLLY=1
3538
3539   subdirs="$subdirs tools/polly"
3540
3541 fi
3542
3543
3544 # Make sure we can run config.sub.
3545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3547 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3548    { (exit 1); exit 1; }; }
3549
3550 { echo "$as_me:$LINENO: checking build system type" >&5
3551 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3552 if test "${ac_cv_build+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   ac_build_alias=$build_alias
3556 test "x$ac_build_alias" = x &&
3557   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3558 test "x$ac_build_alias" = x &&
3559   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3560 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3561    { (exit 1); exit 1; }; }
3562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3563   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3564 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3565    { (exit 1); exit 1; }; }
3566
3567 fi
3568 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3569 echo "${ECHO_T}$ac_cv_build" >&6; }
3570 case $ac_cv_build in
3571 *-*-*) ;;
3572 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3573 echo "$as_me: error: invalid value of canonical build" >&2;}
3574    { (exit 1); exit 1; }; };;
3575 esac
3576 build=$ac_cv_build
3577 ac_save_IFS=$IFS; IFS='-'
3578 set x $ac_cv_build
3579 shift
3580 build_cpu=$1
3581 build_vendor=$2
3582 shift; shift
3583 # Remember, the first character of IFS is used to create $*,
3584 # except with old shells:
3585 build_os=$*
3586 IFS=$ac_save_IFS
3587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588
3589
3590 { echo "$as_me:$LINENO: checking host system type" >&5
3591 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3592 if test "${ac_cv_host+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test "x$host_alias" = x; then
3596   ac_cv_host=$ac_cv_build
3597 else
3598   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3600 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3601    { (exit 1); exit 1; }; }
3602 fi
3603
3604 fi
3605 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3606 echo "${ECHO_T}$ac_cv_host" >&6; }
3607 case $ac_cv_host in
3608 *-*-*) ;;
3609 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3610 echo "$as_me: error: invalid value of canonical host" >&2;}
3611    { (exit 1); exit 1; }; };;
3612 esac
3613 host=$ac_cv_host
3614 ac_save_IFS=$IFS; IFS='-'
3615 set x $ac_cv_host
3616 shift
3617 host_cpu=$1
3618 host_vendor=$2
3619 shift; shift
3620 # Remember, the first character of IFS is used to create $*,
3621 # except with old shells:
3622 host_os=$*
3623 IFS=$ac_save_IFS
3624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625
3626
3627 { echo "$as_me:$LINENO: checking target system type" >&5
3628 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3629 if test "${ac_cv_target+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   if test "x$target_alias" = x; then
3633   ac_cv_target=$ac_cv_host
3634 else
3635   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3636     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3637 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3638    { (exit 1); exit 1; }; }
3639 fi
3640
3641 fi
3642 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3643 echo "${ECHO_T}$ac_cv_target" >&6; }
3644 case $ac_cv_target in
3645 *-*-*) ;;
3646 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3647 echo "$as_me: error: invalid value of canonical target" >&2;}
3648    { (exit 1); exit 1; }; };;
3649 esac
3650 target=$ac_cv_target
3651 ac_save_IFS=$IFS; IFS='-'
3652 set x $ac_cv_target
3653 shift
3654 target_cpu=$1
3655 target_vendor=$2
3656 shift; shift
3657 # Remember, the first character of IFS is used to create $*,
3658 # except with old shells:
3659 target_os=$*
3660 IFS=$ac_save_IFS
3661 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662
3663
3664 # The aliases save the names the user supplied, while $host etc.
3665 # will get canonicalized.
3666 test -n "$target_alias" &&
3667   test "$program_prefix$program_suffix$program_transform_name" = \
3668     NONENONEs,x,x, &&
3669   program_prefix=${target_alias}-
3670
3671 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3672 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3673 if test "${llvm_cv_os_type+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   case $host in
3677   *-*-aix*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="AIX"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-irix*)
3683     llvm_cv_link_all_option="-Wl,--whole-archive"
3684     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685     llvm_cv_os_type="IRIX"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-cygwin*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="Cygwin"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-darwin*)
3693     llvm_cv_link_all_option="-Wl,-all_load"
3694     llvm_cv_no_link_all_option="-Wl,-noall_load"
3695     llvm_cv_os_type="Darwin"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-minix*)
3698     llvm_cv_link_all_option="-Wl,-all_load"
3699     llvm_cv_no_link_all_option="-Wl,-noall_load"
3700     llvm_cv_os_type="Minix"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-freebsd* | *-*-kfreebsd-gnu)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="FreeBSD"
3706     llvm_cv_platform_type="Unix" ;;
3707   *-*-openbsd*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="OpenBSD"
3711     llvm_cv_platform_type="Unix" ;;
3712   *-*-netbsd*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="NetBSD"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-*-dragonfly*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="DragonFly"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-*-hpux*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="HP-UX"
3726     llvm_cv_platform_type="Unix" ;;
3727   *-*-interix*)
3728     llvm_cv_link_all_option="-Wl,--whole-archive"
3729     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730     llvm_cv_os_type="Interix"
3731     llvm_cv_platform_type="Unix" ;;
3732   *-*-linux*)
3733     llvm_cv_link_all_option="-Wl,--whole-archive"
3734     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735     llvm_cv_os_type="Linux"
3736     llvm_cv_platform_type="Unix" ;;
3737   *-*-gnu*)
3738     llvm_cv_link_all_option="-Wl,--whole-archive"
3739     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740     llvm_cv_os_type="GNU"
3741     llvm_cv_platform_type="Unix" ;;
3742   *-*-solaris*)
3743     llvm_cv_link_all_option="-Wl,-z,allextract"
3744     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3745     llvm_cv_os_type="SunOS"
3746     llvm_cv_platform_type="Unix" ;;
3747   *-*-auroraux*)
3748     llvm_cv_link_all_option="-Wl,-z,allextract"
3749     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3750     llvm_cv_os_type="AuroraUX"
3751     llvm_cv_platform_type="Unix" ;;
3752   *-*-win32*)
3753     llvm_cv_link_all_option="-Wl,--whole-archive"
3754     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3755     llvm_cv_os_type="Win32"
3756     llvm_cv_platform_type="Win32" ;;
3757   *-*-mingw*)
3758     llvm_cv_link_all_option="-Wl,--whole-archive"
3759     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760     llvm_cv_os_type="MingW"
3761     llvm_cv_platform_type="Win32" ;;
3762   *-*-haiku*)
3763     llvm_cv_link_all_option="-Wl,--whole-archive"
3764     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765     llvm_cv_os_type="Haiku"
3766     llvm_cv_platform_type="Unix" ;;
3767   *-unknown-eabi*)
3768     llvm_cv_link_all_option="-Wl,--whole-archive"
3769     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770     llvm_cv_os_type="Freestanding"
3771     llvm_cv_platform_type="Unix" ;;
3772   *-unknown-elf*)
3773     llvm_cv_link_all_option="-Wl,--whole-archive"
3774     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775     llvm_cv_os_type="Freestanding"
3776     llvm_cv_platform_type="Unix" ;;
3777   *)
3778     llvm_cv_link_all_option=""
3779     llvm_cv_no_link_all_option=""
3780     llvm_cv_os_type="Unknown"
3781     llvm_cv_platform_type="Unknown" ;;
3782 esac
3783 fi
3784 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3785 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3786
3787 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3788 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3789 if test "${llvm_cv_target_os_type+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   case $target in
3793   *-*-aix*)
3794     llvm_cv_target_os_type="AIX" ;;
3795   *-*-irix*)
3796     llvm_cv_target_os_type="IRIX" ;;
3797   *-*-cygwin*)
3798     llvm_cv_target_os_type="Cygwin" ;;
3799   *-*-darwin*)
3800     llvm_cv_target_os_type="Darwin" ;;
3801   *-*-minix*)
3802     llvm_cv_target_os_type="Minix" ;;
3803   *-*-freebsd* | *-*-kfreebsd-gnu)
3804     llvm_cv_target_os_type="FreeBSD" ;;
3805   *-*-openbsd*)
3806     llvm_cv_target_os_type="OpenBSD" ;;
3807   *-*-netbsd*)
3808     llvm_cv_target_os_type="NetBSD" ;;
3809   *-*-dragonfly*)
3810     llvm_cv_target_os_type="DragonFly" ;;
3811   *-*-hpux*)
3812     llvm_cv_target_os_type="HP-UX" ;;
3813   *-*-interix*)
3814     llvm_cv_target_os_type="Interix" ;;
3815   *-*-linux*)
3816     llvm_cv_target_os_type="Linux" ;;
3817   *-*-gnu*)
3818     llvm_cv_target_os_type="GNU" ;;
3819   *-*-solaris*)
3820     llvm_cv_target_os_type="SunOS" ;;
3821   *-*-auroraux*)
3822     llvm_cv_target_os_type="AuroraUX" ;;
3823   *-*-win32*)
3824     llvm_cv_target_os_type="Win32" ;;
3825   *-*-mingw*)
3826     llvm_cv_target_os_type="MingW" ;;
3827   *-*-haiku*)
3828     llvm_cv_target_os_type="Haiku" ;;
3829   *-*-rtems*)
3830     llvm_cv_target_os_type="RTEMS" ;;
3831   *-*-nacl*)
3832     llvm_cv_target_os_type="NativeClient" ;;
3833   *-unknown-eabi*)
3834     llvm_cv_target_os_type="Freestanding" ;;
3835   *)
3836     llvm_cv_target_os_type="Unknown" ;;
3837 esac
3838 fi
3839 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3840 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3841
3842 if test "$llvm_cv_os_type" = "Unknown" ; then
3843   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3844 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3845    { (exit 1); exit 1; }; }
3846 fi
3847
3848 OS=$llvm_cv_os_type
3849
3850 HOST_OS=$llvm_cv_os_type
3851
3852 TARGET_OS=$llvm_cv_target_os_type
3853
3854
3855 LINKALL=$llvm_cv_link_all_option
3856
3857 NOLINKALL=$llvm_cv_no_link_all_option
3858
3859
3860 case $llvm_cv_platform_type in
3861   Unix)
3862
3863 cat >>confdefs.h <<\_ACEOF
3864 #define LLVM_ON_UNIX 1
3865 _ACEOF
3866
3867     LLVM_ON_UNIX=1
3868
3869     LLVM_ON_WIN32=0
3870
3871     ;;
3872   Win32)
3873
3874 cat >>confdefs.h <<\_ACEOF
3875 #define LLVM_ON_WIN32 1
3876 _ACEOF
3877
3878     LLVM_ON_UNIX=0
3879
3880     LLVM_ON_WIN32=1
3881
3882     ;;
3883 esac
3884
3885 { echo "$as_me:$LINENO: checking target architecture" >&5
3886 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3887 if test "${llvm_cv_target_arch+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   case $target in
3891   i?86-*)                 llvm_cv_target_arch="x86" ;;
3892   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3893   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3894   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3895   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3896   mips-*)                 llvm_cv_target_arch="Mips" ;;
3897   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3898   xcore-*)                llvm_cv_target_arch="XCore" ;;
3899   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3900   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3901   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3902   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3903   *)                      llvm_cv_target_arch="Unknown" ;;
3904 esac
3905 fi
3906 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3907 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3908
3909 if test "$llvm_cv_target_arch" = "Unknown" ; then
3910   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3911 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3912 fi
3913
3914 case "$llvm_cv_target_arch" in
3915     x86)     LLVM_NATIVE_ARCH="X86" ;;
3916     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3917     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3918 esac
3919
3920 ARCH=$llvm_cv_target_arch
3921
3922
3923 case $host in
3924   i?86-*)                 host_arch="x86" ;;
3925   amd64-* | x86_64-*)     host_arch="x86_64" ;;
3926   sparc*-*)               host_arch="Sparc" ;;
3927   powerpc*-*)             host_arch="PowerPC" ;;
3928   arm*-*)                 host_arch="ARM" ;;
3929   mips-*)                 host_arch="Mips" ;;
3930   mipsel-*)               host_arch="Mips" ;;
3931   xcore-*)                host_arch="XCore" ;;
3932   msp430-*)               host_arch="MSP430" ;;
3933   hexagon-*)              host_arch="Hexagon" ;;
3934   mblaze-*)               host_arch="MBlaze" ;;
3935   *)                      host_arch="Unknown" ;;
3936 esac
3937
3938 if test "$host_arch" = "Unknown" ; then
3939   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3940 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3941 fi
3942
3943 HOST_ARCH=$host_arch
3944
3945
3946
3947
3948 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3949 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3950 if test "${ac_cv_path_GREP+set}" = set; then
3951   echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953   # Extract the first word of "grep ggrep" to use in msg output
3954 if test -z "$GREP"; then
3955 set dummy grep ggrep; ac_prog_name=$2
3956 if test "${ac_cv_path_GREP+set}" = set; then
3957   echo $ECHO_N "(cached) $ECHO_C" >&6
3958 else
3959   ac_path_GREP_found=false
3960 # Loop through the user's path and test for each of PROGNAME-LIST
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_prog in grep ggrep; do
3967   for ac_exec_ext in '' $ac_executable_extensions; do
3968     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3969     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3970     # Check for GNU ac_path_GREP and select it if it is found.
3971   # Check for GNU $ac_path_GREP
3972 case `"$ac_path_GREP" --version 2>&1` in
3973 *GNU*)
3974   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3975 *)
3976   ac_count=0
3977   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3978   while :
3979   do
3980     cat "conftest.in" "conftest.in" >"conftest.tmp"
3981     mv "conftest.tmp" "conftest.in"
3982     cp "conftest.in" "conftest.nl"
3983     echo 'GREP' >> "conftest.nl"
3984     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3986     ac_count=`expr $ac_count + 1`
3987     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3988       # Best one so far, save it but keep looking for a better one
3989       ac_cv_path_GREP="$ac_path_GREP"
3990       ac_path_GREP_max=$ac_count
3991     fi
3992     # 10*(2^10) chars as input seems more than enough
3993     test $ac_count -gt 10 && break
3994   done
3995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3996 esac
3997
3998
3999     $ac_path_GREP_found && break 3
4000   done
4001 done
4002
4003 done
4004 IFS=$as_save_IFS
4005
4006
4007 fi
4008
4009 GREP="$ac_cv_path_GREP"
4010 if test -z "$GREP"; then
4011   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4012 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4013    { (exit 1); exit 1; }; }
4014 fi
4015
4016 else
4017   ac_cv_path_GREP=$GREP
4018 fi
4019
4020
4021 fi
4022 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4023 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4024  GREP="$ac_cv_path_GREP"
4025
4026
4027 { echo "$as_me:$LINENO: checking for egrep" >&5
4028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4029 if test "${ac_cv_path_EGREP+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4033    then ac_cv_path_EGREP="$GREP -E"
4034    else
4035      # Extract the first word of "egrep" to use in msg output
4036 if test -z "$EGREP"; then
4037 set dummy egrep; ac_prog_name=$2
4038 if test "${ac_cv_path_EGREP+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   ac_path_EGREP_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048   for ac_prog in egrep; do
4049   for ac_exec_ext in '' $ac_executable_extensions; do
4050     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4051     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4052     # Check for GNU ac_path_EGREP and select it if it is found.
4053   # Check for GNU $ac_path_EGREP
4054 case `"$ac_path_EGREP" --version 2>&1` in
4055 *GNU*)
4056   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4057 *)
4058   ac_count=0
4059   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4060   while :
4061   do
4062     cat "conftest.in" "conftest.in" >"conftest.tmp"
4063     mv "conftest.tmp" "conftest.in"
4064     cp "conftest.in" "conftest.nl"
4065     echo 'EGREP' >> "conftest.nl"
4066     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068     ac_count=`expr $ac_count + 1`
4069     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4070       # Best one so far, save it but keep looking for a better one
4071       ac_cv_path_EGREP="$ac_path_EGREP"
4072       ac_path_EGREP_max=$ac_count
4073     fi
4074     # 10*(2^10) chars as input seems more than enough
4075     test $ac_count -gt 10 && break
4076   done
4077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 esac
4079
4080
4081     $ac_path_EGREP_found && break 3
4082   done
4083 done
4084
4085 done
4086 IFS=$as_save_IFS
4087
4088
4089 fi
4090
4091 EGREP="$ac_cv_path_EGREP"
4092 if test -z "$EGREP"; then
4093   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4094 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4095    { (exit 1); exit 1; }; }
4096 fi
4097
4098 else
4099   ac_cv_path_EGREP=$EGREP
4100 fi
4101
4102
4103    fi
4104 fi
4105 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4106 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4107  EGREP="$ac_cv_path_EGREP"
4108
4109
4110 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <stdlib.h>
4122 #include <stdarg.h>
4123 #include <string.h>
4124 #include <float.h>
4125
4126 int
4127 main ()
4128 {
4129
4130   ;
4131   return 0;
4132 }
4133 _ACEOF
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4136 case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_compile") 2>conftest.er1
4142   ac_status=$?
4143   grep -v '^ *+' conftest.er1 >conftest.err
4144   rm -f conftest.er1
4145   cat conftest.err >&5
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); } &&
4148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149   { (case "(($ac_try" in
4150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151   *) ac_try_echo=$ac_try;;
4152 esac
4153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154   (eval "$ac_try") 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_try") 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   ac_cv_header_stdc=yes
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173         ac_cv_header_stdc=no
4174 fi
4175
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177
4178 if test $ac_cv_header_stdc = yes; then
4179   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #include <string.h>
4187
4188 _ACEOF
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190   $EGREP "memchr" >/dev/null 2>&1; then
4191   :
4192 else
4193   ac_cv_header_stdc=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198
4199 if test $ac_cv_header_stdc = yes; then
4200   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 #include <stdlib.h>
4208
4209 _ACEOF
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211   $EGREP "free" >/dev/null 2>&1; then
4212   :
4213 else
4214   ac_cv_header_stdc=no
4215 fi
4216 rm -f conftest*
4217
4218 fi
4219
4220 if test $ac_cv_header_stdc = yes; then
4221   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222   if test "$cross_compiling" = yes; then
4223   :
4224 else
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 #include <ctype.h>
4232 #include <stdlib.h>
4233 #if ((' ' & 0x0FF) == 0x020)
4234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236 #else
4237 # define ISLOWER(c) \
4238                    (('a' <= (c) && (c) <= 'i') \
4239                      || ('j' <= (c) && (c) <= 'r') \
4240                      || ('s' <= (c) && (c) <= 'z'))
4241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4242 #endif
4243
4244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 int
4246 main ()
4247 {
4248   int i;
4249   for (i = 0; i < 256; i++)
4250     if (XOR (islower (i), ISLOWER (i))
4251         || toupper (i) != TOUPPER (i))
4252       return 2;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest$ac_exeext
4257 if { (ac_try="$ac_link"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_link") 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4267   { (case "(($ac_try" in
4268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269   *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272   (eval "$ac_try") 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; }; then
4276   :
4277 else
4278   echo "$as_me: program exited with status $ac_status" >&5
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4281
4282 ( exit $ac_status )
4283 ac_cv_header_stdc=no
4284 fi
4285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4286 fi
4287
4288
4289 fi
4290 fi
4291 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4293 if test $ac_cv_header_stdc = yes; then
4294
4295 cat >>confdefs.h <<\_ACEOF
4296 #define STDC_HEADERS 1
4297 _ACEOF
4298
4299 fi
4300
4301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312                   inttypes.h stdint.h unistd.h
4313 do
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4318   echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320   cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h.  */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h.  */
4326 $ac_includes_default
4327
4328 #include <$ac_header>
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (ac_try="$ac_compile"
4332 case "(($ac_try" in
4333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334   *) ac_try_echo=$ac_try;;
4335 esac
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337   (eval "$ac_compile") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } &&
4344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4345   { (case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350   (eval "$ac_try") 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }; } &&
4354          { ac_try='test -s conftest.$ac_objext'
4355   { (case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360   (eval "$ac_try") 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; }; then
4364   eval "$as_ac_Header=yes"
4365 else
4366   echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369         eval "$as_ac_Header=no"
4370 fi
4371
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 ac_res=`eval echo '${'$as_ac_Header'}'`
4375                { echo "$as_me:$LINENO: result: $ac_res" >&5
4376 echo "${ECHO_T}$ac_res" >&6; }
4377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4378   cat >>confdefs.h <<_ACEOF
4379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4380 _ACEOF
4381
4382 fi
4383
4384 done
4385
4386
4387 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4388 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4389 if test "${ac_cv_c_bigendian+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   # See if sys/param.h defines the BYTE_ORDER macro.
4393 cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 #include <sys/types.h>
4400 #include <sys/param.h>
4401
4402 int
4403 main ()
4404 {
4405 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4406  bogus endian macros
4407 #endif
4408
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_compile") 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4428   { (case "(($ac_try" in
4429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430   *) ac_try_echo=$ac_try;;
4431 esac
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; } &&
4437          { ac_try='test -s conftest.$ac_objext'
4438   { (case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }; }; then
4447   # It does; now see whether it defined to BIG_ENDIAN or not.
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <sys/types.h>
4455 #include <sys/param.h>
4456
4457 int
4458 main ()
4459 {
4460 #if BYTE_ORDER != BIG_ENDIAN
4461  not big endian
4462 #endif
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (ac_try="$ac_compile"
4470 case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } &&
4482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4483   { (case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_try") 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest.$ac_objext'
4493   { (case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); }; }; then
4502   ac_cv_c_bigendian=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         ac_cv_c_bigendian=no
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515         # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517   # try to guess the endianness by grepping values into an object file
4518   ac_cv_c_bigendian=unknown
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4531 int
4532 main ()
4533 {
4534  _ascii (); _ebcdic ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4554   { (case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_try") 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; } &&
4563          { ac_try='test -s conftest.$ac_objext'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4574   ac_cv_c_bigendian=yes
4575 fi
4576 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4577   if test "$ac_cv_c_bigendian" = unknown; then
4578     ac_cv_c_bigendian=no
4579   else
4580     # finding both strings is unlikely to happen, but who knows?
4581     ac_cv_c_bigendian=unknown
4582   fi
4583 fi
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588
4589 fi
4590
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 else
4593   cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 $ac_includes_default
4600 int
4601 main ()
4602 {
4603
4604   /* Are we little or big endian?  From Harbison&Steele.  */
4605   union
4606   {
4607     long int l;
4608     char c[sizeof (long int)];
4609   } u;
4610   u.l = 1;
4611   return u.c[sizeof (long int) - 1] == 1;
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4619 case "(($ac_try" in
4620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621   *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624   (eval "$ac_link") 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4628   { (case "(($ac_try" in
4629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630   *) ac_try_echo=$ac_try;;
4631 esac
4632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4633   (eval "$ac_try") 2>&5
4634   ac_status=$?
4635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636   (exit $ac_status); }; }; then
4637   ac_cv_c_bigendian=no
4638 else
4639   echo "$as_me: program exited with status $ac_status" >&5
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 ( exit $ac_status )
4644 ac_cv_c_bigendian=yes
4645 fi
4646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4647 fi
4648
4649
4650 fi
4651
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4655 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4656 case $ac_cv_c_bigendian in
4657   yes)
4658     ENDIAN=big
4659  ;;
4660   no)
4661     ENDIAN=little
4662  ;;
4663   *)
4664     { { echo "$as_me:$LINENO: error: unknown endianness
4665 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4666 echo "$as_me: error: unknown endianness
4667 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4668    { (exit 1); exit 1; }; } ;;
4669 esac
4670
4671
4672 if test "$cross_compiling" = yes; then
4673   LLVM_CROSS_COMPILING=1
4674
4675
4676 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4677 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4678 if test "${ac_cv_build_exeext+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4682   ac_cv_build_exeext=.exe
4683 else
4684   ac_build_prefix=${build_alias}-
4685
4686   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4687 set dummy ${ac_build_prefix}gcc; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   if test -n "$BUILD_CC"; then
4694   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699   IFS=$as_save_IFS
4700   test -z "$as_dir" && as_dir=.
4701   for ac_exec_ext in '' $ac_executable_extensions; do
4702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4703     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4705     break 2
4706   fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 BUILD_CC=$ac_cv_prog_BUILD_CC
4714 if test -n "$BUILD_CC"; then
4715   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4716 echo "${ECHO_T}$BUILD_CC" >&6; }
4717 else
4718   { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 fi
4721
4722
4723   if test -z "$BUILD_CC"; then
4724      # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc; ac_word=$2
4726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4728 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4729   echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731   if test -n "$BUILD_CC"; then
4732   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_prog_BUILD_CC="gcc"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 BUILD_CC=$ac_cv_prog_BUILD_CC
4752 if test -n "$BUILD_CC"; then
4753   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4754 echo "${ECHO_T}$BUILD_CC" >&6; }
4755 else
4756   { echo "$as_me:$LINENO: result: no" >&5
4757 echo "${ECHO_T}no" >&6; }
4758 fi
4759
4760
4761      if test -z "$BUILD_CC"; then
4762        # Extract the first word of "cc", so it can be a program name with args.
4763 set dummy cc; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   if test -n "$BUILD_CC"; then
4770   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4771 else
4772   ac_prog_rejected=no
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776   IFS=$as_save_IFS
4777   test -z "$as_dir" && as_dir=.
4778   for ac_exec_ext in '' $ac_executable_extensions; do
4779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4780     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4781        ac_prog_rejected=yes
4782        continue
4783      fi
4784     ac_cv_prog_BUILD_CC="cc"
4785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 if test $ac_prog_rejected = yes; then
4793   # We found a bogon in the path, so make sure we never use it.
4794   set dummy $ac_cv_prog_BUILD_CC
4795   shift
4796   if test $# != 0; then
4797     # We chose a different compiler from the bogus one.
4798     # However, it has the same basename, so the bogon will be chosen
4799     # first if we set BUILD_CC to just the basename; use the full file name.
4800     shift
4801     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4802   fi
4803 fi
4804 fi
4805 fi
4806 BUILD_CC=$ac_cv_prog_BUILD_CC
4807 if test -n "$BUILD_CC"; then
4808   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4809 echo "${ECHO_T}$BUILD_CC" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816      fi
4817   fi
4818   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4819 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4820    { (exit 1); exit 1; }; }
4821   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4822   rm -f conftest*
4823   echo 'int main () { return 0; }' > conftest.$ac_ext
4824   ac_cv_build_exeext=
4825   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4826   (eval $ac_build_link) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; then
4830     for file in conftest.*; do
4831       case $file in
4832       *.c | *.o | *.obj | *.dSYM) ;;
4833       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4834       esac
4835     done
4836   else
4837     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4838 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4839    { (exit 1); exit 1; }; }
4840   fi
4841   rm -f conftest*
4842   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4843 fi
4844 fi
4845
4846 BUILD_EXEEXT=""
4847 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4848 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4849 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4850 ac_build_exeext=$BUILD_EXEEXT
4851
4852   ac_build_prefix=${build_alias}-
4853   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4854 set dummy ${ac_build_prefix}g++; ac_word=$2
4855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858   echo $ECHO_N "(cached) $ECHO_C" >&6
4859 else
4860   if test -n "$BUILD_CXX"; then
4861   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868   for ac_exec_ext in '' $ac_executable_extensions; do
4869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4870     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872     break 2
4873   fi
4874 done
4875 done
4876 IFS=$as_save_IFS
4877
4878 fi
4879 fi
4880 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4881 if test -n "$BUILD_CXX"; then
4882   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4883 echo "${ECHO_T}$BUILD_CXX" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890   if test -z "$BUILD_CXX"; then
4891      # Extract the first word of "g++", so it can be a program name with args.
4892 set dummy g++; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   if test -n "$BUILD_CXX"; then
4899   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_prog_BUILD_CXX="g++"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4919 if test -n "$BUILD_CXX"; then
4920   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4921 echo "${ECHO_T}$BUILD_CXX" >&6; }
4922 else
4923   { echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6; }
4925 fi
4926
4927
4928      if test -z "$BUILD_CXX"; then
4929        # Extract the first word of "c++", so it can be a program name with args.
4930 set dummy c++; ac_word=$2
4931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4933 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   if test -n "$BUILD_CXX"; then
4937   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4938 else
4939   ac_prog_rejected=no
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4947     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4948        ac_prog_rejected=yes
4949        continue
4950      fi
4951     ac_cv_prog_BUILD_CXX="c++"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959 if test $ac_prog_rejected = yes; then
4960   # We found a bogon in the path, so make sure we never use it.
4961   set dummy $ac_cv_prog_BUILD_CXX
4962   shift
4963   if test $# != 0; then
4964     # We chose a different compiler from the bogus one.
4965     # However, it has the same basename, so the bogon will be chosen
4966     # first if we set BUILD_CXX to just the basename; use the full file name.
4967     shift
4968     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4969   fi
4970 fi
4971 fi
4972 fi
4973 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4974 if test -n "$BUILD_CXX"; then
4975   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4976 echo "${ECHO_T}$BUILD_CXX" >&6; }
4977 else
4978   { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4980 fi
4981
4982
4983      fi
4984   fi
4985 else
4986   LLVM_CROSS_COMPILING=0
4987
4988 fi
4989
4990 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4991   cvsbuild="yes"
4992   optimize="no"
4993   CVSBUILD=CVSBUILD=1
4994
4995 else
4996   cvsbuild="no"
4997   optimize="yes"
4998 fi
4999
5000
5001 # Check whether --enable-libcpp was given.
5002 if test "${enable_libcpp+set}" = set; then
5003   enableval=$enable_libcpp;
5004 else
5005   enableval=default
5006 fi
5007
5008 case "$enableval" in
5009   yes) ENABLE_LIBCPP=1
5010  ;;
5011   no)  ENABLE_LIBCPP=0
5012  ;;
5013   default) ENABLE_LIBCPP=0
5014 ;;
5015   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5016 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5017    { (exit 1); exit 1; }; } ;;
5018 esac
5019
5020 # Check whether --enable-optimized was given.
5021 if test "${enable_optimized+set}" = set; then
5022   enableval=$enable_optimized;
5023 else
5024   enableval=$optimize
5025 fi
5026
5027 if test ${enableval} = "no" ; then
5028   ENABLE_OPTIMIZED=
5029
5030 else
5031   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5032
5033 fi
5034
5035 # Check whether --enable-profiling was given.
5036 if test "${enable_profiling+set}" = set; then
5037   enableval=$enable_profiling;
5038 else
5039   enableval="no"
5040 fi
5041
5042 if test ${enableval} = "no" ; then
5043   ENABLE_PROFILING=
5044
5045 else
5046   ENABLE_PROFILING=ENABLE_PROFILING=1
5047
5048 fi
5049
5050 # Check whether --enable-assertions was given.
5051 if test "${enable_assertions+set}" = set; then
5052   enableval=$enable_assertions;
5053 else
5054   enableval="yes"
5055 fi
5056
5057 if test ${enableval} = "yes" ; then
5058   DISABLE_ASSERTIONS=
5059
5060 else
5061   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5062
5063 fi
5064
5065 # Check whether --enable-expensive-checks was given.
5066 if test "${enable_expensive_checks+set}" = set; then
5067   enableval=$enable_expensive_checks;
5068 else
5069   enableval="no"
5070 fi
5071
5072 if test ${enableval} = "yes" ; then
5073   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5074
5075   EXPENSIVE_CHECKS=yes
5076
5077 else
5078   ENABLE_EXPENSIVE_CHECKS=
5079
5080   EXPENSIVE_CHECKS=no
5081
5082 fi
5083
5084 # Check whether --enable-debug-runtime was given.
5085 if test "${enable_debug_runtime+set}" = set; then
5086   enableval=$enable_debug_runtime;
5087 else
5088   enableval=no
5089 fi
5090
5091 if test ${enableval} = "no" ; then
5092   DEBUG_RUNTIME=
5093
5094 else
5095   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5096
5097 fi
5098
5099 # Check whether --enable-debug-symbols was given.
5100 if test "${enable_debug_symbols+set}" = set; then
5101   enableval=$enable_debug_symbols;
5102 else
5103   enableval=no
5104 fi
5105
5106 if test ${enableval} = "no" ; then
5107   DEBUG_SYMBOLS=
5108
5109 else
5110   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5111
5112 fi
5113
5114 # Check whether --enable-jit was given.
5115 if test "${enable_jit+set}" = set; then
5116   enableval=$enable_jit;
5117 else
5118   enableval=default
5119 fi
5120
5121 if test ${enableval} = "no"
5122 then
5123   JIT=
5124
5125 else
5126   case "$llvm_cv_target_arch" in
5127     x86)         TARGET_HAS_JIT=1
5128  ;;
5129     Sparc)       TARGET_HAS_JIT=0
5130  ;;
5131     PowerPC)     TARGET_HAS_JIT=1
5132  ;;
5133     x86_64)      TARGET_HAS_JIT=1
5134  ;;
5135     ARM)         TARGET_HAS_JIT=1
5136  ;;
5137     Mips)        TARGET_HAS_JIT=1
5138  ;;
5139     XCore)       TARGET_HAS_JIT=0
5140  ;;
5141     MSP430)      TARGET_HAS_JIT=0
5142  ;;
5143     Hexagon)     TARGET_HAS_JIT=0
5144  ;;
5145     MBlaze)      TARGET_HAS_JIT=0
5146  ;;
5147     NVPTX)       TARGET_HAS_JIT=0
5148  ;;
5149     *)           TARGET_HAS_JIT=0
5150  ;;
5151   esac
5152 fi
5153
5154 # Check whether --enable-docs was given.
5155 if test "${enable_docs+set}" = set; then
5156   enableval=$enable_docs;
5157 else
5158   enableval=default
5159 fi
5160
5161 case "$enableval" in
5162   yes) ENABLE_DOCS=1
5163  ;;
5164   no)  ENABLE_DOCS=0
5165  ;;
5166   default) ENABLE_DOCS=1
5167  ;;
5168   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5170    { (exit 1); exit 1; }; } ;;
5171 esac
5172
5173 # Check whether --enable-doxygen was given.
5174 if test "${enable_doxygen+set}" = set; then
5175   enableval=$enable_doxygen;
5176 else
5177   enableval=default
5178 fi
5179
5180 case "$enableval" in
5181   yes) ENABLE_DOXYGEN=1
5182  ;;
5183   no)  ENABLE_DOXYGEN=0
5184  ;;
5185   default) ENABLE_DOXYGEN=0
5186  ;;
5187   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5189    { (exit 1); exit 1; }; } ;;
5190 esac
5191
5192 # Check whether --enable-threads was given.
5193 if test "${enable_threads+set}" = set; then
5194   enableval=$enable_threads;
5195 else
5196   enableval=default
5197 fi
5198
5199 case "$enableval" in
5200   yes) LLVM_ENABLE_THREADS=1
5201  ;;
5202   no)  LLVM_ENABLE_THREADS=0
5203  ;;
5204   default) LLVM_ENABLE_THREADS=1
5205  ;;
5206   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5208    { (exit 1); exit 1; }; } ;;
5209 esac
5210
5211 cat >>confdefs.h <<_ACEOF
5212 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5213 _ACEOF
5214
5215
5216 # Check whether --enable-pthreads was given.
5217 if test "${enable_pthreads+set}" = set; then
5218   enableval=$enable_pthreads;
5219 else
5220   enableval=default
5221 fi
5222
5223 case "$enableval" in
5224   yes) ENABLE_PTHREADS=1
5225  ;;
5226   no)  ENABLE_PTHREADS=0
5227  ;;
5228   default) ENABLE_PTHREADS=1
5229  ;;
5230   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5232    { (exit 1); exit 1; }; } ;;
5233 esac
5234
5235 # Check whether --enable-pic was given.
5236 if test "${enable_pic+set}" = set; then
5237   enableval=$enable_pic;
5238 else
5239   enableval=default
5240 fi
5241
5242 case "$enableval" in
5243   yes) ENABLE_PIC=1
5244  ;;
5245   no)  ENABLE_PIC=0
5246  ;;
5247   default) ENABLE_PIC=1
5248  ;;
5249   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251    { (exit 1); exit 1; }; } ;;
5252 esac
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define ENABLE_PIC $ENABLE_PIC
5256 _ACEOF
5257
5258
5259 # Check whether --enable-shared was given.
5260 if test "${enable_shared+set}" = set; then
5261   enableval=$enable_shared;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes) ENABLE_SHARED=1
5268  ;;
5269   no)  ENABLE_SHARED=0
5270  ;;
5271   default) ENABLE_SHARED=0
5272  ;;
5273   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276 esac
5277
5278 # Check whether --enable-embed-stdcxx was given.
5279 if test "${enable_embed_stdcxx+set}" = set; then
5280   enableval=$enable_embed_stdcxx;
5281 else
5282   enableval=default
5283 fi
5284
5285 case "$enableval" in
5286   yes) ENABLE_EMBED_STDCXX=1
5287  ;;
5288   no)  ENABLE_EMBED_STDCXX=0
5289  ;;
5290   default) ENABLE_EMBED_STDCXX=0
5291  ;;
5292   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295 esac
5296
5297 # Check whether --enable-timestamps was given.
5298 if test "${enable_timestamps+set}" = set; then
5299   enableval=$enable_timestamps;
5300 else
5301   enableval=default
5302 fi
5303
5304 case "$enableval" in
5305   yes) ENABLE_TIMESTAMPS=1
5306  ;;
5307   no)  ENABLE_TIMESTAMPS=0
5308  ;;
5309   default) ENABLE_TIMESTAMPS=1
5310  ;;
5311   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314 esac
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5318 _ACEOF
5319
5320
5321 TARGETS_TO_BUILD=""
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324   enableval=$enable_targets;
5325 else
5326   enableval=all
5327 fi
5328
5329 if test "$enableval" = host-only ; then
5330   enableval=host
5331 fi
5332 case "$enableval" in
5333   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5334   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335       case "$a_target" in
5336         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5341         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5342         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5344         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5345         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5346         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5347         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5348         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5349         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5350         host) case "$llvm_cv_target_arch" in
5351             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5352             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5353             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5354             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5355             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5356             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5357             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5358             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5359             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5360             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5361             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5362             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5363             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5364 echo "$as_me: error: Can not set target to build" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366           esac ;;
5367         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5368 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5369    { (exit 1); exit 1; }; } ;;
5370       esac
5371   done
5372   ;;
5373 esac
5374 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5375
5376
5377 for a_target in $TARGETS_TO_BUILD; do
5378   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5382 _ACEOF
5383
5384     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5385     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5386     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5387     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5388     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5389       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5390     fi
5391     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5392       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5393     fi
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5397 _ACEOF
5398
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5402 _ACEOF
5403
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5407 _ACEOF
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5412 _ACEOF
5413
5414     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5415
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5418 _ACEOF
5419
5420     fi
5421     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5422
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5425 _ACEOF
5426
5427     fi
5428   fi
5429 done
5430
5431 LLVM_ENUM_TARGETS=""
5432 LLVM_ENUM_ASM_PRINTERS=""
5433 LLVM_ENUM_ASM_PARSERS=""
5434 LLVM_ENUM_DISASSEMBLERS=""
5435 for target_to_build in $TARGETS_TO_BUILD; do
5436   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5437   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5438     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5439   fi
5440   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5441     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5442   fi
5443   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5444     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5445   fi
5446 done
5447
5448
5449
5450
5451
5452
5453 # Check whether --with-optimize-option was given.
5454 if test "${with_optimize_option+set}" = set; then
5455   withval=$with_optimize_option;
5456 else
5457   withval=default
5458 fi
5459
5460 { echo "$as_me:$LINENO: checking optimization flags" >&5
5461 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5462 case "$withval" in
5463   default)
5464     case "$llvm_cv_os_type" in
5465     FreeBSD) optimize_option=-O2 ;;
5466     MingW) optimize_option=-O2 ;;
5467     *)     optimize_option=-O3 ;;
5468     esac ;;
5469   *) optimize_option="$withval" ;;
5470 esac
5471 OPTIMIZE_OPTION=$optimize_option
5472
5473 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5474 echo "${ECHO_T}$optimize_option" >&6; }
5475
5476
5477 # Check whether --with-extra-options was given.
5478 if test "${with_extra_options+set}" = set; then
5479   withval=$with_extra_options;
5480 else
5481   withval=default
5482 fi
5483
5484 case "$withval" in
5485   default) EXTRA_OPTIONS= ;;
5486   *) EXTRA_OPTIONS=$withval ;;
5487 esac
5488 EXTRA_OPTIONS=$EXTRA_OPTIONS
5489
5490
5491
5492 # Check whether --with-extra-ld-options was given.
5493 if test "${with_extra_ld_options+set}" = set; then
5494   withval=$with_extra_ld_options;
5495 else
5496   withval=default
5497 fi
5498
5499 case "$withval" in
5500   default) EXTRA_LD_OPTIONS= ;;
5501   *) EXTRA_LD_OPTIONS=$withval ;;
5502 esac
5503 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5504
5505
5506 # Check whether --enable-bindings was given.
5507 if test "${enable_bindings+set}" = set; then
5508   enableval=$enable_bindings;
5509 else
5510   enableval=default
5511 fi
5512
5513 BINDINGS_TO_BUILD=""
5514 case "$enableval" in
5515   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5516   all ) BINDINGS_TO_BUILD="ocaml" ;;
5517   none | no) BINDINGS_TO_BUILD="" ;;
5518   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5519       case "$a_binding" in
5520         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5521         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5522 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5523    { (exit 1); exit 1; }; } ;;
5524       esac
5525   done
5526   ;;
5527 esac
5528
5529
5530 # Check whether --with-ocaml-libdir was given.
5531 if test "${with_ocaml_libdir+set}" = set; then
5532   withval=$with_ocaml_libdir;
5533 else
5534   withval=auto
5535 fi
5536
5537 case "$withval" in
5538   auto) with_ocaml_libdir="$withval" ;;
5539   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5540   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5541 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5542    { (exit 1); exit 1; }; } ;;
5543 esac
5544
5545
5546 # Check whether --with-clang-srcdir was given.
5547 if test "${with_clang_srcdir+set}" = set; then
5548   withval=$with_clang_srcdir;
5549 else
5550   withval="-"
5551 fi
5552
5553 case "$withval" in
5554   -) clang_src_root="" ;;
5555   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5556   *) clang_src_root="$ac_pwd/$withval" ;;
5557 esac
5558 CLANG_SRC_ROOT=$clang_src_root
5559
5560
5561
5562 # Check whether --with-clang-resource-dir was given.
5563 if test "${with_clang_resource_dir+set}" = set; then
5564   withval=$with_clang_resource_dir;
5565 else
5566   withval=""
5567 fi
5568
5569
5570 cat >>confdefs.h <<_ACEOF
5571 #define CLANG_RESOURCE_DIR "$withval"
5572 _ACEOF
5573
5574
5575
5576 # Check whether --with-c-include-dirs was given.
5577 if test "${with_c_include_dirs+set}" = set; then
5578   withval=$with_c_include_dirs;
5579 else
5580   withval=""
5581 fi
5582
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define C_INCLUDE_DIRS "$withval"
5586 _ACEOF
5587
5588
5589 # Clang normally uses the system c++ headers and libraries. With this option,
5590 # clang will use the ones provided by a gcc installation instead. This option should
5591 # be passed the same value that was used with --prefix when configuring gcc.
5592
5593 # Check whether --with-gcc-toolchain was given.
5594 if test "${with_gcc_toolchain+set}" = set; then
5595   withval=$with_gcc_toolchain;
5596 else
5597   withval=""
5598 fi
5599
5600
5601 cat >>confdefs.h <<_ACEOF
5602 #define GCC_INSTALL_PREFIX "$withval"
5603 _ACEOF
5604
5605
5606
5607 # Check whether --with-default-sysroot was given.
5608 if test "${with_default_sysroot+set}" = set; then
5609   withval=$with_default_sysroot;
5610 else
5611   withval=""
5612 fi
5613
5614
5615 cat >>confdefs.h <<_ACEOF
5616 #define DEFAULT_SYSROOT "$withval"
5617 _ACEOF
5618
5619
5620
5621 # Check whether --with-binutils-include was given.
5622 if test "${with_binutils_include+set}" = set; then
5623   withval=$with_binutils_include;
5624 else
5625   withval=default
5626 fi
5627
5628 case "$withval" in
5629   default) WITH_BINUTILS_INCDIR=default ;;
5630   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5631   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5632 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5633    { (exit 1); exit 1; }; } ;;
5634 esac
5635 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5636   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5637
5638   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5639      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5640      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5641 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5642    { (exit 1); exit 1; }; };
5643   fi
5644 fi
5645
5646
5647 # Check whether --with-bug-report-url was given.
5648 if test "${with_bug_report_url+set}" = set; then
5649   withval=$with_bug_report_url;
5650 else
5651   withval="http://llvm.org/bugs/"
5652 fi
5653
5654
5655 cat >>confdefs.h <<_ACEOF
5656 #define BUG_REPORT_URL "$withval"
5657 _ACEOF
5658
5659
5660 # Check whether --enable-libffi was given.
5661 if test "${enable_libffi+set}" = set; then
5662   enableval=$enable_libffi; case "$enableval" in
5663     yes) llvm_cv_enable_libffi="yes" ;;
5664     no)  llvm_cv_enable_libffi="no"  ;;
5665     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5666 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5667    { (exit 1); exit 1; }; } ;;
5668   esac
5669 else
5670   llvm_cv_enable_libffi=no
5671 fi
5672
5673
5674
5675 # Check whether --with-internal-prefix was given.
5676 if test "${with_internal_prefix+set}" = set; then
5677   withval=$with_internal_prefix;
5678 else
5679   withval=""
5680 fi
5681
5682 INTERNAL_PREFIX=$withval
5683
5684
5685
5686 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5687 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5688 if test "${lt_cv_path_NM+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   if test -n "$NM"; then
5692   # Let the user override the test.
5693   lt_cv_path_NM="$NM"
5694 else
5695   lt_nm_to_check="${ac_tool_prefix}nm"
5696   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5697     lt_nm_to_check="$lt_nm_to_check nm"
5698   fi
5699   for lt_tmp_nm in $lt_nm_to_check; do
5700     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5701     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5702       IFS="$lt_save_ifs"
5703       test -z "$ac_dir" && ac_dir=.
5704       tmp_nm="$ac_dir/$lt_tmp_nm"
5705       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5706         # Check to see if the nm accepts a BSD-compat flag.
5707         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5708         #   nm: unknown option "B" ignored
5709         # Tru64's nm complains that /dev/null is an invalid object file
5710         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5711         */dev/null* | *'Invalid file or object type'*)
5712           lt_cv_path_NM="$tmp_nm -B"
5713           break
5714           ;;
5715         *)
5716           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5717           */dev/null*)
5718             lt_cv_path_NM="$tmp_nm -p"
5719             break
5720             ;;
5721           *)
5722             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723             continue # so that we can try to find one that supports BSD flags
5724             ;;
5725           esac
5726           ;;
5727         esac
5728       fi
5729     done
5730     IFS="$lt_save_ifs"
5731   done
5732   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5733 fi
5734 fi
5735 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5736 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5737 NM="$lt_cv_path_NM"
5738
5739
5740
5741 { echo "$as_me:$LINENO: checking for GNU make" >&5
5742 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5743 if test "${llvm_cv_gnu_make_command+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   llvm_cv_gnu_make_command=''
5747  for a in "$MAKE" make gmake gnumake ; do
5748   if test -z "$a" ; then continue ; fi ;
5749   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5750   then
5751    llvm_cv_gnu_make_command=$a ;
5752    break;
5753   fi
5754  done
5755 fi
5756 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5757 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5758  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5759    ifGNUmake='' ;
5760  else
5761    ifGNUmake='#' ;
5762    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5763 echo "${ECHO_T}\"Not found\"" >&6; };
5764  fi
5765
5766
5767 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5768 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5769 LN_S=$as_ln_s
5770 if test "$LN_S" = "ln -s"; then
5771   { echo "$as_me:$LINENO: result: yes" >&5
5772 echo "${ECHO_T}yes" >&6; }
5773 else
5774   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5775 echo "${ECHO_T}no, using $LN_S" >&6; }
5776 fi
5777
5778 # Extract the first word of "cmp", so it can be a program name with args.
5779 set dummy cmp; ac_word=$2
5780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5782 if test "${ac_cv_path_CMP+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   case $CMP in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5806   ;;
5807 esac
5808 fi
5809 CMP=$ac_cv_path_CMP
5810 if test -n "$CMP"; then
5811   { echo "$as_me:$LINENO: result: $CMP" >&5
5812 echo "${ECHO_T}$CMP" >&6; }
5813 else
5814   { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5816 fi
5817
5818
5819 # Extract the first word of "cp", so it can be a program name with args.
5820 set dummy cp; ac_word=$2
5821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5823 if test "${ac_cv_path_CP+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   case $CP in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836   for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5847   ;;
5848 esac
5849 fi
5850 CP=$ac_cv_path_CP
5851 if test -n "$CP"; then
5852   { echo "$as_me:$LINENO: result: $CP" >&5
5853 echo "${ECHO_T}$CP" >&6; }
5854 else
5855   { echo "$as_me:$LINENO: result: no" >&5
5856 echo "${ECHO_T}no" >&6; }
5857 fi
5858
5859
5860 # Extract the first word of "date", so it can be a program name with args.
5861 set dummy date; ac_word=$2
5862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5864 if test "${ac_cv_path_DATE+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   case $DATE in
5868   [\\/]* | ?:[\\/]*)
5869   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5870   ;;
5871   *)
5872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5888   ;;
5889 esac
5890 fi
5891 DATE=$ac_cv_path_DATE
5892 if test -n "$DATE"; then
5893   { echo "$as_me:$LINENO: result: $DATE" >&5
5894 echo "${ECHO_T}$DATE" >&6; }
5895 else
5896   { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5898 fi
5899
5900
5901 # Extract the first word of "find", so it can be a program name with args.
5902 set dummy find; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_path_FIND+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   case $FIND in
5909   [\\/]* | ?:[\\/]*)
5910   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5911   ;;
5912   *)
5913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5929   ;;
5930 esac
5931 fi
5932 FIND=$ac_cv_path_FIND
5933 if test -n "$FIND"; then
5934   { echo "$as_me:$LINENO: result: $FIND" >&5
5935 echo "${ECHO_T}$FIND" >&6; }
5936 else
5937   { echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6; }
5939 fi
5940
5941
5942 # Extract the first word of "grep", so it can be a program name with args.
5943 set dummy grep; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_path_GREP+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   case $GREP in
5950   [\\/]* | ?:[\\/]*)
5951   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5952   ;;
5953   *)
5954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5970   ;;
5971 esac
5972 fi
5973 GREP=$ac_cv_path_GREP
5974 if test -n "$GREP"; then
5975   { echo "$as_me:$LINENO: result: $GREP" >&5
5976 echo "${ECHO_T}$GREP" >&6; }
5977 else
5978   { echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6; }
5980 fi
5981
5982
5983 # Extract the first word of "mkdir", so it can be a program name with args.
5984 set dummy mkdir; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MKDIR+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   case $MKDIR in
5991   [\\/]* | ?:[\\/]*)
5992   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5993   ;;
5994   *)
5995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998   IFS=$as_save_IFS
5999   test -z "$as_dir" && as_dir=.
6000   for ac_exec_ext in '' $ac_executable_extensions; do
6001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6002     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004     break 2
6005   fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6011   ;;
6012 esac
6013 fi
6014 MKDIR=$ac_cv_path_MKDIR
6015 if test -n "$MKDIR"; then
6016   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6017 echo "${ECHO_T}$MKDIR" >&6; }
6018 else
6019   { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021 fi
6022
6023
6024 # Extract the first word of "mv", so it can be a program name with args.
6025 set dummy mv; ac_word=$2
6026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6028 if test "${ac_cv_path_MV+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   case $MV in
6032   [\\/]* | ?:[\\/]*)
6033   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6034   ;;
6035   *)
6036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6043     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6052   ;;
6053 esac
6054 fi
6055 MV=$ac_cv_path_MV
6056 if test -n "$MV"; then
6057   { echo "$as_me:$LINENO: result: $MV" >&5
6058 echo "${ECHO_T}$MV" >&6; }
6059 else
6060   { echo "$as_me:$LINENO: result: no" >&5
6061 echo "${ECHO_T}no" >&6; }
6062 fi
6063
6064
6065 if test -n "$ac_tool_prefix"; then
6066   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6067 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_RANLIB+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   if test -n "$RANLIB"; then
6074   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6075 else
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091 fi
6092 fi
6093 RANLIB=$ac_cv_prog_RANLIB
6094 if test -n "$RANLIB"; then
6095   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6096 echo "${ECHO_T}$RANLIB" >&6; }
6097 else
6098   { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6100 fi
6101
6102
6103 fi
6104 if test -z "$ac_cv_prog_RANLIB"; then
6105   ac_ct_RANLIB=$RANLIB
6106   # Extract the first word of "ranlib", so it can be a program name with args.
6107 set dummy ranlib; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6111   echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113   if test -n "$ac_ct_RANLIB"; then
6114   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_prog_ac_ct_RANLIB="ranlib"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6134 if test -n "$ac_ct_RANLIB"; then
6135   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6136 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141
6142   if test "x$ac_ct_RANLIB" = x; then
6143     RANLIB=":"
6144   else
6145     case $cross_compiling:$ac_tool_warned in
6146 yes:)
6147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6148 whose name does not start with the host triplet.  If you think this
6149 configuration is useful to you, please write to autoconf@gnu.org." >&5
6150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6151 whose name does not start with the host triplet.  If you think this
6152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155     RANLIB=$ac_ct_RANLIB
6156   fi
6157 else
6158   RANLIB="$ac_cv_prog_RANLIB"
6159 fi
6160
6161 if test -n "$ac_tool_prefix"; then
6162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   if test -n "$AR"; then
6170   ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177   for ac_exec_ext in '' $ac_executable_extensions; do
6178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6179     ac_cv_prog_AR="${ac_tool_prefix}ar"
6180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191   { echo "$as_me:$LINENO: result: $AR" >&5
6192 echo "${ECHO_T}$AR" >&6; }
6193 else
6194   { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_AR"; then
6201   ac_ct_AR=$AR
6202   # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   if test -n "$ac_ct_AR"; then
6210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217   for ac_exec_ext in '' $ac_executable_extensions; do
6218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6219     ac_cv_prog_ac_ct_AR="ar"
6220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 echo "${ECHO_T}$ac_ct_AR" >&6; }
6233 else
6234   { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6236 fi
6237
6238   if test "x$ac_ct_AR" = x; then
6239     AR="false"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6244 whose name does not start with the host triplet.  If you think this
6245 configuration is useful to you, please write to autoconf@gnu.org." >&5
6246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6247 whose name does not start with the host triplet.  If you think this
6248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251     AR=$ac_ct_AR
6252   fi
6253 else
6254   AR="$ac_cv_prog_AR"
6255 fi
6256
6257 # Extract the first word of "rm", so it can be a program name with args.
6258 set dummy rm; ac_word=$2
6259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6261 if test "${ac_cv_path_RM+set}" = set; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   case $RM in
6265   [\\/]* | ?:[\\/]*)
6266   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6267   ;;
6268   *)
6269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6276     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282 IFS=$as_save_IFS
6283
6284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6285   ;;
6286 esac
6287 fi
6288 RM=$ac_cv_path_RM
6289 if test -n "$RM"; then
6290   { echo "$as_me:$LINENO: result: $RM" >&5
6291 echo "${ECHO_T}$RM" >&6; }
6292 else
6293   { echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6; }
6295 fi
6296
6297
6298 # Extract the first word of "sed", so it can be a program name with args.
6299 set dummy sed; ac_word=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_SED+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $SED in
6306   [\\/]* | ?:[\\/]*)
6307   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6308   ;;
6309   *)
6310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313   IFS=$as_save_IFS
6314   test -z "$as_dir" && as_dir=.
6315   for ac_exec_ext in '' $ac_executable_extensions; do
6316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6317     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319     break 2
6320   fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6326   ;;
6327 esac
6328 fi
6329 SED=$ac_cv_path_SED
6330 if test -n "$SED"; then
6331   { echo "$as_me:$LINENO: result: $SED" >&5
6332 echo "${ECHO_T}$SED" >&6; }
6333 else
6334   { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6336 fi
6337
6338
6339 # Extract the first word of "tar", so it can be a program name with args.
6340 set dummy tar; ac_word=$2
6341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343 if test "${ac_cv_path_TAR+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   case $TAR in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356   for ac_exec_ext in '' $ac_executable_extensions; do
6357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363 done
6364 IFS=$as_save_IFS
6365
6366   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6367   ;;
6368 esac
6369 fi
6370 TAR=$ac_cv_path_TAR
6371 if test -n "$TAR"; then
6372   { echo "$as_me:$LINENO: result: $TAR" >&5
6373 echo "${ECHO_T}$TAR" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379
6380 # Extract the first word of "pwd", so it can be a program name with args.
6381 set dummy pwd; ac_word=$2
6382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6384 if test "${ac_cv_path_BINPWD+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   case $BINPWD in
6388   [\\/]* | ?:[\\/]*)
6389   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6390   ;;
6391   *)
6392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6408   ;;
6409 esac
6410 fi
6411 BINPWD=$ac_cv_path_BINPWD
6412 if test -n "$BINPWD"; then
6413   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6414 echo "${ECHO_T}$BINPWD" >&6; }
6415 else
6416   { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420
6421
6422 # Extract the first word of "Graphviz", so it can be a program name with args.
6423 set dummy Graphviz; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   case $GRAPHVIZ in
6430   [\\/]* | ?:[\\/]*)
6431   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6432   ;;
6433   *)
6434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6450   ;;
6451 esac
6452 fi
6453 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6454 if test -n "$GRAPHVIZ"; then
6455   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6456 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6457 else
6458   { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6460 fi
6461
6462
6463 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6464
6465 cat >>confdefs.h <<\_ACEOF
6466 #define HAVE_GRAPHVIZ 1
6467 _ACEOF
6468
6469     if test "$llvm_cv_os_type" = "MingW" ; then
6470     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6471   fi
6472
6473 cat >>confdefs.h <<_ACEOF
6474 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6475 _ACEOF
6476
6477 fi
6478 # Extract the first word of "dot", so it can be a program name with args.
6479 set dummy dot; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_path_DOT+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   case $DOT in
6486   [\\/]* | ?:[\\/]*)
6487   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6488   ;;
6489   *)
6490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6506   ;;
6507 esac
6508 fi
6509 DOT=$ac_cv_path_DOT
6510 if test -n "$DOT"; then
6511   { echo "$as_me:$LINENO: result: $DOT" >&5
6512 echo "${ECHO_T}$DOT" >&6; }
6513 else
6514   { echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6; }
6516 fi
6517
6518
6519 if test "$DOT" != "echo dot" ; then
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_DOT 1
6523 _ACEOF
6524
6525     if test "$llvm_cv_os_type" = "MingW" ; then
6526     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6527   fi
6528
6529 cat >>confdefs.h <<_ACEOF
6530 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6531 _ACEOF
6532
6533 fi
6534 # Extract the first word of "fdp", so it can be a program name with args.
6535 set dummy fdp; ac_word=$2
6536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6538 if test "${ac_cv_path_FDP+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   case $FDP in
6542   [\\/]* | ?:[\\/]*)
6543   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6544   ;;
6545   *)
6546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549   IFS=$as_save_IFS
6550   test -z "$as_dir" && as_dir=.
6551   for ac_exec_ext in '' $ac_executable_extensions; do
6552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6555     break 2
6556   fi
6557 done
6558 done
6559 IFS=$as_save_IFS
6560
6561   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6562   ;;
6563 esac
6564 fi
6565 FDP=$ac_cv_path_FDP
6566 if test -n "$FDP"; then
6567   { echo "$as_me:$LINENO: result: $FDP" >&5
6568 echo "${ECHO_T}$FDP" >&6; }
6569 else
6570   { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6572 fi
6573
6574
6575 if test "$FDP" != "echo fdp" ; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define HAVE_FDP 1
6579 _ACEOF
6580
6581     if test "$llvm_cv_os_type" = "MingW" ; then
6582     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6583   fi
6584
6585 cat >>confdefs.h <<_ACEOF
6586 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6587 _ACEOF
6588
6589 fi
6590 # Extract the first word of "neato", so it can be a program name with args.
6591 set dummy neato; ac_word=$2
6592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6594 if test "${ac_cv_path_NEATO+set}" = set; then
6595   echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597   case $NEATO in
6598   [\\/]* | ?:[\\/]*)
6599   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6600   ;;
6601   *)
6602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 for as_dir in $PATH
6604 do
6605   IFS=$as_save_IFS
6606   test -z "$as_dir" && as_dir=.
6607   for ac_exec_ext in '' $ac_executable_extensions; do
6608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6609     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611     break 2
6612   fi
6613 done
6614 done
6615 IFS=$as_save_IFS
6616
6617   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6618   ;;
6619 esac
6620 fi
6621 NEATO=$ac_cv_path_NEATO
6622 if test -n "$NEATO"; then
6623   { echo "$as_me:$LINENO: result: $NEATO" >&5
6624 echo "${ECHO_T}$NEATO" >&6; }
6625 else
6626   { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 if test "$NEATO" != "echo neato" ; then
6632
6633 cat >>confdefs.h <<\_ACEOF
6634 #define HAVE_NEATO 1
6635 _ACEOF
6636
6637     if test "$llvm_cv_os_type" = "MingW" ; then
6638     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6639   fi
6640
6641 cat >>confdefs.h <<_ACEOF
6642 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6643 _ACEOF
6644
6645 fi
6646 # Extract the first word of "twopi", so it can be a program name with args.
6647 set dummy twopi; ac_word=$2
6648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6650 if test "${ac_cv_path_TWOPI+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   case $TWOPI in
6654   [\\/]* | ?:[\\/]*)
6655   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6656   ;;
6657   *)
6658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in $PATH
6660 do
6661   IFS=$as_save_IFS
6662   test -z "$as_dir" && as_dir=.
6663   for ac_exec_ext in '' $ac_executable_extensions; do
6664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6665     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667     break 2
6668   fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6674   ;;
6675 esac
6676 fi
6677 TWOPI=$ac_cv_path_TWOPI
6678 if test -n "$TWOPI"; then
6679   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6680 echo "${ECHO_T}$TWOPI" >&6; }
6681 else
6682   { echo "$as_me:$LINENO: result: no" >&5
6683 echo "${ECHO_T}no" >&6; }
6684 fi
6685
6686
6687 if test "$TWOPI" != "echo twopi" ; then
6688
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_TWOPI 1
6691 _ACEOF
6692
6693     if test "$llvm_cv_os_type" = "MingW" ; then
6694     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6695   fi
6696
6697 cat >>confdefs.h <<_ACEOF
6698 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6699 _ACEOF
6700
6701 fi
6702 # Extract the first word of "circo", so it can be a program name with args.
6703 set dummy circo; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_path_CIRCO+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   case $CIRCO in
6710   [\\/]* | ?:[\\/]*)
6711   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6712   ;;
6713   *)
6714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6730   ;;
6731 esac
6732 fi
6733 CIRCO=$ac_cv_path_CIRCO
6734 if test -n "$CIRCO"; then
6735   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6736 echo "${ECHO_T}$CIRCO" >&6; }
6737 else
6738   { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 fi
6741
6742
6743 if test "$CIRCO" != "echo circo" ; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_CIRCO 1
6747 _ACEOF
6748
6749     if test "$llvm_cv_os_type" = "MingW" ; then
6750     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6751   fi
6752
6753 cat >>confdefs.h <<_ACEOF
6754 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6755 _ACEOF
6756
6757 fi
6758 for ac_prog in gv gsview32
6759 do
6760   # Extract the first word of "$ac_prog", so it can be a program name with args.
6761 set dummy $ac_prog; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_GV+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   case $GV in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787   ;;
6788 esac
6789 fi
6790 GV=$ac_cv_path_GV
6791 if test -n "$GV"; then
6792   { echo "$as_me:$LINENO: result: $GV" >&5
6793 echo "${ECHO_T}$GV" >&6; }
6794 else
6795   { echo "$as_me:$LINENO: result: no" >&5
6796 echo "${ECHO_T}no" >&6; }
6797 fi
6798
6799
6800   test -n "$GV" && break
6801 done
6802 test -n "$GV" || GV="echo gv"
6803
6804 if test "$GV" != "echo gv" ; then
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define HAVE_GV 1
6808 _ACEOF
6809
6810     if test "$llvm_cv_os_type" = "MingW" ; then
6811     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6812   fi
6813
6814 cat >>confdefs.h <<_ACEOF
6815 #define LLVM_PATH_GV "$GV${EXEEXT}"
6816 _ACEOF
6817
6818 fi
6819 # Extract the first word of "dotty", so it can be a program name with args.
6820 set dummy dotty; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_path_DOTTY+set}" = set; then
6824   echo $ECHO_N "(cached) $ECHO_C" >&6
6825 else
6826   case $DOTTY in
6827   [\\/]* | ?:[\\/]*)
6828   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6829   ;;
6830   *)
6831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836   for ac_exec_ext in '' $ac_executable_extensions; do
6837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6838     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6847   ;;
6848 esac
6849 fi
6850 DOTTY=$ac_cv_path_DOTTY
6851 if test -n "$DOTTY"; then
6852   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6853 echo "${ECHO_T}$DOTTY" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860 if test "$DOTTY" != "echo dotty" ; then
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define HAVE_DOTTY 1
6864 _ACEOF
6865
6866     if test "$llvm_cv_os_type" = "MingW" ; then
6867     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6868   fi
6869
6870 cat >>confdefs.h <<_ACEOF
6871 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6872 _ACEOF
6873
6874 fi
6875 # Extract the first word of "xdot.py", so it can be a program name with args.
6876 set dummy xdot.py; ac_word=$2
6877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6879 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882   case $XDOT_PY in
6883   [\\/]* | ?:[\\/]*)
6884   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6885   ;;
6886   *)
6887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6903   ;;
6904 esac
6905 fi
6906 XDOT_PY=$ac_cv_path_XDOT_PY
6907 if test -n "$XDOT_PY"; then
6908   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6909 echo "${ECHO_T}$XDOT_PY" >&6; }
6910 else
6911   { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6913 fi
6914
6915
6916 if test "$XDOT_PY" != "echo xdot.py" ; then
6917
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_XDOT_PY 1
6920 _ACEOF
6921
6922     if test "$llvm_cv_os_type" = "MingW" ; then
6923     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6924   fi
6925
6926 cat >>confdefs.h <<_ACEOF
6927 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6928 _ACEOF
6929
6930 fi
6931
6932 # Find a good install program.  We prefer a C program (faster),
6933 # so one script is as good as another.  But avoid the broken or
6934 # incompatible versions:
6935 # SysV /etc/install, /usr/sbin/install
6936 # SunOS /usr/etc/install
6937 # IRIX /sbin/install
6938 # AIX /bin/install
6939 # AmigaOS /C/install, which installs bootblocks on floppy discs
6940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6943 # OS/2's system install, which has a completely different semantic
6944 # ./install, which can be erroneously created by make from ./install.sh.
6945 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6946 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6947 if test -z "$INSTALL"; then
6948 if test "${ac_cv_path_install+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956   # Account for people who put trailing slashes in PATH elements.
6957 case $as_dir/ in
6958   ./ | .// | /cC/* | \
6959   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6960   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6961   /usr/ucb/* ) ;;
6962   *)
6963     # OSF1 and SCO ODT 3.0 have their own names for install.
6964     # Don't use installbsd from OSF since it installs stuff as root
6965     # by default.
6966     for ac_prog in ginstall scoinst install; do
6967       for ac_exec_ext in '' $ac_executable_extensions; do
6968         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6969           if test $ac_prog = install &&
6970             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6971             # AIX install.  It has an incompatible calling convention.
6972             :
6973           elif test $ac_prog = install &&
6974             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6975             # program-specific install script used by HP pwplus--don't use.
6976             :
6977           else
6978             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6979             break 3
6980           fi
6981         fi
6982       done
6983     done
6984     ;;
6985 esac
6986 done
6987 IFS=$as_save_IFS
6988
6989
6990 fi
6991   if test "${ac_cv_path_install+set}" = set; then
6992     INSTALL=$ac_cv_path_install
6993   else
6994     # As a last resort, use the slow shell script.  Don't cache a
6995     # value for INSTALL within a source directory, because that will
6996     # break other packages using the cache if that directory is
6997     # removed, or if the value is a relative name.
6998     INSTALL=$ac_install_sh
6999   fi
7000 fi
7001 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7002 echo "${ECHO_T}$INSTALL" >&6; }
7003
7004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7005 # It thinks the first close brace ends the variable substitution.
7006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7007
7008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7009
7010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7011
7012 case "$INSTALL" in
7013  [\\/$]* | ?:[\\/]* ) ;;
7014  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7015 esac
7016
7017 # Extract the first word of "bzip2", so it can be a program name with args.
7018 set dummy bzip2; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_path_BZIP2+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $BZIP2 in
7025   [\\/]* | ?:[\\/]*)
7026   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7027   ;;
7028   *)
7029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044   ;;
7045 esac
7046 fi
7047 BZIP2=$ac_cv_path_BZIP2
7048 if test -n "$BZIP2"; then
7049   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7050 echo "${ECHO_T}$BZIP2" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 # Extract the first word of "cat", so it can be a program name with args.
7058 set dummy cat; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_path_CAT+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   case $CAT in
7065   [\\/]* | ?:[\\/]*)
7066   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7067   ;;
7068   *)
7069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084   ;;
7085 esac
7086 fi
7087 CAT=$ac_cv_path_CAT
7088 if test -n "$CAT"; then
7089   { echo "$as_me:$LINENO: result: $CAT" >&5
7090 echo "${ECHO_T}$CAT" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096
7097 # Extract the first word of "doxygen", so it can be a program name with args.
7098 set dummy doxygen; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   case $DOXYGEN in
7105   [\\/]* | ?:[\\/]*)
7106   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7107   ;;
7108   *)
7109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114   for ac_exec_ext in '' $ac_executable_extensions; do
7115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124   ;;
7125 esac
7126 fi
7127 DOXYGEN=$ac_cv_path_DOXYGEN
7128 if test -n "$DOXYGEN"; then
7129   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7130 echo "${ECHO_T}$DOXYGEN" >&6; }
7131 else
7132   { echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6; }
7134 fi
7135
7136
7137 # Extract the first word of "groff", so it can be a program name with args.
7138 set dummy groff; ac_word=$2
7139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7141 if test "${ac_cv_path_GROFF+set}" = set; then
7142   echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144   case $GROFF in
7145   [\\/]* | ?:[\\/]*)
7146   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7147   ;;
7148   *)
7149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154   for ac_exec_ext in '' $ac_executable_extensions; do
7155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164   ;;
7165 esac
7166 fi
7167 GROFF=$ac_cv_path_GROFF
7168 if test -n "$GROFF"; then
7169   { echo "$as_me:$LINENO: result: $GROFF" >&5
7170 echo "${ECHO_T}$GROFF" >&6; }
7171 else
7172   { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176
7177 # Extract the first word of "gzip", so it can be a program name with args.
7178 set dummy gzip; ac_word=$2
7179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7181 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7182   echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184   case $GZIPBIN in
7185   [\\/]* | ?:[\\/]*)
7186   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7187   ;;
7188   *)
7189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194   for ac_exec_ext in '' $ac_executable_extensions; do
7195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204   ;;
7205 esac
7206 fi
7207 GZIPBIN=$ac_cv_path_GZIPBIN
7208 if test -n "$GZIPBIN"; then
7209   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7210 echo "${ECHO_T}$GZIPBIN" >&6; }
7211 else
7212   { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216
7217 # Extract the first word of "pdfroff", so it can be a program name with args.
7218 set dummy pdfroff; ac_word=$2
7219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221 if test "${ac_cv_path_PDFROFF+set}" = set; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   case $PDFROFF in
7225   [\\/]* | ?:[\\/]*)
7226   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7227   ;;
7228   *)
7229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234   for ac_exec_ext in '' $ac_executable_extensions; do
7235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7236     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244   ;;
7245 esac
7246 fi
7247 PDFROFF=$ac_cv_path_PDFROFF
7248 if test -n "$PDFROFF"; then
7249   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7250 echo "${ECHO_T}$PDFROFF" >&6; }
7251 else
7252   { echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6; }
7254 fi
7255
7256
7257 # Extract the first word of "zip", so it can be a program name with args.
7258 set dummy zip; ac_word=$2
7259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261 if test "${ac_cv_path_ZIP+set}" = set; then
7262   echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264   case $ZIP in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284   ;;
7285 esac
7286 fi
7287 ZIP=$ac_cv_path_ZIP
7288 if test -n "$ZIP"; then
7289   { echo "$as_me:$LINENO: result: $ZIP" >&5
7290 echo "${ECHO_T}$ZIP" >&6; }
7291 else
7292   { echo "$as_me:$LINENO: result: no" >&5
7293 echo "${ECHO_T}no" >&6; }
7294 fi
7295
7296
7297 for ac_prog in ocamlc
7298 do
7299   # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_OCAMLC+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $OCAMLC in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 OCAMLC=$ac_cv_path_OCAMLC
7330 if test -n "$OCAMLC"; then
7331   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7332 echo "${ECHO_T}$OCAMLC" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339   test -n "$OCAMLC" && break
7340 done
7341
7342 for ac_prog in ocamlopt
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $OCAMLOPT in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371   ;;
7372 esac
7373 fi
7374 OCAMLOPT=$ac_cv_path_OCAMLOPT
7375 if test -n "$OCAMLOPT"; then
7376   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7377 echo "${ECHO_T}$OCAMLOPT" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384   test -n "$OCAMLOPT" && break
7385 done
7386
7387 for ac_prog in ocamldep
7388 do
7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7394   echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396   case $OCAMLDEP in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406   for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413 done
7414 IFS=$as_save_IFS
7415
7416   ;;
7417 esac
7418 fi
7419 OCAMLDEP=$ac_cv_path_OCAMLDEP
7420 if test -n "$OCAMLDEP"; then
7421   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7422 echo "${ECHO_T}$OCAMLDEP" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7427
7428
7429   test -n "$OCAMLDEP" && break
7430 done
7431
7432 for ac_prog in ocamldoc
7433 do
7434   # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   case $OCAMLDOC in
7442   [\\/]* | ?:[\\/]*)
7443   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7444   ;;
7445   *)
7446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461   ;;
7462 esac
7463 fi
7464 OCAMLDOC=$ac_cv_path_OCAMLDOC
7465 if test -n "$OCAMLDOC"; then
7466   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7467 echo "${ECHO_T}$OCAMLDOC" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473
7474   test -n "$OCAMLDOC" && break
7475 done
7476
7477 for ac_prog in gas as
7478 do
7479   # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy $ac_prog; ac_word=$2
7481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7483 if test "${ac_cv_path_GAS+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   case $GAS in
7487   [\\/]* | ?:[\\/]*)
7488   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7489   ;;
7490   *)
7491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7498     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506   ;;
7507 esac
7508 fi
7509 GAS=$ac_cv_path_GAS
7510 if test -n "$GAS"; then
7511   { echo "$as_me:$LINENO: result: $GAS" >&5
7512 echo "${ECHO_T}$GAS" >&6; }
7513 else
7514   { echo "$as_me:$LINENO: result: no" >&5
7515 echo "${ECHO_T}no" >&6; }
7516 fi
7517
7518
7519   test -n "$GAS" && break
7520 done
7521
7522
7523 { echo "$as_me:$LINENO: checking for linker version" >&5
7524 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7525 if test "${llvm_cv_link_version+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528
7529    version_string="$(ld -v 2>&1 | head -1)"
7530
7531    # Check for ld64.
7532    if (echo "$version_string" | grep -q "ld64"); then
7533      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7534    else
7535      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7536    fi
7537
7538 fi
7539 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7540 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7541
7542 cat >>confdefs.h <<_ACEOF
7543 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7544 _ACEOF
7545
7546
7547
7548 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7549 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7550 if test "${llvm_cv_link_use_r+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553    ac_ext=c
7554 ac_cpp='$CPP $CPPFLAGS'
7555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559   oldcflags="$CFLAGS"
7560   CFLAGS="$CFLAGS -Wl,-R."
7561   cat >conftest.$ac_ext <<_ACEOF
7562 /* confdefs.h.  */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h.  */
7567
7568 int
7569 main ()
7570 {
7571
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7578 case "(($ac_try" in
7579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580   *) ac_try_echo=$ac_try;;
7581 esac
7582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7583   (eval "$ac_link") 2>conftest.er1
7584   ac_status=$?
7585   grep -v '^ *+' conftest.er1 >conftest.err
7586   rm -f conftest.er1
7587   cat conftest.err >&5
7588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); } &&
7590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7591   { (case "(($ac_try" in
7592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593   *) ac_try_echo=$ac_try;;
7594 esac
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596   (eval "$ac_try") 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (case "(($ac_try" in
7602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603   *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606   (eval "$ac_try") 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); }; }; then
7610   llvm_cv_link_use_r=yes
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615         llvm_cv_link_use_r=no
7616 fi
7617
7618 rm -f core conftest.err conftest.$ac_objext \
7619       conftest$ac_exeext conftest.$ac_ext
7620   CFLAGS="$oldcflags"
7621   ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7626
7627
7628 fi
7629 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7630 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7631 if test "$llvm_cv_link_use_r" = yes ; then
7632
7633 cat >>confdefs.h <<\_ACEOF
7634 #define HAVE_LINK_R 1
7635 _ACEOF
7636
7637   fi
7638
7639
7640 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7641 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7642 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645    ac_ext=c
7646 ac_cpp='$CPP $CPPFLAGS'
7647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650
7651   oldcflags="$CFLAGS"
7652   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7653   cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659
7660 int
7661 main ()
7662 {
7663
7664   ;
7665   return 0;
7666 }
7667 _ACEOF
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7670 case "(($ac_try" in
7671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672   *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675   (eval "$ac_link") 2>conftest.er1
7676   ac_status=$?
7677   grep -v '^ *+' conftest.er1 >conftest.err
7678   rm -f conftest.er1
7679   cat conftest.err >&5
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); } &&
7682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7683   { (case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_try") 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; } &&
7692          { ac_try='test -s conftest$ac_exeext'
7693   { (case "(($ac_try" in
7694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695   *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698   (eval "$ac_try") 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   llvm_cv_link_use_export_dynamic=yes
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707         llvm_cv_link_use_export_dynamic=no
7708 fi
7709
7710 rm -f core conftest.err conftest.$ac_objext \
7711       conftest$ac_exeext conftest.$ac_ext
7712   CFLAGS="$oldcflags"
7713   ac_ext=c
7714 ac_cpp='$CPP $CPPFLAGS'
7715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718
7719
7720 fi
7721 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7722 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7723 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7724
7725 cat >>confdefs.h <<\_ACEOF
7726 #define HAVE_LINK_EXPORT_DYNAMIC 1
7727 _ACEOF
7728
7729   fi
7730
7731
7732 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7733 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7734 if test "${llvm_cv_link_use_version_script+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737    ac_ext=c
7738 ac_cpp='$CPP $CPPFLAGS'
7739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742
7743   oldcflags="$CFLAGS"
7744
7745   # The following code is from the autoconf manual,
7746   # "11.13: Limitations of Usual Tools".
7747   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7748   # Use mktemp if possible; otherwise fall back on mkdir,
7749   # with $RANDOM to make collisions less likely.
7750   : ${TMPDIR=/tmp}
7751   {
7752     tmp=`
7753       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7754     ` &&
7755     test -n "$tmp" && test -d "$tmp"
7756   } || {
7757     tmp=$TMPDIR/foo$$-$RANDOM
7758     (umask 077 && mkdir "$tmp")
7759   } || exit $?
7760
7761   echo "{" > "$tmp/export.map"
7762   echo "  global: main;" >> "$tmp/export.map"
7763   echo "  local: *;" >> "$tmp/export.map"
7764   echo "};" >> "$tmp/export.map"
7765
7766   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7767   cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 int
7775 main ()
7776 {
7777
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7784 case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_link") 2>conftest.er1
7790   ac_status=$?
7791   grep -v '^ *+' conftest.er1 >conftest.err
7792   rm -f conftest.er1
7793   cat conftest.err >&5
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); } &&
7796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797   { (case "(($ac_try" in
7798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799   *) ac_try_echo=$ac_try;;
7800 esac
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802   (eval "$ac_try") 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest$ac_exeext'
7807   { (case "(($ac_try" in
7808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809   *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812   (eval "$ac_try") 2>&5
7813   ac_status=$?
7814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815   (exit $ac_status); }; }; then
7816   llvm_cv_link_use_version_script=yes
7817 else
7818   echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821         llvm_cv_link_use_version_script=no
7822 fi
7823
7824 rm -f core conftest.err conftest.$ac_objext \
7825       conftest$ac_exeext conftest.$ac_ext
7826   rm "$tmp/export.map"
7827   rmdir "$tmp"
7828   CFLAGS="$oldcflags"
7829   ac_ext=c
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836 fi
7837 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7838 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7839 if test "$llvm_cv_link_use_version_script" = yes ; then
7840   HAVE_LINK_VERSION_SCRIPT=1
7841
7842   fi
7843
7844
7845
7846
7847 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7849 if test "${ac_cv_c_const+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 int
7860 main ()
7861 {
7862 /* FIXME: Include the comments suggested by Paul. */
7863 #ifndef __cplusplus
7864   /* Ultrix mips cc rejects this.  */
7865   typedef int charset[2];
7866   const charset x;
7867   /* SunOS 4.1.1 cc rejects this.  */
7868   char const *const *ccp;
7869   char **p;
7870   /* NEC SVR4.0.2 mips cc rejects this.  */
7871   struct point {int x, y;};
7872   static struct point const zero = {0,0};
7873   /* AIX XL C 1.02.0.0 rejects this.
7874      It does not let you subtract one const X* pointer from another in
7875      an arm of an if-expression whose if-part is not a constant
7876      expression */
7877   const char *g = "string";
7878   ccp = &g + (g ? g-g : 0);
7879   /* HPUX 7.0 cc rejects these. */
7880   ++ccp;
7881   p = (char**) ccp;
7882   ccp = (char const *const *) p;
7883   { /* SCO 3.2v4 cc rejects this.  */
7884     char *t;
7885     char const *s = 0 ? (char *) 0 : (char const *) 0;
7886
7887     *t++ = 0;
7888     if (s) return 0;
7889   }
7890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7891     int x[] = {25, 17};
7892     const int *foo = &x[0];
7893     ++foo;
7894   }
7895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7896     typedef const int *iptr;
7897     iptr p = 0;
7898     ++p;
7899   }
7900   { /* AIX XL C 1.02.0.0 rejects this saying
7901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7902     struct s { int j; const int *ap[3]; };
7903     struct s *b; b->j = 5;
7904   }
7905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7906     const int foo = 10;
7907     if (!foo) return 0;
7908   }
7909   return !x[0] && !zero.x;
7910 #endif
7911
7912   ;
7913   return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920   *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923   (eval "$ac_compile") 2>conftest.er1
7924   ac_status=$?
7925   grep -v '^ *+' conftest.er1 >conftest.err
7926   rm -f conftest.er1
7927   cat conftest.err >&5
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); } &&
7930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7931   { (case "(($ac_try" in
7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933   *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936   (eval "$ac_try") 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; } &&
7940          { ac_try='test -s conftest.$ac_objext'
7941   { (case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946   (eval "$ac_try") 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; }; then
7950   ac_cv_c_const=yes
7951 else
7952   echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955         ac_cv_c_const=no
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 fi
7960 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7961 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7962 if test $ac_cv_c_const = no; then
7963
7964 cat >>confdefs.h <<\_ACEOF
7965 #define const
7966 _ACEOF
7967
7968 fi
7969
7970
7971
7972
7973
7974
7975 ac_header_dirent=no
7976 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7977   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7978 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7979 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <sys/types.h>
7990 #include <$ac_hdr>
7991
7992 int
7993 main ()
7994 {
7995 if ((DIR *) 0)
7996 return 0;
7997   ;
7998   return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005   *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008   (eval "$ac_compile") 2>conftest.er1
8009   ac_status=$?
8010   grep -v '^ *+' conftest.er1 >conftest.err
8011   rm -f conftest.er1
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8016   { (case "(($ac_try" in
8017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018   *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021   (eval "$ac_try") 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; } &&
8025          { ac_try='test -s conftest.$ac_objext'
8026   { (case "(($ac_try" in
8027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028   *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031   (eval "$ac_try") 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   eval "$as_ac_Header=yes"
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040         eval "$as_ac_Header=no"
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 ac_res=`eval echo '${'$as_ac_Header'}'`
8046                { echo "$as_me:$LINENO: result: $ac_res" >&5
8047 echo "${ECHO_T}$ac_res" >&6; }
8048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8049   cat >>confdefs.h <<_ACEOF
8050 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8051 _ACEOF
8052
8053 ac_header_dirent=$ac_hdr; break
8054 fi
8055
8056 done
8057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8058 if test $ac_header_dirent = dirent.h; then
8059   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061 if test "${ac_cv_search_opendir+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   ac_func_search_save_LIBS=$LIBS
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h.  */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h.  */
8071
8072 /* Override any GCC internal prototype to avoid an error.
8073    Use char because int might match the return type of a GCC
8074    builtin and then its argument prototype would still apply.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 char opendir ();
8079 int
8080 main ()
8081 {
8082 return opendir ();
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 for ac_lib in '' dir; do
8088   if test -z "$ac_lib"; then
8089     ac_res="none required"
8090   else
8091     ac_res=-l$ac_lib
8092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8093   fi
8094   rm -f conftest.$ac_objext conftest$ac_exeext
8095 if { (ac_try="$ac_link"
8096 case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_link") 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } &&
8108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109   { (case "(($ac_try" in
8110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111   *) ac_try_echo=$ac_try;;
8112 esac
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114   (eval "$ac_try") 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_try") 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; }; then
8128   ac_cv_search_opendir=$ac_res
8129 else
8130   echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
8134 fi
8135
8136 rm -f core conftest.err conftest.$ac_objext \
8137       conftest$ac_exeext
8138   if test "${ac_cv_search_opendir+set}" = set; then
8139   break
8140 fi
8141 done
8142 if test "${ac_cv_search_opendir+set}" = set; then
8143   :
8144 else
8145   ac_cv_search_opendir=no
8146 fi
8147 rm conftest.$ac_ext
8148 LIBS=$ac_func_search_save_LIBS
8149 fi
8150 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8151 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8152 ac_res=$ac_cv_search_opendir
8153 if test "$ac_res" != no; then
8154   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8155
8156 fi
8157
8158 else
8159   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8160 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8161 if test "${ac_cv_search_opendir+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_func_search_save_LIBS=$LIBS
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171
8172 /* Override any GCC internal prototype to avoid an error.
8173    Use char because int might match the return type of a GCC
8174    builtin and then its argument prototype would still apply.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 char opendir ();
8179 int
8180 main ()
8181 {
8182 return opendir ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 for ac_lib in '' x; do
8188   if test -z "$ac_lib"; then
8189     ac_res="none required"
8190   else
8191     ac_res=-l$ac_lib
8192     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8193   fi
8194   rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_link") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8209   { (case "(($ac_try" in
8210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211   *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214   (eval "$ac_try") 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); }; } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224   (eval "$ac_try") 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_search_opendir=$ac_res
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext \
8237       conftest$ac_exeext
8238   if test "${ac_cv_search_opendir+set}" = set; then
8239   break
8240 fi
8241 done
8242 if test "${ac_cv_search_opendir+set}" = set; then
8243   :
8244 else
8245   ac_cv_search_opendir=no
8246 fi
8247 rm conftest.$ac_ext
8248 LIBS=$ac_func_search_save_LIBS
8249 fi
8250 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8251 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8252 ac_res=$ac_cv_search_opendir
8253 if test "$ac_res" != no; then
8254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8255
8256 fi
8257
8258 fi
8259
8260
8261 for ac_header in dlfcn.h
8262 do
8263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 fi
8270 ac_res=`eval echo '${'$as_ac_Header'}'`
8271                { echo "$as_me:$LINENO: result: $ac_res" >&5
8272 echo "${ECHO_T}$ac_res" >&6; }
8273 else
8274   # Is the header compilable?
8275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 $ac_includes_default
8284 #include <$ac_header>
8285 _ACEOF
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8288 case "(($ac_try" in
8289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8290   *) ac_try_echo=$ac_try;;
8291 esac
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293   (eval "$ac_compile") 2>conftest.er1
8294   ac_status=$?
8295   grep -v '^ *+' conftest.er1 >conftest.err
8296   rm -f conftest.er1
8297   cat conftest.err >&5
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } &&
8300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8301   { (case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_try") 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; } &&
8310          { ac_try='test -s conftest.$ac_objext'
8311   { (case "(($ac_try" in
8312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313   *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316   (eval "$ac_try") 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_header_compiler=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325         ac_header_compiler=no
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8330 echo "${ECHO_T}$ac_header_compiler" >&6; }
8331
8332 # Is the header present?
8333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8335 cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 #include <$ac_header>
8342 _ACEOF
8343 if { (ac_try="$ac_cpp conftest.$ac_ext"
8344 case "(($ac_try" in
8345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346   *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8350   ac_status=$?
8351   grep -v '^ *+' conftest.er1 >conftest.err
8352   rm -f conftest.er1
8353   cat conftest.err >&5
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); } >/dev/null; then
8356   if test -s conftest.err; then
8357     ac_cpp_err=$ac_c_preproc_warn_flag
8358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8359   else
8360     ac_cpp_err=
8361   fi
8362 else
8363   ac_cpp_err=yes
8364 fi
8365 if test -z "$ac_cpp_err"; then
8366   ac_header_preproc=yes
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371   ac_header_preproc=no
8372 fi
8373
8374 rm -f conftest.err conftest.$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8376 echo "${ECHO_T}$ac_header_preproc" >&6; }
8377
8378 # So?  What about this header?
8379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8380   yes:no: )
8381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8385     ac_header_preproc=yes
8386     ;;
8387   no:yes:* )
8388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8400     ( cat <<\_ASBOX
8401 ## ------------------------------------ ##
8402 ## Report this to http://llvm.org/bugs/ ##
8403 ## ------------------------------------ ##
8404 _ASBOX
8405      ) | sed "s/^/$as_me: WARNING:     /" >&2
8406     ;;
8407 esac
8408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411   echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413   eval "$as_ac_Header=\$ac_header_preproc"
8414 fi
8415 ac_res=`eval echo '${'$as_ac_Header'}'`
8416                { echo "$as_me:$LINENO: result: $ac_res" >&5
8417 echo "${ECHO_T}$ac_res" >&6; }
8418
8419 fi
8420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8421   cat >>confdefs.h <<_ACEOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 _ACEOF
8424
8425 fi
8426
8427 done
8428
8429 # Check whether --enable-ltdl-install was given.
8430 if test "${enable_ltdl_install+set}" = set; then
8431   enableval=$enable_ltdl_install;
8432 fi
8433
8434
8435
8436
8437 if test x"${enable_ltdl_install-no}" != xno; then
8438   INSTALL_LTDL_TRUE=
8439   INSTALL_LTDL_FALSE='#'
8440 else
8441   INSTALL_LTDL_TRUE='#'
8442   INSTALL_LTDL_FALSE=
8443 fi
8444
8445
8446
8447 if test x"${enable_ltdl_convenience-no}" != xno; then
8448   CONVENIENCE_LTDL_TRUE=
8449   CONVENIENCE_LTDL_FALSE='#'
8450 else
8451   CONVENIENCE_LTDL_TRUE='#'
8452   CONVENIENCE_LTDL_FALSE=
8453 fi
8454
8455
8456 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8457 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8458 library_names_spec=
8459 libname_spec='lib$name'
8460 soname_spec=
8461 shrext_cmds=".so"
8462 postinstall_cmds=
8463 postuninstall_cmds=
8464 finish_cmds=
8465 finish_eval=
8466 shlibpath_var=
8467 shlibpath_overrides_runpath=unknown
8468 version_type=none
8469 dynamic_linker="$host_os ld.so"
8470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471 if test "$GCC" = yes; then
8472   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8473   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8474     # if the path contains ";" then we assume it to be the separator
8475     # otherwise default to the standard path separator (i.e. ":") - it is
8476     # assumed that no part of a normal pathname contains ";" but that should
8477     # okay in the real world where ";" in dirpaths is itself problematic.
8478     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8479   else
8480     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8481   fi
8482 else
8483   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8484 fi
8485 need_lib_prefix=unknown
8486 hardcode_into_libs=no
8487
8488 # when you set need_version to no, make sure it does not cause -set_version
8489 # flags to be left without arguments
8490 need_version=unknown
8491
8492 case $host_os in
8493 aix3*)
8494   version_type=linux
8495   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496   shlibpath_var=LIBPATH
8497
8498   # AIX 3 has no versioning support, so we append a major version to the name.
8499   soname_spec='${libname}${release}${shared_ext}$major'
8500   ;;
8501
8502 aix4* | aix5*)
8503   version_type=linux
8504   need_lib_prefix=no
8505   need_version=no
8506   hardcode_into_libs=yes
8507   if test "$host_cpu" = ia64; then
8508     # AIX 5 supports IA64
8509     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510     shlibpath_var=LD_LIBRARY_PATH
8511   else
8512     # With GCC up to 2.95.x, collect2 would create an import file
8513     # for dependence libraries.  The import file would start with
8514     # the line `#! .'.  This would cause the generated library to
8515     # depend on `.', always an invalid library.  This was fixed in
8516     # development snapshots of GCC prior to 3.0.
8517     case $host_os in
8518       aix4 | aix4.[01] | aix4.[01].*)
8519       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8520            echo ' yes '
8521            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8522         :
8523       else
8524         can_build_shared=no
8525       fi
8526       ;;
8527     esac
8528     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529     # soname into executable. Probably we can add versioning support to
8530     # collect2, so additional links can be useful in future.
8531     if test "$aix_use_runtimelinking" = yes; then
8532       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533       # instead of lib<name>.a to let people know that these are not
8534       # typical AIX shared libraries.
8535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536     else
8537       # We preserve .a as extension for shared libraries through AIX4.2
8538       # and later when we are not doing run time linking.
8539       library_names_spec='${libname}${release}.a $libname.a'
8540       soname_spec='${libname}${release}${shared_ext}$major'
8541     fi
8542     shlibpath_var=LIBPATH
8543   fi
8544   ;;
8545
8546 amigaos*)
8547   library_names_spec='$libname.ixlibrary $libname.a'
8548   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8549   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'
8550   ;;
8551
8552 beos*)
8553   library_names_spec='${libname}${shared_ext}'
8554   dynamic_linker="$host_os ld.so"
8555   shlibpath_var=LIBRARY_PATH
8556   ;;
8557
8558 bsdi[45]*)
8559   version_type=linux
8560   need_version=no
8561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8562   soname_spec='${libname}${release}${shared_ext}$major'
8563   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8564   shlibpath_var=LD_LIBRARY_PATH
8565   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8566   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8567   # the default ld.so.conf also contains /usr/contrib/lib and
8568   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8569   # libtool to hard-code these into programs
8570   ;;
8571
8572 cygwin* | mingw* | pw32*)
8573   version_type=windows
8574   shrext_cmds=".dll"
8575   need_version=no
8576   need_lib_prefix=no
8577
8578   case $GCC,$host_os in
8579   yes,cygwin* | yes,mingw* | yes,pw32*)
8580     library_names_spec='$libname.dll.a'
8581     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8582     postinstall_cmds='base_file=`basename \${file}`~
8583       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8584       dldir=$destdir/`dirname \$dlpath`~
8585       test -d \$dldir || mkdir -p \$dldir~
8586       $install_prog $dir/$dlname \$dldir/$dlname~
8587       chmod a+x \$dldir/$dlname'
8588     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8589       dlpath=$dir/\$dldll~
8590        $rm \$dlpath'
8591     shlibpath_overrides_runpath=yes
8592
8593     case $host_os in
8594     cygwin*)
8595       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8596       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8597       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8598       ;;
8599     mingw*)
8600       # MinGW DLLs use traditional 'lib' prefix
8601       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8602       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8603       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8604         # It is most probably a Windows format PATH printed by
8605         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8606         # path with ; separators, and with drive letters. We can handle the
8607         # drive letters (cygwin fileutils understands them), so leave them,
8608         # especially as we might pass files found there to a mingw objdump,
8609         # which wouldn't understand a cygwinified path. Ahh.
8610         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8611       else
8612         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8613       fi
8614       ;;
8615     pw32*)
8616       # pw32 DLLs use 'pw' prefix rather than 'lib'
8617       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8618       ;;
8619     esac
8620     ;;
8621
8622   *)
8623     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8624     ;;
8625   esac
8626   dynamic_linker='Win32 ld.exe'
8627   # FIXME: first we should search . and the directory the executable is in
8628   shlibpath_var=PATH
8629   ;;
8630
8631 darwin* | rhapsody*)
8632   dynamic_linker="$host_os dyld"
8633   version_type=darwin
8634   need_lib_prefix=no
8635   need_version=no
8636   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8637   soname_spec='${libname}${release}${major}$shared_ext'
8638   shlibpath_overrides_runpath=yes
8639   shlibpath_var=DYLD_LIBRARY_PATH
8640   shrext_cmds='.dylib'
8641   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8642   if test "$GCC" = yes; then
8643     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"`
8644   else
8645     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8646   fi
8647   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8648   ;;
8649
8650 dgux*)
8651   version_type=linux
8652   need_lib_prefix=no
8653   need_version=no
8654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8655   soname_spec='${libname}${release}${shared_ext}$major'
8656   shlibpath_var=LD_LIBRARY_PATH
8657   ;;
8658
8659 freebsd1.*)
8660   dynamic_linker=no
8661   ;;
8662
8663 kfreebsd*-gnu)
8664   version_type=linux
8665   need_lib_prefix=no
8666   need_version=no
8667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8668   soname_spec='${libname}${release}${shared_ext}$major'
8669   shlibpath_var=LD_LIBRARY_PATH
8670   shlibpath_overrides_runpath=no
8671   hardcode_into_libs=yes
8672   dynamic_linker='GNU ld.so'
8673   ;;
8674
8675 freebsd* | dragonfly*)
8676   # DragonFly does not have aout.  When/if they implement a new
8677   # versioning mechanism, adjust this.
8678   if test -x /usr/bin/objformat; then
8679     objformat=`/usr/bin/objformat`
8680   else
8681     case $host_os in
8682     freebsd[123].*) objformat=aout ;;
8683     *) objformat=elf ;;
8684     esac
8685   fi
8686   version_type=freebsd-$objformat
8687   case $version_type in
8688     freebsd-elf*)
8689       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8690       need_version=no
8691       need_lib_prefix=no
8692       ;;
8693     freebsd-*)
8694       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8695       need_version=yes
8696       ;;
8697   esac
8698   shlibpath_var=LD_LIBRARY_PATH
8699   case $host_os in
8700   freebsd2.*)
8701     shlibpath_overrides_runpath=yes
8702     ;;
8703   freebsd3.[01]* | freebsdelf3.[01]*)
8704     shlibpath_overrides_runpath=yes
8705     hardcode_into_libs=yes
8706     ;;
8707   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8708   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8709     shlibpath_overrides_runpath=no
8710     hardcode_into_libs=yes
8711     ;;
8712   freebsd*) # from 4.6 on
8713     shlibpath_overrides_runpath=yes
8714     hardcode_into_libs=yes
8715     ;;
8716   esac
8717   ;;
8718
8719 gnu*)
8720   version_type=linux
8721   need_lib_prefix=no
8722   need_version=no
8723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8724   soname_spec='${libname}${release}${shared_ext}$major'
8725   shlibpath_var=LD_LIBRARY_PATH
8726   hardcode_into_libs=yes
8727   ;;
8728
8729 hpux9* | hpux10* | hpux11*)
8730   # Give a soname corresponding to the major version so that dld.sl refuses to
8731   # link against other versions.
8732   version_type=sunos
8733   need_lib_prefix=no
8734   need_version=no
8735   case $host_cpu in
8736   ia64*)
8737     shrext_cmds='.so'
8738     hardcode_into_libs=yes
8739     dynamic_linker="$host_os dld.so"
8740     shlibpath_var=LD_LIBRARY_PATH
8741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743     soname_spec='${libname}${release}${shared_ext}$major'
8744     if test "X$HPUX_IA64_MODE" = X32; then
8745       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8746     else
8747       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8748     fi
8749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8750     ;;
8751    hppa*64*)
8752      shrext_cmds='.sl'
8753      hardcode_into_libs=yes
8754      dynamic_linker="$host_os dld.sl"
8755      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8756      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8758      soname_spec='${libname}${release}${shared_ext}$major'
8759      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8760      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8761      ;;
8762    *)
8763     shrext_cmds='.sl'
8764     dynamic_linker="$host_os dld.sl"
8765     shlibpath_var=SHLIB_PATH
8766     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768     soname_spec='${libname}${release}${shared_ext}$major'
8769     ;;
8770   esac
8771   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8772   postinstall_cmds='chmod 555 $lib'
8773   ;;
8774
8775 interix3*)
8776   version_type=linux
8777   need_lib_prefix=no
8778   need_version=no
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780   soname_spec='${libname}${release}${shared_ext}$major'
8781   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8782   shlibpath_var=LD_LIBRARY_PATH
8783   shlibpath_overrides_runpath=no
8784   hardcode_into_libs=yes
8785   ;;
8786
8787 irix5* | irix6* | nonstopux*)
8788   case $host_os in
8789     nonstopux*) version_type=nonstopux ;;
8790     *)
8791         if test "$lt_cv_prog_gnu_ld" = yes; then
8792                 version_type=linux
8793         else
8794                 version_type=irix
8795         fi ;;
8796   esac
8797   need_lib_prefix=no
8798   need_version=no
8799   soname_spec='${libname}${release}${shared_ext}$major'
8800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8801   case $host_os in
8802   irix5* | nonstopux*)
8803     libsuff= shlibsuff=
8804     ;;
8805   *)
8806     case $LD in # libtool.m4 will add one of these switches to LD
8807     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8808       libsuff= shlibsuff= libmagic=32-bit;;
8809     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8810       libsuff=32 shlibsuff=N32 libmagic=N32;;
8811     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8812       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8813     *) libsuff= shlibsuff= libmagic=never-match;;
8814     esac
8815     ;;
8816   esac
8817   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8818   shlibpath_overrides_runpath=no
8819   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8820   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8821   hardcode_into_libs=yes
8822   ;;
8823
8824 # No shared lib support for Linux oldld, aout, or coff.
8825 linux*oldld* | linux*aout* | linux*coff*)
8826   dynamic_linker=no
8827   ;;
8828
8829 # This must be Linux ELF.
8830 linux*)
8831   version_type=linux
8832   need_lib_prefix=no
8833   need_version=no
8834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835   soname_spec='${libname}${release}${shared_ext}$major'
8836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8837   shlibpath_var=LD_LIBRARY_PATH
8838   shlibpath_overrides_runpath=no
8839   # This implies no fast_install, which is unacceptable.
8840   # Some rework will be needed to allow for fast_install
8841   # before this can be enabled.
8842   hardcode_into_libs=yes
8843
8844   # Append ld.so.conf contents to the search path
8845   if test -f /etc/ld.so.conf; then
8846     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' ' '`
8847     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8848   fi
8849
8850   # We used to test for /lib/ld.so.1 and disable shared libraries on
8851   # powerpc, because MkLinux only supported shared libraries with the
8852   # GNU dynamic linker.  Since this was broken with cross compilers,
8853   # most powerpc-linux boxes support dynamic linking these days and
8854   # people can always --disable-shared, the test was removed, and we
8855   # assume the GNU/Linux dynamic linker is in use.
8856   dynamic_linker='GNU/Linux ld.so'
8857   ;;
8858
8859 knetbsd*-gnu)
8860   version_type=linux
8861   need_lib_prefix=no
8862   need_version=no
8863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8864   soname_spec='${libname}${release}${shared_ext}$major'
8865   shlibpath_var=LD_LIBRARY_PATH
8866   shlibpath_overrides_runpath=no
8867   hardcode_into_libs=yes
8868   dynamic_linker='GNU ld.so'
8869   ;;
8870
8871 netbsd*)
8872   version_type=sunos
8873   need_lib_prefix=no
8874   need_version=no
8875   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8877     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8878     dynamic_linker='NetBSD (a.out) ld.so'
8879   else
8880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8881     soname_spec='${libname}${release}${shared_ext}$major'
8882     dynamic_linker='NetBSD ld.elf_so'
8883   fi
8884   shlibpath_var=LD_LIBRARY_PATH
8885   shlibpath_overrides_runpath=yes
8886   hardcode_into_libs=yes
8887   ;;
8888
8889 newsos6)
8890   version_type=linux
8891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892   shlibpath_var=LD_LIBRARY_PATH
8893   shlibpath_overrides_runpath=yes
8894   ;;
8895
8896 nto-qnx*)
8897   version_type=linux
8898   need_lib_prefix=no
8899   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
8903   shlibpath_overrides_runpath=yes
8904   ;;
8905
8906 openbsd*)
8907   version_type=sunos
8908   sys_lib_dlsearch_path_spec="/usr/lib"
8909   need_lib_prefix=no
8910   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8911   case $host_os in
8912     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8913     *)                         need_version=no  ;;
8914   esac
8915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8916   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917   shlibpath_var=LD_LIBRARY_PATH
8918   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8919     case $host_os in
8920       openbsd2.[89] | openbsd2.[89].*)
8921         shlibpath_overrides_runpath=no
8922         ;;
8923       *)
8924         shlibpath_overrides_runpath=yes
8925         ;;
8926       esac
8927   else
8928     shlibpath_overrides_runpath=yes
8929   fi
8930   ;;
8931
8932 os2*)
8933   libname_spec='$name'
8934   shrext_cmds=".dll"
8935   need_lib_prefix=no
8936   library_names_spec='$libname${shared_ext} $libname.a'
8937   dynamic_linker='OS/2 ld.exe'
8938   shlibpath_var=LIBPATH
8939   ;;
8940
8941 osf3* | osf4* | osf5*)
8942   version_type=osf
8943   need_lib_prefix=no
8944   need_version=no
8945   soname_spec='${libname}${release}${shared_ext}$major'
8946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947   shlibpath_var=LD_LIBRARY_PATH
8948   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8949   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8950   ;;
8951
8952 solaris*)
8953   version_type=linux
8954   need_lib_prefix=no
8955   need_version=no
8956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957   soname_spec='${libname}${release}${shared_ext}$major'
8958   shlibpath_var=LD_LIBRARY_PATH
8959   shlibpath_overrides_runpath=yes
8960   hardcode_into_libs=yes
8961   # ldd complains unless libraries are executable
8962   postinstall_cmds='chmod +x $lib'
8963   ;;
8964
8965 sunos4*)
8966   version_type=sunos
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8968   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   shlibpath_overrides_runpath=yes
8971   if test "$with_gnu_ld" = yes; then
8972     need_lib_prefix=no
8973   fi
8974   need_version=yes
8975   ;;
8976
8977 sysv4 | sysv4.3*)
8978   version_type=linux
8979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980   soname_spec='${libname}${release}${shared_ext}$major'
8981   shlibpath_var=LD_LIBRARY_PATH
8982   case $host_vendor in
8983     sni)
8984       shlibpath_overrides_runpath=no
8985       need_lib_prefix=no
8986       export_dynamic_flag_spec='${wl}-Blargedynsym'
8987       runpath_var=LD_RUN_PATH
8988       ;;
8989     siemens)
8990       need_lib_prefix=no
8991       ;;
8992     motorola)
8993       need_lib_prefix=no
8994       need_version=no
8995       shlibpath_overrides_runpath=no
8996       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8997       ;;
8998   esac
8999   ;;
9000
9001 sysv4*MP*)
9002   if test -d /usr/nec ;then
9003     version_type=linux
9004     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9005     soname_spec='$libname${shared_ext}.$major'
9006     shlibpath_var=LD_LIBRARY_PATH
9007   fi
9008   ;;
9009
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9011   version_type=freebsd-elf
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   hardcode_into_libs=yes
9018   if test "$with_gnu_ld" = yes; then
9019     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9020     shlibpath_overrides_runpath=no
9021   else
9022     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9023     shlibpath_overrides_runpath=yes
9024     case $host_os in
9025       sco3.2v5*)
9026         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9027         ;;
9028     esac
9029   fi
9030   sys_lib_dlsearch_path_spec='/usr/lib'
9031   ;;
9032
9033 uts4*)
9034   version_type=linux
9035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036   soname_spec='${libname}${release}${shared_ext}$major'
9037   shlibpath_var=LD_LIBRARY_PATH
9038   ;;
9039
9040 *)
9041   dynamic_linker=no
9042   ;;
9043 esac
9044 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9045 echo "${ECHO_T}$dynamic_linker" >&6; }
9046 test "$dynamic_linker" = no && can_build_shared=no
9047
9048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9049 if test "$GCC" = yes; then
9050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9051 fi
9052
9053
9054 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9055 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9056 if test "${libltdl_cv_shlibext+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059
9060 module=yes
9061 eval libltdl_cv_shlibext=$shrext_cmds
9062
9063 fi
9064 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9065 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9066 if test -n "$libltdl_cv_shlibext"; then
9067
9068 cat >>confdefs.h <<_ACEOF
9069 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9070 _ACEOF
9071
9072 fi
9073
9074
9075 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9076 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9077 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9078   echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080   libltdl_cv_shlibpath_var="$shlibpath_var"
9081 fi
9082 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9083 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9084 if test -n "$libltdl_cv_shlibpath_var"; then
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9088 _ACEOF
9089
9090 fi
9091
9092
9093 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9094 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9095 if test "${libltdl_cv_sys_search_path+set}" = set; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9099 fi
9100 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9101 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9102 if test -n "$libltdl_cv_sys_search_path"; then
9103   sys_search_path=
9104   for dir in $libltdl_cv_sys_search_path; do
9105     if test -z "$sys_search_path"; then
9106       sys_search_path="$dir"
9107     else
9108       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9109     fi
9110   done
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9114 _ACEOF
9115
9116 fi
9117
9118 { echo "$as_me:$LINENO: checking for objdir" >&5
9119 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9120 if test "${libltdl_cv_objdir+set}" = set; then
9121   echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123   libltdl_cv_objdir="$objdir"
9124   if test -n "$objdir"; then
9125     :
9126   else
9127     rm -f .libs 2>/dev/null
9128     mkdir .libs 2>/dev/null
9129     if test -d .libs; then
9130       libltdl_cv_objdir=.libs
9131     else
9132       # MS-DOS does not allow filenames that begin with a dot.
9133       libltdl_cv_objdir=_libs
9134     fi
9135   rmdir .libs 2>/dev/null
9136   fi
9137
9138 fi
9139 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9140 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9144 _ACEOF
9145
9146
9147
9148
9149
9150
9151 # Check for command to grab the raw symbol name followed by C symbol from nm.
9152 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9153 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9154 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9155   echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157
9158 # These are sane defaults that work on at least a few old systems.
9159 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9160
9161 # Character class describing NM global symbol codes.
9162 symcode='[BCDEGRST]'
9163
9164 # Regexp to match symbols that can be accessed directly from C.
9165 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9166
9167 # Transform an extracted symbol line into a proper C declaration
9168 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9169
9170 # Transform an extracted symbol line into symbol name and symbol address
9171 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'"
9172
9173 # Define system-specific variables.
9174 case $host_os in
9175 aix*)
9176   symcode='[BCDT]'
9177   ;;
9178 cygwin* | mingw* | pw32*)
9179   symcode='[ABCDGISTW]'
9180   ;;
9181 hpux*) # Its linker distinguishes data from code symbols
9182   if test "$host_cpu" = ia64; then
9183     symcode='[ABCDEGRST]'
9184   fi
9185   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9186   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'"
9187   ;;
9188 linux*)
9189   if test "$host_cpu" = ia64; then
9190     symcode='[ABCDGIRSTW]'
9191     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9192     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'"
9193   fi
9194   ;;
9195 irix* | nonstopux*)
9196   symcode='[BCDEGRST]'
9197   ;;
9198 osf*)
9199   symcode='[BCDEGQRST]'
9200   ;;
9201 solaris*)
9202   symcode='[BDRT]'
9203   ;;
9204 sco3.2v5*)
9205   symcode='[DT]'
9206   ;;
9207 sysv4.2uw2*)
9208   symcode='[DT]'
9209   ;;
9210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9211   symcode='[ABDT]'
9212   ;;
9213 sysv4)
9214   symcode='[DFNSTU]'
9215   ;;
9216 esac
9217
9218 # Handle CRLF in mingw tool chain
9219 opt_cr=
9220 case $build_os in
9221 mingw*)
9222   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9223   ;;
9224 esac
9225
9226 # If we're using GNU nm, then use its standard symbol codes.
9227 case `$NM -V 2>&1` in
9228 *GNU* | *'with BFD'*)
9229   symcode='[ABCDGIRSTW]' ;;
9230 esac
9231
9232 # Try without a prefix undercore, then with it.
9233 for ac_symprfx in "" "_"; do
9234
9235   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9236   symxfrm="\\1 $ac_symprfx\\2 \\2"
9237
9238   # Write the raw and C identifiers.
9239   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9240
9241   # Check to see that the pipe works correctly.
9242   pipe_works=no
9243
9244   rm -f conftest*
9245   cat > conftest.$ac_ext <<EOF
9246 #ifdef __cplusplus
9247 extern "C" {
9248 #endif
9249 char nm_test_var;
9250 void nm_test_func(){}
9251 #ifdef __cplusplus
9252 }
9253 #endif
9254 int main(){nm_test_var='a';nm_test_func();return(0);}
9255 EOF
9256
9257   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258   (eval $ac_compile) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; then
9262     # Now try to grab the symbols.
9263     nlist=conftest.nm
9264     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9265   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } && test -s "$nlist"; then
9269       # Try sorting and uniquifying the output.
9270       if sort "$nlist" | uniq > "$nlist"T; then
9271         mv -f "$nlist"T "$nlist"
9272       else
9273         rm -f "$nlist"T
9274       fi
9275
9276       # Make sure that we snagged all the symbols we need.
9277       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9278         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9279           cat <<EOF > conftest.$ac_ext
9280 #ifdef __cplusplus
9281 extern "C" {
9282 #endif
9283
9284 EOF
9285           # Now generate the symbol file.
9286           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9287
9288           cat <<EOF >> conftest.$ac_ext
9289 #if defined (__STDC__) && __STDC__
9290 # define lt_ptr_t void *
9291 #else
9292 # define lt_ptr_t char *
9293 # define const
9294 #endif
9295
9296 /* The mapping between symbol names and symbols. */
9297 const struct {
9298   const char *name;
9299   lt_ptr_t address;
9300 }
9301 lt_preloaded_symbols[] =
9302 {
9303 EOF
9304           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9305           cat <<\EOF >> conftest.$ac_ext
9306   {0, (lt_ptr_t) 0}
9307 };
9308
9309 #ifdef __cplusplus
9310 }
9311 #endif
9312 EOF
9313           # Now try linking the two files.
9314           mv conftest.$ac_objext conftstm.$ac_objext
9315           lt_save_LIBS="$LIBS"
9316           lt_save_CFLAGS="$CFLAGS"
9317           LIBS="conftstm.$ac_objext"
9318           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9319           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320   (eval $ac_link) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9324             pipe_works=yes
9325           fi
9326           LIBS="$lt_save_LIBS"
9327           CFLAGS="$lt_save_CFLAGS"
9328         else
9329           echo "cannot find nm_test_func in $nlist" >&5
9330         fi
9331       else
9332         echo "cannot find nm_test_var in $nlist" >&5
9333       fi
9334     else
9335       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9336     fi
9337   else
9338     echo "$progname: failed program was:" >&5
9339     cat conftest.$ac_ext >&5
9340   fi
9341   rm -f conftest* conftst*
9342
9343   # Do not use the global_symbol_pipe unless it works.
9344   if test "$pipe_works" = yes; then
9345     break
9346   else
9347     lt_cv_sys_global_symbol_pipe=
9348   fi
9349 done
9350
9351 fi
9352
9353 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9354   lt_cv_sys_global_symbol_to_cdecl=
9355 fi
9356 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9357   { echo "$as_me:$LINENO: result: failed" >&5
9358 echo "${ECHO_T}failed" >&6; }
9359 else
9360   { echo "$as_me:$LINENO: result: ok" >&5
9361 echo "${ECHO_T}ok" >&6; }
9362 fi
9363
9364
9365 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9366 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9367 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9368   echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9371     libltdl_cv_preloaded_symbols=yes
9372   else
9373     libltdl_cv_preloaded_symbols=no
9374   fi
9375
9376 fi
9377 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9378 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9379 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_PRELOADED_SYMBOLS 1
9383 _ACEOF
9384
9385 fi
9386
9387 LIBADD_DL=
9388
9389 ac_ext=c
9390 ac_cpp='$CPP $CPPFLAGS'
9391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9394
9395
9396 { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399   echo $ECHO_N "(cached) $ECHO_C" >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9409 #define shl_load innocuous_shl_load
9410
9411 /* System header to define __stub macros and hopefully few prototypes,
9412     which can conflict with char shl_load (); below.
9413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414     <limits.h> exists even on freestanding compilers.  */
9415
9416 #ifdef __STDC__
9417 # include <limits.h>
9418 #else
9419 # include <assert.h>
9420 #endif
9421
9422 #undef shl_load
9423
9424 /* Override any GCC internal prototype to avoid an error.
9425    Use char because int might match the return type of a GCC
9426    builtin and then its argument prototype would still apply.  */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char shl_load ();
9431 /* The GNU C library defines this for functions which it implements
9432     to always fail with ENOSYS.  Some functions are actually named
9433     something starting with __ and the normal name is an alias.  */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9435 choke me
9436 #endif
9437
9438 int
9439 main ()
9440 {
9441 return shl_load ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_link") 2>conftest.er1
9454   ac_status=$?
9455   grep -v '^ *+' conftest.er1 >conftest.err
9456   rm -f conftest.er1
9457   cat conftest.err >&5
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); } &&
9460          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9461   { (case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_try") 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_try") 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_func_shl_load=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485         ac_cv_func_shl_load=no
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext \
9489       conftest$ac_exeext conftest.$ac_ext
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9492 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9493 if test $ac_cv_func_shl_load = yes; then
9494
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_SHL_LOAD 1
9497 _ACEOF
9498
9499 else
9500   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9501 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9502 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   ac_check_lib_save_LIBS=$LIBS
9506 LIBS="-ldld  $LIBS"
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515    Use char because int might match the return type of a GCC
9516    builtin and then its argument prototype would still apply.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char shl_load ();
9521 int
9522 main ()
9523 {
9524 return shl_load ();
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533   *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536   (eval "$ac_link") 2>conftest.er1
9537   ac_status=$?
9538   grep -v '^ *+' conftest.er1 >conftest.err
9539   rm -f conftest.er1
9540   cat conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } &&
9543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9544   { (case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; } &&
9553          { ac_try='test -s conftest$ac_exeext'
9554   { (case "(($ac_try" in
9555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556   *) ac_try_echo=$ac_try;;
9557 esac
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559   (eval "$ac_try") 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_lib_dld_shl_load=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568         ac_cv_lib_dld_shl_load=no
9569 fi
9570
9571 rm -f core conftest.err conftest.$ac_objext \
9572       conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9574 fi
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9578
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9581 _ACEOF
9582
9583         LIBADD_DL="$LIBADD_DL -ldld"
9584 else
9585   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588   echo $ECHO_N "(cached) $ECHO_C" >&6
9589 else
9590   ac_check_lib_save_LIBS=$LIBS
9591 LIBS="-ldl  $LIBS"
9592 cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598
9599 /* Override any GCC internal prototype to avoid an error.
9600    Use char because int might match the return type of a GCC
9601    builtin and then its argument prototype would still apply.  */
9602 #ifdef __cplusplus
9603 extern "C"
9604 #endif
9605 char dlopen ();
9606 int
9607 main ()
9608 {
9609 return dlopen ();
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621   (eval "$ac_link") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9629   { (case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634   (eval "$ac_try") 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest$ac_exeext'
9639   { (case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_try") 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   ac_cv_lib_dl_dlopen=yes
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653         ac_cv_lib_dl_dlopen=no
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext \
9657       conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9661 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9662 if test $ac_cv_lib_dl_dlopen = yes; then
9663
9664 cat >>confdefs.h <<\_ACEOF
9665 #define HAVE_LIBDL 1
9666 _ACEOF
9667
9668                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9669 else
9670   cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h.  */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h.  */
9676 #if HAVE_DLFCN_H
9677 #  include <dlfcn.h>
9678 #endif
9679
9680 int
9681 main ()
9682 {
9683 dlopen(0, 0);
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_link") 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703   { (case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_try") 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; } &&
9712          { ac_try='test -s conftest$ac_exeext'
9713   { (case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_try") 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_LIBDL 1
9725 _ACEOF
9726  libltdl_cv_func_dlopen="yes"
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9732 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9733 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   ac_check_lib_save_LIBS=$LIBS
9737 LIBS="-lsvld  $LIBS"
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h.  */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h.  */
9744
9745 /* Override any GCC internal prototype to avoid an error.
9746    Use char because int might match the return type of a GCC
9747    builtin and then its argument prototype would still apply.  */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 char dlopen ();
9752 int
9753 main ()
9754 {
9755 return dlopen ();
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_link") 2>conftest.er1
9768   ac_status=$?
9769   grep -v '^ *+' conftest.er1 >conftest.err
9770   rm -f conftest.er1
9771   cat conftest.err >&5
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); } &&
9774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9775   { (case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_try") 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; } &&
9784          { ac_try='test -s conftest$ac_exeext'
9785   { (case "(($ac_try" in
9786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787   *) ac_try_echo=$ac_try;;
9788 esac
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790   (eval "$ac_try") 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_lib_svld_dlopen=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         ac_cv_lib_svld_dlopen=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext \
9803       conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9808 if test $ac_cv_lib_svld_dlopen = yes; then
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9812 _ACEOF
9813
9814                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9815 else
9816   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9817 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9818 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_check_lib_save_LIBS=$LIBS
9822 LIBS="-ldld  $LIBS"
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829
9830 /* Override any GCC internal prototype to avoid an error.
9831    Use char because int might match the return type of a GCC
9832    builtin and then its argument prototype would still apply.  */
9833 #ifdef __cplusplus
9834 extern "C"
9835 #endif
9836 char dld_link ();
9837 int
9838 main ()
9839 {
9840 return dld_link ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (ac_try="$ac_link"
9847 case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_link") 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9860   { (case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865   (eval "$ac_try") 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; } &&
9869          { ac_try='test -s conftest$ac_exeext'
9870   { (case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_try") 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   ac_cv_lib_dld_dld_link=yes
9880 else
9881   echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884         ac_cv_lib_dld_dld_link=no
9885 fi
9886
9887 rm -f core conftest.err conftest.$ac_objext \
9888       conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9890 fi
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9892 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9893 if test $ac_cv_lib_dld_dld_link = yes; then
9894
9895 cat >>confdefs.h <<\_ACEOF
9896 #define HAVE_DLD 1
9897 _ACEOF
9898
9899                 LIBADD_DL="$LIBADD_DL -ldld"
9900 else
9901   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9902 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9903 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9914 #define _dyld_func_lookup innocuous__dyld_func_lookup
9915
9916 /* System header to define __stub macros and hopefully few prototypes,
9917     which can conflict with char _dyld_func_lookup (); below.
9918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919     <limits.h> exists even on freestanding compilers.  */
9920
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926
9927 #undef _dyld_func_lookup
9928
9929 /* Override any GCC internal prototype to avoid an error.
9930    Use char because int might match the return type of a GCC
9931    builtin and then its argument prototype would still apply.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 char _dyld_func_lookup ();
9936 /* The GNU C library defines this for functions which it implements
9937     to always fail with ENOSYS.  Some functions are actually named
9938     something starting with __ and the normal name is an alias.  */
9939 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9940 choke me
9941 #endif
9942
9943 int
9944 main ()
9945 {
9946 return _dyld_func_lookup ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9953 case "(($ac_try" in
9954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955   *) ac_try_echo=$ac_try;;
9956 esac
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958   (eval "$ac_link") 2>conftest.er1
9959   ac_status=$?
9960   grep -v '^ *+' conftest.er1 >conftest.err
9961   rm -f conftest.er1
9962   cat conftest.err >&5
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); } &&
9965          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; } &&
9975          { ac_try='test -s conftest$ac_exeext'
9976   { (case "(($ac_try" in
9977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978   *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981   (eval "$ac_try") 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_cv_func__dyld_func_lookup=yes
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_func__dyld_func_lookup=no
9991 fi
9992
9993 rm -f core conftest.err conftest.$ac_objext \
9994       conftest$ac_exeext conftest.$ac_ext
9995 fi
9996 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9997 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9998 if test $ac_cv_func__dyld_func_lookup = yes; then
9999
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_DYLD 1
10002 _ACEOF
10003
10004 fi
10005
10006
10007 fi
10008
10009
10010 fi
10011
10012
10013 fi
10014
10015 rm -f core conftest.err conftest.$ac_objext \
10016       conftest$ac_exeext conftest.$ac_ext
10017
10018 fi
10019
10020
10021 fi
10022
10023
10024 fi
10025
10026
10027 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10028 then
10029   lt_save_LIBS="$LIBS"
10030   LIBS="$LIBS $LIBADD_DL"
10031
10032 for ac_func in dlerror
10033 do
10034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10048 #define $ac_func innocuous_$ac_func
10049
10050 /* System header to define __stub macros and hopefully few prototypes,
10051     which can conflict with char $ac_func (); below.
10052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053     <limits.h> exists even on freestanding compilers.  */
10054
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10060
10061 #undef $ac_func
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064    Use char because int might match the return type of a GCC
10065    builtin and then its argument prototype would still apply.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071     to always fail with ENOSYS.  Some functions are actually named
10072     something starting with __ and the normal name is an alias.  */
10073 #if defined __stub_$ac_func || defined __stub___$ac_func
10074 choke me
10075 #endif
10076
10077 int
10078 main ()
10079 {
10080 return $ac_func ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_link") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100   { (case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_try") 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; } &&
10109          { ac_try='test -s conftest$ac_exeext'
10110   { (case "(($ac_try" in
10111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112   *) ac_try_echo=$ac_try;;
10113 esac
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115   (eval "$ac_try") 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   eval "$as_ac_var=yes"
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124         eval "$as_ac_var=no"
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext \
10128       conftest$ac_exeext conftest.$ac_ext
10129 fi
10130 ac_res=`eval echo '${'$as_ac_var'}'`
10131                { echo "$as_me:$LINENO: result: $ac_res" >&5
10132 echo "${ECHO_T}$ac_res" >&6; }
10133 if test `eval echo '${'$as_ac_var'}'` = yes; then
10134   cat >>confdefs.h <<_ACEOF
10135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10136 _ACEOF
10137
10138 fi
10139 done
10140
10141   LIBS="$lt_save_LIBS"
10142 fi
10143 ac_ext=c
10144 ac_cpp='$CPP $CPPFLAGS'
10145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10148
10149
10150
10151 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10152 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10153 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_cv_sys_symbol_underscore=no
10157   cat > conftest.$ac_ext <<EOF
10158 void nm_test_func(){}
10159 int main(){nm_test_func;return 0;}
10160 EOF
10161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10162   (eval $ac_compile) 2>&5
10163   ac_status=$?
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); }; then
10166     # Now try to grab the symbols.
10167     ac_nlist=conftest.nm
10168     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10169   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); } && test -s "$ac_nlist"; then
10173       # See whether the symbols have a leading underscore.
10174       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10175         ac_cv_sys_symbol_underscore=yes
10176       else
10177         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10178           :
10179         else
10180           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10181         fi
10182       fi
10183     else
10184       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10185     fi
10186   else
10187     echo "configure: failed program was:" >&5
10188     cat conftest.c >&5
10189   fi
10190   rm -rf conftest*
10191
10192 fi
10193 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10194 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10195
10196
10197 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10198   if test x"$libltdl_cv_func_dlopen" = xyes ||
10199      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10200         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10201 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10202 if test "${libltdl_cv_need_uscore+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   libltdl_cv_need_uscore=unknown
10206           save_LIBS="$LIBS"
10207           LIBS="$LIBS $LIBADD_DL"
10208           if test "$cross_compiling" = yes; then :
10209   libltdl_cv_need_uscore=cross
10210 else
10211   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10212   lt_status=$lt_dlunknown
10213   cat > conftest.$ac_ext <<EOF
10214 #line 10214 "configure"
10215 #include "confdefs.h"
10216
10217 #if HAVE_DLFCN_H
10218 #include <dlfcn.h>
10219 #endif
10220
10221 #include <stdio.h>
10222
10223 #ifdef RTLD_GLOBAL
10224 #  define LT_DLGLOBAL           RTLD_GLOBAL
10225 #else
10226 #  ifdef DL_GLOBAL
10227 #    define LT_DLGLOBAL         DL_GLOBAL
10228 #  else
10229 #    define LT_DLGLOBAL         0
10230 #  endif
10231 #endif
10232
10233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234    find out it does not work in some platform. */
10235 #ifndef LT_DLLAZY_OR_NOW
10236 #  ifdef RTLD_LAZY
10237 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10238 #  else
10239 #    ifdef DL_LAZY
10240 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10241 #    else
10242 #      ifdef RTLD_NOW
10243 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10244 #      else
10245 #        ifdef DL_NOW
10246 #          define LT_DLLAZY_OR_NOW      DL_NOW
10247 #        else
10248 #          define LT_DLLAZY_OR_NOW      0
10249 #        endif
10250 #      endif
10251 #    endif
10252 #  endif
10253 #endif
10254
10255 #ifdef __cplusplus
10256 extern "C" void exit (int);
10257 #endif
10258
10259 void fnord() { int i=42;}
10260 int main ()
10261 {
10262   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10263   int status = $lt_dlunknown;
10264
10265   if (self)
10266     {
10267       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10268       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10269       /* dlclose (self); */
10270     }
10271   else
10272     puts (dlerror ());
10273
10274     exit (status);
10275 }
10276 EOF
10277   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278   (eval $ac_link) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10282     (./conftest; exit; ) >&5 2>/dev/null
10283     lt_status=$?
10284     case x$lt_status in
10285       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10286       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10287       x$lt_dlunknown|x*)  ;;
10288     esac
10289   else :
10290     # compilation failed
10291
10292   fi
10293 fi
10294 rm -fr conftest*
10295
10296           LIBS="$save_LIBS"
10297
10298 fi
10299 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10300 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10301   fi
10302 fi
10303
10304 if test x"$libltdl_cv_need_uscore" = xyes; then
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define NEED_USCORE 1
10308 _ACEOF
10309
10310 fi
10311
10312
10313 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10314 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   # PORTME does your system automatically load deplibs for dlopen?
10319   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10320   # For now, we just catch OSes we know something about -- in the
10321   # future, we'll try test this programmatically.
10322   libltdl_cv_sys_dlopen_deplibs=unknown
10323   case "$host_os" in
10324   aix3*|aix4.1.*|aix4.2.*)
10325     # Unknown whether this is true for these versions of AIX, but
10326     # we want this `case' here to explicitly catch those versions.
10327     libltdl_cv_sys_dlopen_deplibs=unknown
10328     ;;
10329   aix[45]*)
10330     libltdl_cv_sys_dlopen_deplibs=yes
10331     ;;
10332   darwin*)
10333     # Assuming the user has installed a libdl from somewhere, this is true
10334     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10335     libltdl_cv_sys_dlopen_deplibs=yes
10336     ;;
10337   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10338     # GNU and its variants, using gnu ld.so (Glibc)
10339     libltdl_cv_sys_dlopen_deplibs=yes
10340     ;;
10341   hpux10*|hpux11*)
10342     libltdl_cv_sys_dlopen_deplibs=yes
10343     ;;
10344   interix*)
10345     libltdl_cv_sys_dlopen_deplibs=yes
10346     ;;
10347   irix[12345]*|irix6.[01]*)
10348     # Catch all versions of IRIX before 6.2, and indicate that we don't
10349     # know how it worked for any of those versions.
10350     libltdl_cv_sys_dlopen_deplibs=unknown
10351     ;;
10352   irix*)
10353     # The case above catches anything before 6.2, and it's known that
10354     # at 6.2 and later dlopen does load deplibs.
10355     libltdl_cv_sys_dlopen_deplibs=yes
10356     ;;
10357   netbsd*)
10358     libltdl_cv_sys_dlopen_deplibs=yes
10359     ;;
10360   openbsd*)
10361     libltdl_cv_sys_dlopen_deplibs=yes
10362     ;;
10363   osf[1234]*)
10364     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10365     # it did *not* use an RPATH in a shared library to find objects the
10366     # library depends on, so we explicitly say `no'.
10367     libltdl_cv_sys_dlopen_deplibs=no
10368     ;;
10369   osf5.0|osf5.0a|osf5.1)
10370     # dlopen *does* load deplibs and with the right loader patch applied
10371     # it even uses RPATH in a shared library to search for shared objects
10372     # that the library depends on, but there's no easy way to know if that
10373     # patch is installed.  Since this is the case, all we can really
10374     # say is unknown -- it depends on the patch being installed.  If
10375     # it is, this changes to `yes'.  Without it, it would be `no'.
10376     libltdl_cv_sys_dlopen_deplibs=unknown
10377     ;;
10378   osf*)
10379     # the two cases above should catch all versions of osf <= 5.1.  Read
10380     # the comments above for what we know about them.
10381     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10382     # is used to find them so we can finally say `yes'.
10383     libltdl_cv_sys_dlopen_deplibs=yes
10384     ;;
10385   solaris*)
10386     libltdl_cv_sys_dlopen_deplibs=yes
10387     ;;
10388   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10389     libltdl_cv_sys_dlopen_deplibs=yes
10390     ;;
10391   esac
10392
10393 fi
10394 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10395 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10396 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10397
10398 cat >>confdefs.h <<\_ACEOF
10399 #define LTDL_DLOPEN_DEPLIBS 1
10400 _ACEOF
10401
10402 fi
10403
10404
10405 for ac_header in argz.h
10406 do
10407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 fi
10414 ac_res=`eval echo '${'$as_ac_Header'}'`
10415                { echo "$as_me:$LINENO: result: $ac_res" >&5
10416 echo "${ECHO_T}$ac_res" >&6; }
10417 else
10418   # Is the header compilable?
10419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h.  */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h.  */
10427 $ac_includes_default
10428 #include <$ac_header>
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_compile") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest.$ac_objext'
10455   { (case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_try") 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_header_compiler=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_header_compiler=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10474 echo "${ECHO_T}$ac_header_compiler" >&6; }
10475
10476 # Is the header present?
10477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10479 cat >conftest.$ac_ext <<_ACEOF
10480 /* confdefs.h.  */
10481 _ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h.  */
10485 #include <$ac_header>
10486 _ACEOF
10487 if { (ac_try="$ac_cpp conftest.$ac_ext"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } >/dev/null; then
10500   if test -s conftest.err; then
10501     ac_cpp_err=$ac_c_preproc_warn_flag
10502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10503   else
10504     ac_cpp_err=
10505   fi
10506 else
10507   ac_cpp_err=yes
10508 fi
10509 if test -z "$ac_cpp_err"; then
10510   ac_header_preproc=yes
10511 else
10512   echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515   ac_header_preproc=no
10516 fi
10517
10518 rm -f conftest.err conftest.$ac_ext
10519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10520 echo "${ECHO_T}$ac_header_preproc" >&6; }
10521
10522 # So?  What about this header?
10523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10524   yes:no: )
10525     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10529     ac_header_preproc=yes
10530     ;;
10531   no:yes:* )
10532     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10534     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10535 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10536     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10538     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10539 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10542     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544     ( cat <<\_ASBOX
10545 ## ------------------------------------ ##
10546 ## Report this to http://llvm.org/bugs/ ##
10547 ## ------------------------------------ ##
10548 _ASBOX
10549      ) | sed "s/^/$as_me: WARNING:     /" >&2
10550     ;;
10551 esac
10552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   eval "$as_ac_Header=\$ac_header_preproc"
10558 fi
10559 ac_res=`eval echo '${'$as_ac_Header'}'`
10560                { echo "$as_me:$LINENO: result: $ac_res" >&5
10561 echo "${ECHO_T}$ac_res" >&6; }
10562
10563 fi
10564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10565   cat >>confdefs.h <<_ACEOF
10566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 _ACEOF
10568
10569 fi
10570
10571 done
10572
10573
10574 { echo "$as_me:$LINENO: checking for error_t" >&5
10575 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10576 if test "${ac_cv_type_error_t+set}" = set; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #if HAVE_ARGZ_H
10586 #  include <argz.h>
10587 #endif
10588
10589 typedef error_t ac__type_new_;
10590 int
10591 main ()
10592 {
10593 if ((ac__type_new_ *) 0)
10594   return 0;
10595 if (sizeof (ac__type_new_))
10596   return 0;
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext
10602 if { (ac_try="$ac_compile"
10603 case "(($ac_try" in
10604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605   *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608   (eval "$ac_compile") 2>conftest.er1
10609   ac_status=$?
10610   grep -v '^ *+' conftest.er1 >conftest.err
10611   rm -f conftest.er1
10612   cat conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); } &&
10615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616   { (case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_try") 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_try") 2>&5
10632   ac_status=$?
10633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_type_error_t=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_cv_type_error_t=no
10641 fi
10642
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 fi
10645 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10646 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10647 if test $ac_cv_type_error_t = yes; then
10648
10649 cat >>confdefs.h <<_ACEOF
10650 #define HAVE_ERROR_T 1
10651 _ACEOF
10652
10653
10654 else
10655
10656 cat >>confdefs.h <<\_ACEOF
10657 #define error_t int
10658 _ACEOF
10659
10660 fi
10661
10662
10663
10664
10665
10666
10667
10668 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10669 do
10670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   cat >conftest.$ac_ext <<_ACEOF
10677 /* confdefs.h.  */
10678 _ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h.  */
10682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10684 #define $ac_func innocuous_$ac_func
10685
10686 /* System header to define __stub macros and hopefully few prototypes,
10687     which can conflict with char $ac_func (); below.
10688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10689     <limits.h> exists even on freestanding compilers.  */
10690
10691 #ifdef __STDC__
10692 # include <limits.h>
10693 #else
10694 # include <assert.h>
10695 #endif
10696
10697 #undef $ac_func
10698
10699 /* Override any GCC internal prototype to avoid an error.
10700    Use char because int might match the return type of a GCC
10701    builtin and then its argument prototype would still apply.  */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char $ac_func ();
10706 /* The GNU C library defines this for functions which it implements
10707     to always fail with ENOSYS.  Some functions are actually named
10708     something starting with __ and the normal name is an alias.  */
10709 #if defined __stub_$ac_func || defined __stub___$ac_func
10710 choke me
10711 #endif
10712
10713 int
10714 main ()
10715 {
10716 return $ac_func ();
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_link") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_try") 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; } &&
10745          { ac_try='test -s conftest$ac_exeext'
10746   { (case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_try") 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); }; }; then
10755   eval "$as_ac_var=yes"
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         eval "$as_ac_var=no"
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext \
10764       conftest$ac_exeext conftest.$ac_ext
10765 fi
10766 ac_res=`eval echo '${'$as_ac_var'}'`
10767                { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769 if test `eval echo '${'$as_ac_var'}'` = yes; then
10770   cat >>confdefs.h <<_ACEOF
10771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10772 _ACEOF
10773
10774 fi
10775 done
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10805                   stdio.h unistd.h
10806 do
10807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 fi
10814 ac_res=`eval echo '${'$as_ac_Header'}'`
10815                { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10817 else
10818   # Is the header compilable?
10819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10821 cat >conftest.$ac_ext <<_ACEOF
10822 /* confdefs.h.  */
10823 _ACEOF
10824 cat confdefs.h >>conftest.$ac_ext
10825 cat >>conftest.$ac_ext <<_ACEOF
10826 /* end confdefs.h.  */
10827 $ac_includes_default
10828 #include <$ac_header>
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (ac_try="$ac_compile"
10832 case "(($ac_try" in
10833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10834   *) ac_try_echo=$ac_try;;
10835 esac
10836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10837   (eval "$ac_compile") 2>conftest.er1
10838   ac_status=$?
10839   grep -v '^ *+' conftest.er1 >conftest.err
10840   rm -f conftest.er1
10841   cat conftest.err >&5
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10845   { (case "(($ac_try" in
10846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847   *) ac_try_echo=$ac_try;;
10848 esac
10849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850   (eval "$ac_try") 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; } &&
10854          { ac_try='test -s conftest.$ac_objext'
10855   { (case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_try") 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }; }; then
10864   ac_header_compiler=yes
10865 else
10866   echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10868
10869         ac_header_compiler=no
10870 fi
10871
10872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10874 echo "${ECHO_T}$ac_header_compiler" >&6; }
10875
10876 # Is the header present?
10877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <$ac_header>
10886 _ACEOF
10887 if { (ac_try="$ac_cpp conftest.$ac_ext"
10888 case "(($ac_try" in
10889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890   *) ac_try_echo=$ac_try;;
10891 esac
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } >/dev/null; then
10900   if test -s conftest.err; then
10901     ac_cpp_err=$ac_c_preproc_warn_flag
10902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10903   else
10904     ac_cpp_err=
10905   fi
10906 else
10907   ac_cpp_err=yes
10908 fi
10909 if test -z "$ac_cpp_err"; then
10910   ac_header_preproc=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915   ac_header_preproc=no
10916 fi
10917
10918 rm -f conftest.err conftest.$ac_ext
10919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10920 echo "${ECHO_T}$ac_header_preproc" >&6; }
10921
10922 # So?  What about this header?
10923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10924   yes:no: )
10925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10929     ac_header_preproc=yes
10930     ;;
10931   no:yes:* )
10932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10944     ( cat <<\_ASBOX
10945 ## ------------------------------------ ##
10946 ## Report this to http://llvm.org/bugs/ ##
10947 ## ------------------------------------ ##
10948 _ASBOX
10949      ) | sed "s/^/$as_me: WARNING:     /" >&2
10950     ;;
10951 esac
10952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957   eval "$as_ac_Header=\$ac_header_preproc"
10958 fi
10959 ac_res=`eval echo '${'$as_ac_Header'}'`
10960                { echo "$as_me:$LINENO: result: $ac_res" >&5
10961 echo "${ECHO_T}$ac_res" >&6; }
10962
10963 fi
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965   cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970
10971 done
10972
10973
10974
10975
10976
10977 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10978 do
10979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984   echo $ECHO_N "(cached) $ECHO_C" >&6
10985 fi
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987                { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 else
10990   # Is the header compilable?
10991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10993 cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 $ac_includes_default
11000 #include <$ac_header>
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (ac_try="$ac_compile"
11004 case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_compile") 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } &&
11016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11017   { (case "(($ac_try" in
11018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019   *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022   (eval "$ac_try") 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest.$ac_objext'
11027   { (case "(($ac_try" in
11028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029   *) ac_try_echo=$ac_try;;
11030 esac
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032   (eval "$ac_try") 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   ac_header_compiler=yes
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041         ac_header_compiler=no
11042 fi
11043
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11046 echo "${ECHO_T}$ac_header_compiler" >&6; }
11047
11048 # Is the header present?
11049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h.  */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h.  */
11057 #include <$ac_header>
11058 _ACEOF
11059 if { (ac_try="$ac_cpp conftest.$ac_ext"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11066   ac_status=$?
11067   grep -v '^ *+' conftest.er1 >conftest.err
11068   rm -f conftest.er1
11069   cat conftest.err >&5
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } >/dev/null; then
11072   if test -s conftest.err; then
11073     ac_cpp_err=$ac_c_preproc_warn_flag
11074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11075   else
11076     ac_cpp_err=
11077   fi
11078 else
11079   ac_cpp_err=yes
11080 fi
11081 if test -z "$ac_cpp_err"; then
11082   ac_header_preproc=yes
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087   ac_header_preproc=no
11088 fi
11089
11090 rm -f conftest.err conftest.$ac_ext
11091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11092 echo "${ECHO_T}$ac_header_preproc" >&6; }
11093
11094 # So?  What about this header?
11095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11096   yes:no: )
11097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11101     ac_header_preproc=yes
11102     ;;
11103   no:yes:* )
11104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11116     ( cat <<\_ASBOX
11117 ## ------------------------------------ ##
11118 ## Report this to http://llvm.org/bugs/ ##
11119 ## ------------------------------------ ##
11120 _ASBOX
11121      ) | sed "s/^/$as_me: WARNING:     /" >&2
11122     ;;
11123 esac
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129   eval "$as_ac_Header=\$ac_header_preproc"
11130 fi
11131 ac_res=`eval echo '${'$as_ac_Header'}'`
11132                { echo "$as_me:$LINENO: result: $ac_res" >&5
11133 echo "${ECHO_T}$ac_res" >&6; }
11134
11135 fi
11136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11137   cat >>confdefs.h <<_ACEOF
11138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11139 _ACEOF
11140
11141 fi
11142
11143 done
11144
11145
11146
11147 for ac_header in string.h strings.h
11148 do
11149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 fi
11156 ac_res=`eval echo '${'$as_ac_Header'}'`
11157                { echo "$as_me:$LINENO: result: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 else
11160   # Is the header compilable?
11161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <$ac_header>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_compile") 2>conftest.er1
11180   ac_status=$?
11181   grep -v '^ *+' conftest.er1 >conftest.err
11182   rm -f conftest.er1
11183   cat conftest.err >&5
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (case "(($ac_try" in
11198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199   *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202   (eval "$ac_try") 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; }; then
11206   ac_header_compiler=yes
11207 else
11208   echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11210
11211         ac_header_compiler=no
11212 fi
11213
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11216 echo "${ECHO_T}$ac_header_compiler" >&6; }
11217
11218 # Is the header present?
11219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 #include <$ac_header>
11228 _ACEOF
11229 if { (ac_try="$ac_cpp conftest.$ac_ext"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } >/dev/null; then
11242   if test -s conftest.err; then
11243     ac_cpp_err=$ac_c_preproc_warn_flag
11244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11245   else
11246     ac_cpp_err=
11247   fi
11248 else
11249   ac_cpp_err=yes
11250 fi
11251 if test -z "$ac_cpp_err"; then
11252   ac_header_preproc=yes
11253 else
11254   echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11256
11257   ac_header_preproc=no
11258 fi
11259
11260 rm -f conftest.err conftest.$ac_ext
11261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 echo "${ECHO_T}$ac_header_preproc" >&6; }
11263
11264 # So?  What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11266   yes:no: )
11267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271     ac_header_preproc=yes
11272     ;;
11273   no:yes:* )
11274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11286     ( cat <<\_ASBOX
11287 ## ------------------------------------ ##
11288 ## Report this to http://llvm.org/bugs/ ##
11289 ## ------------------------------------ ##
11290 _ASBOX
11291      ) | sed "s/^/$as_me: WARNING:     /" >&2
11292     ;;
11293 esac
11294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   eval "$as_ac_Header=\$ac_header_preproc"
11300 fi
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302                { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304
11305 fi
11306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11307   cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11309 _ACEOF
11310  break
11311 fi
11312
11313 done
11314
11315
11316
11317
11318 for ac_func in strchr index
11319 do
11320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11324   echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326   cat >conftest.$ac_ext <<_ACEOF
11327 /* confdefs.h.  */
11328 _ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h.  */
11332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11334 #define $ac_func innocuous_$ac_func
11335
11336 /* System header to define __stub macros and hopefully few prototypes,
11337     which can conflict with char $ac_func (); below.
11338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339     <limits.h> exists even on freestanding compilers.  */
11340
11341 #ifdef __STDC__
11342 # include <limits.h>
11343 #else
11344 # include <assert.h>
11345 #endif
11346
11347 #undef $ac_func
11348
11349 /* Override any GCC internal prototype to avoid an error.
11350    Use char because int might match the return type of a GCC
11351    builtin and then its argument prototype would still apply.  */
11352 #ifdef __cplusplus
11353 extern "C"
11354 #endif
11355 char $ac_func ();
11356 /* The GNU C library defines this for functions which it implements
11357     to always fail with ENOSYS.  Some functions are actually named
11358     something starting with __ and the normal name is an alias.  */
11359 #if defined __stub_$ac_func || defined __stub___$ac_func
11360 choke me
11361 #endif
11362
11363 int
11364 main ()
11365 {
11366 return $ac_func ();
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext conftest$ac_exeext
11372 if { (ac_try="$ac_link"
11373 case "(($ac_try" in
11374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375   *) ac_try_echo=$ac_try;;
11376 esac
11377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378   (eval "$ac_link") 2>conftest.er1
11379   ac_status=$?
11380   grep -v '^ *+' conftest.er1 >conftest.err
11381   rm -f conftest.er1
11382   cat conftest.err >&5
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); } &&
11385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386   { (case "(($ac_try" in
11387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388   *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391   (eval "$ac_try") 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest$ac_exeext'
11396   { (case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_try") 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; }; then
11405   eval "$as_ac_var=yes"
11406 else
11407   echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11409
11410         eval "$as_ac_var=no"
11411 fi
11412
11413 rm -f core conftest.err conftest.$ac_objext \
11414       conftest$ac_exeext conftest.$ac_ext
11415 fi
11416 ac_res=`eval echo '${'$as_ac_var'}'`
11417                { echo "$as_me:$LINENO: result: $ac_res" >&5
11418 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_var'}'` = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422 _ACEOF
11423  break
11424 fi
11425 done
11426
11427
11428
11429 for ac_func in strrchr rindex
11430 do
11431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11445 #define $ac_func innocuous_$ac_func
11446
11447 /* System header to define __stub macros and hopefully few prototypes,
11448     which can conflict with char $ac_func (); below.
11449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11450     <limits.h> exists even on freestanding compilers.  */
11451
11452 #ifdef __STDC__
11453 # include <limits.h>
11454 #else
11455 # include <assert.h>
11456 #endif
11457
11458 #undef $ac_func
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461    Use char because int might match the return type of a GCC
11462    builtin and then its argument prototype would still apply.  */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char $ac_func ();
11467 /* The GNU C library defines this for functions which it implements
11468     to always fail with ENOSYS.  Some functions are actually named
11469     something starting with __ and the normal name is an alias.  */
11470 #if defined __stub_$ac_func || defined __stub___$ac_func
11471 choke me
11472 #endif
11473
11474 int
11475 main ()
11476 {
11477 return $ac_func ();
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_link") 2>conftest.er1
11490   ac_status=$?
11491   grep -v '^ *+' conftest.er1 >conftest.err
11492   rm -f conftest.er1
11493   cat conftest.err >&5
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); } &&
11496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11497   { (case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_try") 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_try") 2>&5
11513   ac_status=$?
11514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515   (exit $ac_status); }; }; then
11516   eval "$as_ac_var=yes"
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521         eval "$as_ac_var=no"
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526 fi
11527 ac_res=`eval echo '${'$as_ac_var'}'`
11528                { echo "$as_me:$LINENO: result: $ac_res" >&5
11529 echo "${ECHO_T}$ac_res" >&6; }
11530 if test `eval echo '${'$as_ac_var'}'` = yes; then
11531   cat >>confdefs.h <<_ACEOF
11532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 _ACEOF
11534  break
11535 fi
11536 done
11537
11538
11539
11540 for ac_func in memcpy bcopy
11541 do
11542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11545 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548   cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11556 #define $ac_func innocuous_$ac_func
11557
11558 /* System header to define __stub macros and hopefully few prototypes,
11559     which can conflict with char $ac_func (); below.
11560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11561     <limits.h> exists even on freestanding compilers.  */
11562
11563 #ifdef __STDC__
11564 # include <limits.h>
11565 #else
11566 # include <assert.h>
11567 #endif
11568
11569 #undef $ac_func
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572    Use char because int might match the return type of a GCC
11573    builtin and then its argument prototype would still apply.  */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char $ac_func ();
11578 /* The GNU C library defines this for functions which it implements
11579     to always fail with ENOSYS.  Some functions are actually named
11580     something starting with __ and the normal name is an alias.  */
11581 #if defined __stub_$ac_func || defined __stub___$ac_func
11582 choke me
11583 #endif
11584
11585 int
11586 main ()
11587 {
11588 return $ac_func ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597   *) ac_try_echo=$ac_try;;
11598 esac
11599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600   (eval "$ac_link") 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11608   { (case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; } &&
11617          { ac_try='test -s conftest$ac_exeext'
11618   { (case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   eval "$as_ac_var=yes"
11628 else
11629   echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632         eval "$as_ac_var=no"
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext \
11636       conftest$ac_exeext conftest.$ac_ext
11637 fi
11638 ac_res=`eval echo '${'$as_ac_var'}'`
11639                { echo "$as_me:$LINENO: result: $ac_res" >&5
11640 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_var'}'` = yes; then
11642   cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11644 _ACEOF
11645  break
11646 fi
11647 done
11648
11649
11650
11651 for ac_func in memmove strcmp
11652 do
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11667 #define $ac_func innocuous_$ac_func
11668
11669 /* System header to define __stub macros and hopefully few prototypes,
11670     which can conflict with char $ac_func (); below.
11671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672     <limits.h> exists even on freestanding compilers.  */
11673
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11679
11680 #undef $ac_func
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11695
11696 int
11697 main ()
11698 {
11699 return $ac_func ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
11706 case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_link") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; } &&
11728          { ac_try='test -s conftest$ac_exeext'
11729   { (case "(($ac_try" in
11730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731   *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734   (eval "$ac_try") 2>&5
11735   ac_status=$?
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   eval "$as_ac_var=yes"
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743         eval "$as_ac_var=no"
11744 fi
11745
11746 rm -f core conftest.err conftest.$ac_objext \
11747       conftest$ac_exeext conftest.$ac_ext
11748 fi
11749 ac_res=`eval echo '${'$as_ac_var'}'`
11750                { echo "$as_me:$LINENO: result: $ac_res" >&5
11751 echo "${ECHO_T}$ac_res" >&6; }
11752 if test `eval echo '${'$as_ac_var'}'` = yes; then
11753   cat >>confdefs.h <<_ACEOF
11754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755 _ACEOF
11756
11757 fi
11758 done
11759
11760
11761
11762
11763 for ac_func in closedir opendir readdir
11764 do
11765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11779 #define $ac_func innocuous_$ac_func
11780
11781 /* System header to define __stub macros and hopefully few prototypes,
11782     which can conflict with char $ac_func (); below.
11783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784     <limits.h> exists even on freestanding compilers.  */
11785
11786 #ifdef __STDC__
11787 # include <limits.h>
11788 #else
11789 # include <assert.h>
11790 #endif
11791
11792 #undef $ac_func
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795    Use char because int might match the return type of a GCC
11796    builtin and then its argument prototype would still apply.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char $ac_func ();
11801 /* The GNU C library defines this for functions which it implements
11802     to always fail with ENOSYS.  Some functions are actually named
11803     something starting with __ and the normal name is an alias.  */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11805 choke me
11806 #endif
11807
11808 int
11809 main ()
11810 {
11811 return $ac_func ();
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820   *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823   (eval "$ac_link") 2>conftest.er1
11824   ac_status=$?
11825   grep -v '^ *+' conftest.er1 >conftest.err
11826   rm -f conftest.er1
11827   cat conftest.err >&5
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11831   { (case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_try") 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; } &&
11840          { ac_try='test -s conftest$ac_exeext'
11841   { (case "(($ac_try" in
11842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843   *) ac_try_echo=$ac_try;;
11844 esac
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846   (eval "$ac_try") 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); }; }; then
11850   eval "$as_ac_var=yes"
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855         eval "$as_ac_var=no"
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext \
11859       conftest$ac_exeext conftest.$ac_ext
11860 fi
11861 ac_res=`eval echo '${'$as_ac_var'}'`
11862                { echo "$as_me:$LINENO: result: $ac_res" >&5
11863 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_var'}'` = yes; then
11865   cat >>confdefs.h <<_ACEOF
11866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11867 _ACEOF
11868
11869 fi
11870 done
11871
11872
11873
11874 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11875 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11876
11877 ICC=no
11878 IXX=no
11879 case $CC in
11880   icc*|icpc*)
11881     ICC=yes
11882     IXX=yes
11883     ;;
11884    *)
11885     ;;
11886 esac
11887
11888 if test "$GCC" != "yes" && test "$ICC" != "yes"
11889 then
11890   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11891 echo "$as_me: error: gcc|icc required but not found" >&2;}
11892    { (exit 1); exit 1; }; }
11893 fi
11894
11895 if test "$GXX" != "yes" && test "$IXX" != "yes"
11896 then
11897   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11898 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11899    { (exit 1); exit 1; }; }
11900 fi
11901
11902 if test "$GCC" = "yes"
11903 then
11904   cat >conftest.$ac_ext <<_ACEOF
11905 #if !defined(__GNUC__) || __GNUC__ < 3
11906 #error Unsupported GCC version
11907 #endif
11908
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_compile") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925   { (case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_try") 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   :
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11950 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11951    { (exit 1); exit 1; }; }
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 fi
11956
11957 if test -z "$llvm_cv_gnu_make_command"
11958 then
11959   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11960 echo "$as_me: error: GNU Make required but not found" >&2;}
11961    { (exit 1); exit 1; }; }
11962 fi
11963
11964 { echo "$as_me:$LINENO: result: ok" >&5
11965 echo "${ECHO_T}ok" >&6; }
11966
11967 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11968 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11969 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11970
11971 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11972
11973 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11974
11975 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11976 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
11977
11978
11979
11980 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11981 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11982 if test "${ac_cv_lib_m_sin+set}" = set; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   ac_check_lib_save_LIBS=$LIBS
11986 LIBS="-lm  $LIBS"
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h.  */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h.  */
11993
11994 /* Override any GCC internal prototype to avoid an error.
11995    Use char because int might match the return type of a GCC
11996    builtin and then its argument prototype would still apply.  */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char sin ();
12001 int
12002 main ()
12003 {
12004 return sin ();
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_link") 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12024   { (case "(($ac_try" in
12025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026   *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029   (eval "$ac_try") 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; } &&
12033          { ac_try='test -s conftest$ac_exeext'
12034   { (case "(($ac_try" in
12035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036   *) ac_try_echo=$ac_try;;
12037 esac
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039   (eval "$ac_try") 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   ac_cv_lib_m_sin=yes
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048         ac_cv_lib_m_sin=no
12049 fi
12050
12051 rm -f core conftest.err conftest.$ac_objext \
12052       conftest$ac_exeext conftest.$ac_ext
12053 LIBS=$ac_check_lib_save_LIBS
12054 fi
12055 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12056 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12057 if test $ac_cv_lib_m_sin = yes; then
12058   cat >>confdefs.h <<_ACEOF
12059 #define HAVE_LIBM 1
12060 _ACEOF
12061
12062   LIBS="-lm $LIBS"
12063
12064 fi
12065
12066 if test "$llvm_cv_os_type" = "MingW" ; then
12067
12068 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12069 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12070 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   ac_check_lib_save_LIBS=$LIBS
12074 LIBS="-limagehlp  $LIBS"
12075 cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081
12082
12083 int
12084 main ()
12085 {
12086 return main ();
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098   (eval "$ac_link") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; } &&
12115          { ac_try='test -s conftest$ac_exeext'
12116   { (case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_try") 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_cv_lib_imagehlp_main=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130         ac_cv_lib_imagehlp_main=no
12131 fi
12132
12133 rm -f core conftest.err conftest.$ac_objext \
12134       conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12136 fi
12137 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12138 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12139 if test $ac_cv_lib_imagehlp_main = yes; then
12140   cat >>confdefs.h <<_ACEOF
12141 #define HAVE_LIBIMAGEHLP 1
12142 _ACEOF
12143
12144   LIBS="-limagehlp $LIBS"
12145
12146 fi
12147
12148
12149 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12150 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_psapi_main+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lpsapi  $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162
12163
12164 int
12165 main ()
12166 {
12167 return main ();
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (ac_try="$ac_link"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_link") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } &&
12186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest$ac_exeext'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_cv_lib_psapi_main=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211         ac_cv_lib_psapi_main=no
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext \
12215       conftest$ac_exeext conftest.$ac_ext
12216 LIBS=$ac_check_lib_save_LIBS
12217 fi
12218 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12219 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12220 if test $ac_cv_lib_psapi_main = yes; then
12221   cat >>confdefs.h <<_ACEOF
12222 #define HAVE_LIBPSAPI 1
12223 _ACEOF
12224
12225   LIBS="-lpsapi $LIBS"
12226
12227 fi
12228
12229 fi
12230
12231 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12232 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12233 if test "${ac_cv_search_dlopen+set}" = set; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   ac_func_search_save_LIBS=$LIBS
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243
12244 /* Override any GCC internal prototype to avoid an error.
12245    Use char because int might match the return type of a GCC
12246    builtin and then its argument prototype would still apply.  */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char dlopen ();
12251 int
12252 main ()
12253 {
12254 return dlopen ();
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 for ac_lib in '' dl; do
12260   if test -z "$ac_lib"; then
12261     ac_res="none required"
12262   else
12263     ac_res=-l$ac_lib
12264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12265   fi
12266   rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270   *) ac_try_echo=$ac_try;;
12271 esac
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273   (eval "$ac_link") 2>conftest.er1
12274   ac_status=$?
12275   grep -v '^ *+' conftest.er1 >conftest.err
12276   rm -f conftest.er1
12277   cat conftest.err >&5
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); } &&
12280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12281   { (case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_try") 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest$ac_exeext'
12291   { (case "(($ac_try" in
12292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293   *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296   (eval "$ac_try") 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; }; then
12300   ac_cv_search_dlopen=$ac_res
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305
12306 fi
12307
12308 rm -f core conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext
12310   if test "${ac_cv_search_dlopen+set}" = set; then
12311   break
12312 fi
12313 done
12314 if test "${ac_cv_search_dlopen+set}" = set; then
12315   :
12316 else
12317   ac_cv_search_dlopen=no
12318 fi
12319 rm conftest.$ac_ext
12320 LIBS=$ac_func_search_save_LIBS
12321 fi
12322 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12323 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12324 ac_res=$ac_cv_search_dlopen
12325 if test "$ac_res" != no; then
12326   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12327
12328 cat >>confdefs.h <<\_ACEOF
12329 #define HAVE_DLOPEN 1
12330 _ACEOF
12331
12332 else
12333   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12334 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12335 fi
12336
12337
12338 if test "$llvm_cv_enable_libffi" = "yes" ; then
12339   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12340 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12341 if test "${ac_cv_search_ffi_call+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   ac_func_search_save_LIBS=$LIBS
12345 cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h.  */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h.  */
12351
12352 /* Override any GCC internal prototype to avoid an error.
12353    Use char because int might match the return type of a GCC
12354    builtin and then its argument prototype would still apply.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 char ffi_call ();
12359 int
12360 main ()
12361 {
12362 return ffi_call ();
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 for ac_lib in '' ffi; do
12368   if test -z "$ac_lib"; then
12369     ac_res="none required"
12370   else
12371     ac_res=-l$ac_lib
12372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12373   fi
12374   rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389   { (case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_try") 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_search_ffi_call=$ac_res
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext
12418   if test "${ac_cv_search_ffi_call+set}" = set; then
12419   break
12420 fi
12421 done
12422 if test "${ac_cv_search_ffi_call+set}" = set; then
12423   :
12424 else
12425   ac_cv_search_ffi_call=no
12426 fi
12427 rm conftest.$ac_ext
12428 LIBS=$ac_func_search_save_LIBS
12429 fi
12430 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12431 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12432 ac_res=$ac_cv_search_ffi_call
12433 if test "$ac_res" != no; then
12434   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12435
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_FFI_CALL 1
12438 _ACEOF
12439
12440 else
12441   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12442 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12443    { (exit 1); exit 1; }; }
12444 fi
12445
12446 fi
12447
12448 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12449 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12450 if test "${ac_cv_search_mallinfo+set}" = set; then
12451   echo $ECHO_N "(cached) $ECHO_C" >&6
12452 else
12453   ac_func_search_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460
12461 /* Override any GCC internal prototype to avoid an error.
12462    Use char because int might match the return type of a GCC
12463    builtin and then its argument prototype would still apply.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char mallinfo ();
12468 int
12469 main ()
12470 {
12471 return mallinfo ();
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 for ac_lib in '' malloc; do
12477   if test -z "$ac_lib"; then
12478     ac_res="none required"
12479   else
12480     ac_res=-l$ac_lib
12481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12482   fi
12483   rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490   (eval "$ac_link") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } &&
12497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498   { (case "(($ac_try" in
12499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500   *) ac_try_echo=$ac_try;;
12501 esac
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503   (eval "$ac_try") 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest$ac_exeext'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_cv_search_mallinfo=$ac_res
12518 else
12519   echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12521
12522
12523 fi
12524
12525 rm -f core conftest.err conftest.$ac_objext \
12526       conftest$ac_exeext
12527   if test "${ac_cv_search_mallinfo+set}" = set; then
12528   break
12529 fi
12530 done
12531 if test "${ac_cv_search_mallinfo+set}" = set; then
12532   :
12533 else
12534   ac_cv_search_mallinfo=no
12535 fi
12536 rm conftest.$ac_ext
12537 LIBS=$ac_func_search_save_LIBS
12538 fi
12539 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12540 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12541 ac_res=$ac_cv_search_mallinfo
12542 if test "$ac_res" != no; then
12543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12544
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_MALLINFO 1
12547 _ACEOF
12548
12549 fi
12550
12551
12552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12553
12554 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12555 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12556 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12557   echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559   ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lpthread  $LIBS"
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567
12568 /* Override any GCC internal prototype to avoid an error.
12569    Use char because int might match the return type of a GCC
12570    builtin and then its argument prototype would still apply.  */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 char pthread_mutex_init ();
12575 int
12576 main ()
12577 {
12578 return pthread_mutex_init ();
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (ac_try="$ac_link"
12585 case "(($ac_try" in
12586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587   *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590   (eval "$ac_link") 2>conftest.er1
12591   ac_status=$?
12592   grep -v '^ *+' conftest.er1 >conftest.err
12593   rm -f conftest.er1
12594   cat conftest.err >&5
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); } &&
12597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12598   { (case "(($ac_try" in
12599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600   *) ac_try_echo=$ac_try;;
12601 esac
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603   (eval "$ac_try") 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; } &&
12607          { ac_try='test -s conftest$ac_exeext'
12608   { (case "(($ac_try" in
12609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610   *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613   (eval "$ac_try") 2>&5
12614   ac_status=$?
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); }; }; then
12617   ac_cv_lib_pthread_pthread_mutex_init=yes
12618 else
12619   echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622         ac_cv_lib_pthread_pthread_mutex_init=no
12623 fi
12624
12625 rm -f core conftest.err conftest.$ac_objext \
12626       conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12628 fi
12629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12630 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12631 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12632   cat >>confdefs.h <<_ACEOF
12633 #define HAVE_LIBPTHREAD 1
12634 _ACEOF
12635
12636   LIBS="-lpthread $LIBS"
12637
12638 fi
12639
12640   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12641 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12642 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12643   echo $ECHO_N "(cached) $ECHO_C" >&6
12644 else
12645   ac_func_search_save_LIBS=$LIBS
12646 cat >conftest.$ac_ext <<_ACEOF
12647 /* confdefs.h.  */
12648 _ACEOF
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h.  */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654    Use char because int might match the return type of a GCC
12655    builtin and then its argument prototype would still apply.  */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char pthread_mutex_lock ();
12660 int
12661 main ()
12662 {
12663 return pthread_mutex_lock ();
12664   ;
12665   return 0;
12666 }
12667 _ACEOF
12668 for ac_lib in '' pthread; do
12669   if test -z "$ac_lib"; then
12670     ac_res="none required"
12671   else
12672     ac_res=-l$ac_lib
12673     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12674   fi
12675   rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (ac_try="$ac_link"
12677 case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_link") 2>conftest.er1
12683   ac_status=$?
12684   grep -v '^ *+' conftest.er1 >conftest.err
12685   rm -f conftest.er1
12686   cat conftest.err >&5
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); } &&
12689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690   { (case "(($ac_try" in
12691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692   *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695   (eval "$ac_try") 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; } &&
12699          { ac_try='test -s conftest$ac_exeext'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; }; then
12709   ac_cv_search_pthread_mutex_lock=$ac_res
12710 else
12711   echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
12715 fi
12716
12717 rm -f core conftest.err conftest.$ac_objext \
12718       conftest$ac_exeext
12719   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12720   break
12721 fi
12722 done
12723 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12724   :
12725 else
12726   ac_cv_search_pthread_mutex_lock=no
12727 fi
12728 rm conftest.$ac_ext
12729 LIBS=$ac_func_search_save_LIBS
12730 fi
12731 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12732 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12733 ac_res=$ac_cv_search_pthread_mutex_lock
12734 if test "$ac_res" != no; then
12735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12736
12737 cat >>confdefs.h <<\_ACEOF
12738 #define HAVE_PTHREAD_MUTEX_LOCK 1
12739 _ACEOF
12740
12741 fi
12742
12743   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12744 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12745 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   ac_func_search_save_LIBS=$LIBS
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755
12756 /* Override any GCC internal prototype to avoid an error.
12757    Use char because int might match the return type of a GCC
12758    builtin and then its argument prototype would still apply.  */
12759 #ifdef __cplusplus
12760 extern "C"
12761 #endif
12762 char pthread_rwlock_init ();
12763 int
12764 main ()
12765 {
12766 return pthread_rwlock_init ();
12767   ;
12768   return 0;
12769 }
12770 _ACEOF
12771 for ac_lib in '' pthread; do
12772   if test -z "$ac_lib"; then
12773     ac_res="none required"
12774   else
12775     ac_res=-l$ac_lib
12776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12777   fi
12778   rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_link") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793   { (case "(($ac_try" in
12794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795   *) ac_try_echo=$ac_try;;
12796 esac
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798   (eval "$ac_try") 2>&5
12799   ac_status=$?
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); }; } &&
12802          { ac_try='test -s conftest$ac_exeext'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   ac_cv_search_pthread_rwlock_init=$ac_res
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817
12818 fi
12819
12820 rm -f core conftest.err conftest.$ac_objext \
12821       conftest$ac_exeext
12822   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12823   break
12824 fi
12825 done
12826 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12827   :
12828 else
12829   ac_cv_search_pthread_rwlock_init=no
12830 fi
12831 rm conftest.$ac_ext
12832 LIBS=$ac_func_search_save_LIBS
12833 fi
12834 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12835 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12836 ac_res=$ac_cv_search_pthread_rwlock_init
12837 if test "$ac_res" != no; then
12838   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12839
12840 cat >>confdefs.h <<\_ACEOF
12841 #define HAVE_PTHREAD_RWLOCK_INIT 1
12842 _ACEOF
12843
12844 fi
12845
12846   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12847 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12848 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   ac_func_search_save_LIBS=$LIBS
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860    Use char because int might match the return type of a GCC
12861    builtin and then its argument prototype would still apply.  */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char pthread_getspecific ();
12866 int
12867 main ()
12868 {
12869 return pthread_getspecific ();
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 for ac_lib in '' pthread; do
12875   if test -z "$ac_lib"; then
12876     ac_res="none required"
12877   else
12878     ac_res=-l$ac_lib
12879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12880   fi
12881   rm -f conftest.$ac_objext conftest$ac_exeext
12882 if { (ac_try="$ac_link"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_link") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; } &&
12905          { ac_try='test -s conftest$ac_exeext'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_cv_search_pthread_getspecific=$ac_res
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext \
12924       conftest$ac_exeext
12925   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12926   break
12927 fi
12928 done
12929 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12930   :
12931 else
12932   ac_cv_search_pthread_getspecific=no
12933 fi
12934 rm conftest.$ac_ext
12935 LIBS=$ac_func_search_save_LIBS
12936 fi
12937 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12938 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12939 ac_res=$ac_cv_search_pthread_getspecific
12940 if test "$ac_res" != no; then
12941   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_PTHREAD_GETSPECIFIC 1
12945 _ACEOF
12946
12947 fi
12948
12949 fi
12950
12951
12952 # Check whether --with-udis86 was given.
12953 if test "${with_udis86+set}" = set; then
12954   withval=$with_udis86;
12955       USE_UDIS86=1
12956
12957       case "$withval" in
12958         /usr/lib|yes) ;;
12959         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12960       esac
12961
12962 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12963 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12964 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12965   echo $ECHO_N "(cached) $ECHO_C" >&6
12966 else
12967   ac_check_lib_save_LIBS=$LIBS
12968 LIBS="-ludis86  $LIBS"
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975
12976 /* Override any GCC internal prototype to avoid an error.
12977    Use char because int might match the return type of a GCC
12978    builtin and then its argument prototype would still apply.  */
12979 #ifdef __cplusplus
12980 extern "C"
12981 #endif
12982 char ud_init ();
12983 int
12984 main ()
12985 {
12986 return ud_init ();
12987   ;
12988   return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998   (eval "$ac_link") 2>conftest.er1
12999   ac_status=$?
13000   grep -v '^ *+' conftest.er1 >conftest.err
13001   rm -f conftest.er1
13002   cat conftest.err >&5
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13006   { (case "(($ac_try" in
13007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008   *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011   (eval "$ac_try") 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; } &&
13015          { ac_try='test -s conftest$ac_exeext'
13016   { (case "(($ac_try" in
13017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018   *) ac_try_echo=$ac_try;;
13019 esac
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021   (eval "$ac_try") 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   ac_cv_lib_udis86_ud_init=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         ac_cv_lib_udis86_ud_init=no
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext \
13034       conftest$ac_exeext conftest.$ac_ext
13035 LIBS=$ac_check_lib_save_LIBS
13036 fi
13037 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13038 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13039 if test $ac_cv_lib_udis86_ud_init = yes; then
13040   cat >>confdefs.h <<_ACEOF
13041 #define HAVE_LIBUDIS86 1
13042 _ACEOF
13043
13044   LIBS="-ludis86 $LIBS"
13045
13046 else
13047
13048         echo "Error! You need to have libudis86 around."
13049         exit -1
13050
13051 fi
13052
13053
13054 else
13055   USE_UDIS86=0
13056
13057 fi
13058
13059
13060 cat >>confdefs.h <<_ACEOF
13061 #define USE_UDIS86 $USE_UDIS86
13062 _ACEOF
13063
13064
13065
13066 # Check whether --with-oprofile was given.
13067 if test "${with_oprofile+set}" = set; then
13068   withval=$with_oprofile;
13069       USE_OPROFILE=1
13070
13071       case "$withval" in
13072         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13073         no) llvm_cv_oppath=
13074             USE_OPROFILE=0
13075  ;;
13076         *) llvm_cv_oppath="${withval}/lib/oprofile"
13077            BUILD_FLAGS="-I${withval}/include";;
13078       esac
13079       case $llvm_cv_os_type in
13080         Linux)
13081           if test -n "$llvm_cv_oppath" ; then
13082             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13083                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13084 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13085 if test "${ac_cv_search_bfd_init+set}" = set; then
13086   echo $ECHO_N "(cached) $ECHO_C" >&6
13087 else
13088   ac_func_search_save_LIBS=$LIBS
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any GCC internal prototype to avoid an error.
13097    Use char because int might match the return type of a GCC
13098    builtin and then its argument prototype would still apply.  */
13099 #ifdef __cplusplus
13100 extern "C"
13101 #endif
13102 char bfd_init ();
13103 int
13104 main ()
13105 {
13106 return bfd_init ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 for ac_lib in '' bfd; do
13112   if test -z "$ac_lib"; then
13113     ac_res="none required"
13114   else
13115     ac_res=-l$ac_lib
13116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13117   fi
13118   rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (ac_try="$ac_link"
13120 case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_link") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } &&
13132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13133   { (case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138   (eval "$ac_try") 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_try") 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_cv_search_bfd_init=$ac_res
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157
13158 fi
13159
13160 rm -f core conftest.err conftest.$ac_objext \
13161       conftest$ac_exeext
13162   if test "${ac_cv_search_bfd_init+set}" = set; then
13163   break
13164 fi
13165 done
13166 if test "${ac_cv_search_bfd_init+set}" = set; then
13167   :
13168 else
13169   ac_cv_search_bfd_init=no
13170 fi
13171 rm conftest.$ac_ext
13172 LIBS=$ac_func_search_save_LIBS
13173 fi
13174 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13175 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13176 ac_res=$ac_cv_search_bfd_init
13177 if test "$ac_res" != no; then
13178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13179
13180 fi
13181
13182             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13183 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13184 if test "${ac_cv_search_op_open_agent+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   ac_func_search_save_LIBS=$LIBS
13188 cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196    Use char because int might match the return type of a GCC
13197    builtin and then its argument prototype would still apply.  */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char op_open_agent ();
13202 int
13203 main ()
13204 {
13205 return op_open_agent ();
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 for ac_lib in '' opagent; do
13211   if test -z "$ac_lib"; then
13212     ac_res="none required"
13213   else
13214     ac_res=-l$ac_lib
13215     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13216   fi
13217   rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221   *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224   (eval "$ac_link") 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232   { (case "(($ac_try" in
13233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234   *) ac_try_echo=$ac_try;;
13235 esac
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237   (eval "$ac_try") 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } &&
13241          { ac_try='test -s conftest$ac_exeext'
13242   { (case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_try") 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_cv_search_op_open_agent=$ac_res
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256
13257 fi
13258
13259 rm -f core conftest.err conftest.$ac_objext \
13260       conftest$ac_exeext
13261   if test "${ac_cv_search_op_open_agent+set}" = set; then
13262   break
13263 fi
13264 done
13265 if test "${ac_cv_search_op_open_agent+set}" = set; then
13266   :
13267 else
13268   ac_cv_search_op_open_agent=no
13269 fi
13270 rm conftest.$ac_ext
13271 LIBS=$ac_func_search_save_LIBS
13272 fi
13273 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13274 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13275 ac_res=$ac_cv_search_op_open_agent
13276 if test "$ac_res" != no; then
13277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13278
13279 else
13280
13281               echo "Error! You need to have libopagent around."
13282               exit -1
13283
13284 fi
13285
13286             if test "${ac_cv_header_opagent_h+set}" = set; then
13287   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13288 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_opagent_h+set}" = set; then
13290   echo $ECHO_N "(cached) $ECHO_C" >&6
13291 fi
13292 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13293 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13294 else
13295   # Is the header compilable?
13296 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13297 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 $ac_includes_default
13305 #include <opagent.h>
13306 _ACEOF
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311   *) ac_try_echo=$ac_try;;
13312 esac
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314   (eval "$ac_compile") 2>conftest.er1
13315   ac_status=$?
13316   grep -v '^ *+' conftest.er1 >conftest.err
13317   rm -f conftest.er1
13318   cat conftest.err >&5
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13322   { (case "(($ac_try" in
13323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324   *) ac_try_echo=$ac_try;;
13325 esac
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327   (eval "$ac_try") 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; } &&
13331          { ac_try='test -s conftest.$ac_objext'
13332   { (case "(($ac_try" in
13333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334   *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337   (eval "$ac_try") 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; }; then
13341   ac_header_compiler=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346         ac_header_compiler=no
13347 fi
13348
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13355 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 #include <opagent.h>
13363 _ACEOF
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367   *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } >/dev/null; then
13377   if test -s conftest.err; then
13378     ac_cpp_err=$ac_c_preproc_warn_flag
13379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13380   else
13381     ac_cpp_err=
13382   fi
13383 else
13384   ac_cpp_err=yes
13385 fi
13386 if test -z "$ac_cpp_err"; then
13387   ac_header_preproc=yes
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392   ac_header_preproc=no
13393 fi
13394
13395 rm -f conftest.err conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13398
13399 # So?  What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401   yes:no: )
13402     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13406     ac_header_preproc=yes
13407     ;;
13408   no:yes:* )
13409     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13413     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13415     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13417     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13419     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13421     ( cat <<\_ASBOX
13422 ## ------------------------------------ ##
13423 ## Report this to http://llvm.org/bugs/ ##
13424 ## ------------------------------------ ##
13425 _ASBOX
13426      ) | sed "s/^/$as_me: WARNING:     /" >&2
13427     ;;
13428 esac
13429 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13430 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_opagent_h+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   ac_cv_header_opagent_h=$ac_header_preproc
13435 fi
13436 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13437 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13438
13439 fi
13440 if test $ac_cv_header_opagent_h = yes; then
13441   :
13442 else
13443
13444               echo "Error! You need to have opagent.h around."
13445               exit -1
13446
13447 fi
13448
13449
13450           fi ;;
13451         *)
13452           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13453 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13454    { (exit 1); exit 1; }; } ;;
13455       esac
13456
13457 else
13458
13459       USE_OPROFILE=0
13460
13461
13462 fi
13463
13464
13465 cat >>confdefs.h <<_ACEOF
13466 #define LLVM_USE_OPROFILE $USE_OPROFILE
13467 _ACEOF
13468
13469
13470
13471 # Check whether --with-intel-jitevents was given.
13472 if test "${with_intel_jitevents+set}" = set; then
13473   withval=$with_intel_jitevents;
13474       case $llvm_cv_os_type in
13475         Linux|Win32|Cygwin|MingW) ;;
13476         *)
13477           { { echo "$as_me:$LINENO: error:
13478             Intel JIT API support is available on Linux and Windows only.\"" >&5
13479 echo "$as_me: error:
13480             Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13481    { (exit 1); exit 1; }; } ;;
13482       esac
13483
13484       USE_INTEL_JITEVENTS=1
13485
13486       case "$llvm_cv_target_arch" in
13487         x86)    llvm_intel_jitevents_archdir="lib32";;
13488         x86_64) llvm_intel_jitevents_archdir="lib64";;
13489         *)      echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13490                 exit -1;;
13491       esac
13492       INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13493       INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13494       case "$withval" in
13495         /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13496                                   INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13497         *) ;;
13498       esac
13499
13500
13501
13502
13503       LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13504       BUILD_FLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13505
13506       { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13507 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13508 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13509   echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511   ac_func_search_save_LIBS=$LIBS
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518
13519 /* Override any GCC internal prototype to avoid an error.
13520    Use char because int might match the return type of a GCC
13521    builtin and then its argument prototype would still apply.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 char iJIT_IsProfilingActive ();
13526 int
13527 main ()
13528 {
13529 return iJIT_IsProfilingActive ();
13530   ;
13531   return 0;
13532 }
13533 _ACEOF
13534 for ac_lib in '' jitprofiling; do
13535   if test -z "$ac_lib"; then
13536     ac_res="none required"
13537   else
13538     ac_res=-l$ac_lib
13539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13540   fi
13541   rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545   *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548   (eval "$ac_link") 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556   { (case "(($ac_try" in
13557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558   *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561   (eval "$ac_try") 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; } &&
13565          { ac_try='test -s conftest$ac_exeext'
13566   { (case "(($ac_try" in
13567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568   *) ac_try_echo=$ac_try;;
13569 esac
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571   (eval "$ac_try") 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; }; then
13575   ac_cv_search_iJIT_IsProfilingActive=$ac_res
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580
13581 fi
13582
13583 rm -f core conftest.err conftest.$ac_objext \
13584       conftest$ac_exeext
13585   if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13586   break
13587 fi
13588 done
13589 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13590   :
13591 else
13592   ac_cv_search_iJIT_IsProfilingActive=no
13593 fi
13594 rm conftest.$ac_ext
13595 LIBS=$ac_func_search_save_LIBS
13596 fi
13597 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13598 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13599 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13600 if test "$ac_res" != no; then
13601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13602
13603 else
13604
13605         echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13606         exit -1
13607
13608 fi
13609
13610       if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13611   { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13612 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13613 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 fi
13616 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13617 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13618 else
13619   # Is the header compilable?
13620 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13621 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628 $ac_includes_default
13629 #include <jitprofiling.h>
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635   *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638   (eval "$ac_compile") 2>conftest.er1
13639   ac_status=$?
13640   grep -v '^ *+' conftest.er1 >conftest.err
13641   rm -f conftest.er1
13642   cat conftest.err >&5
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } &&
13645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13646   { (case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_try") 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; } &&
13655          { ac_try='test -s conftest.$ac_objext'
13656   { (case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_try") 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_header_compiler=yes
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670         ac_header_compiler=no
13671 fi
13672
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13675 echo "${ECHO_T}$ac_header_compiler" >&6; }
13676
13677 # Is the header present?
13678 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13679 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 #include <jitprofiling.h>
13687 _ACEOF
13688 if { (ac_try="$ac_cpp conftest.$ac_ext"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } >/dev/null; then
13701   if test -s conftest.err; then
13702     ac_cpp_err=$ac_c_preproc_warn_flag
13703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13704   else
13705     ac_cpp_err=
13706   fi
13707 else
13708   ac_cpp_err=yes
13709 fi
13710 if test -z "$ac_cpp_err"; then
13711   ac_header_preproc=yes
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716   ac_header_preproc=no
13717 fi
13718
13719 rm -f conftest.err conftest.$ac_ext
13720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13721 echo "${ECHO_T}$ac_header_preproc" >&6; }
13722
13723 # So?  What about this header?
13724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13725   yes:no: )
13726     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13727 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13728     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13729 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13730     ac_header_preproc=yes
13731     ;;
13732   no:yes:* )
13733     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13734 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13735     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&5
13736 echo "$as_me: WARNING: jitprofiling.h:     check for missing prerequisite headers?" >&2;}
13737     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13738 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13739     { echo "$as_me:$LINENO: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&5
13740 echo "$as_me: WARNING: jitprofiling.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13741     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13742 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13743     { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13744 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13745     ( cat <<\_ASBOX
13746 ## ------------------------------------ ##
13747 ## Report this to http://llvm.org/bugs/ ##
13748 ## ------------------------------------ ##
13749 _ASBOX
13750      ) | sed "s/^/$as_me: WARNING:     /" >&2
13751     ;;
13752 esac
13753 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13754 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13755 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   ac_cv_header_jitprofiling_h=$ac_header_preproc
13759 fi
13760 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13761 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13762
13763 fi
13764 if test $ac_cv_header_jitprofiling_h = yes; then
13765   :
13766 else
13767
13768         echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13769         exit -1
13770
13771 fi
13772
13773
13774
13775
13776 else
13777
13778       USE_INTEL_JITEVENTS=0
13779
13780
13781 fi
13782
13783
13784 cat >>confdefs.h <<_ACEOF
13785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13786 _ACEOF
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797 ac_header_dirent=no
13798 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13799   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13800 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13801 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h.  */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h.  */
13811 #include <sys/types.h>
13812 #include <$ac_hdr>
13813
13814 int
13815 main ()
13816 {
13817 if ((DIR *) 0)
13818 return 0;
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827   *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830   (eval "$ac_compile") 2>conftest.er1
13831   ac_status=$?
13832   grep -v '^ *+' conftest.er1 >conftest.err
13833   rm -f conftest.er1
13834   cat conftest.err >&5
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } &&
13837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838   { (case "(($ac_try" in
13839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840   *) ac_try_echo=$ac_try;;
13841 esac
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843   (eval "$ac_try") 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; } &&
13847          { ac_try='test -s conftest.$ac_objext'
13848   { (case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_try") 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   eval "$as_ac_Header=yes"
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862         eval "$as_ac_Header=no"
13863 fi
13864
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 ac_res=`eval echo '${'$as_ac_Header'}'`
13868                { echo "$as_me:$LINENO: result: $ac_res" >&5
13869 echo "${ECHO_T}$ac_res" >&6; }
13870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13871   cat >>confdefs.h <<_ACEOF
13872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13873 _ACEOF
13874
13875 ac_header_dirent=$ac_hdr; break
13876 fi
13877
13878 done
13879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13880 if test $ac_header_dirent = dirent.h; then
13881   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13883 if test "${ac_cv_search_opendir+set}" = set; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886   ac_func_search_save_LIBS=$LIBS
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h.  */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h.  */
13893
13894 /* Override any GCC internal prototype to avoid an error.
13895    Use char because int might match the return type of a GCC
13896    builtin and then its argument prototype would still apply.  */
13897 #ifdef __cplusplus
13898 extern "C"
13899 #endif
13900 char opendir ();
13901 int
13902 main ()
13903 {
13904 return opendir ();
13905   ;
13906   return 0;
13907 }
13908 _ACEOF
13909 for ac_lib in '' dir; do
13910   if test -z "$ac_lib"; then
13911     ac_res="none required"
13912   else
13913     ac_res=-l$ac_lib
13914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13915   fi
13916   rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_link") 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } &&
13930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13931   { (case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_try") 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; } &&
13940          { ac_try='test -s conftest$ac_exeext'
13941   { (case "(($ac_try" in
13942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13943   *) ac_try_echo=$ac_try;;
13944 esac
13945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13946   (eval "$ac_try") 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; }; then
13950   ac_cv_search_opendir=$ac_res
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955
13956 fi
13957
13958 rm -f core conftest.err conftest.$ac_objext \
13959       conftest$ac_exeext
13960   if test "${ac_cv_search_opendir+set}" = set; then
13961   break
13962 fi
13963 done
13964 if test "${ac_cv_search_opendir+set}" = set; then
13965   :
13966 else
13967   ac_cv_search_opendir=no
13968 fi
13969 rm conftest.$ac_ext
13970 LIBS=$ac_func_search_save_LIBS
13971 fi
13972 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13973 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13974 ac_res=$ac_cv_search_opendir
13975 if test "$ac_res" != no; then
13976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13977
13978 fi
13979
13980 else
13981   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13982 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13983 if test "${ac_cv_search_opendir+set}" = set; then
13984   echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986   ac_func_search_save_LIBS=$LIBS
13987 cat >conftest.$ac_ext <<_ACEOF
13988 /* confdefs.h.  */
13989 _ACEOF
13990 cat confdefs.h >>conftest.$ac_ext
13991 cat >>conftest.$ac_ext <<_ACEOF
13992 /* end confdefs.h.  */
13993
13994 /* Override any GCC internal prototype to avoid an error.
13995    Use char because int might match the return type of a GCC
13996    builtin and then its argument prototype would still apply.  */
13997 #ifdef __cplusplus
13998 extern "C"
13999 #endif
14000 char opendir ();
14001 int
14002 main ()
14003 {
14004 return opendir ();
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 for ac_lib in '' x; do
14010   if test -z "$ac_lib"; then
14011     ac_res="none required"
14012   else
14013     ac_res=-l$ac_lib
14014     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14015   fi
14016   rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (ac_try="$ac_link"
14018 case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023   (eval "$ac_link") 2>conftest.er1
14024   ac_status=$?
14025   grep -v '^ *+' conftest.er1 >conftest.err
14026   rm -f conftest.er1
14027   cat conftest.err >&5
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14031   { (case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_try") 2>&5
14037   ac_status=$?
14038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039   (exit $ac_status); }; } &&
14040          { ac_try='test -s conftest$ac_exeext'
14041   { (case "(($ac_try" in
14042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043   *) ac_try_echo=$ac_try;;
14044 esac
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046   (eval "$ac_try") 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_cv_search_opendir=$ac_res
14051 else
14052   echo "$as_me: failed program was:" >&5
14053 sed 's/^/| /' conftest.$ac_ext >&5
14054
14055
14056 fi
14057
14058 rm -f core conftest.err conftest.$ac_objext \
14059       conftest$ac_exeext
14060   if test "${ac_cv_search_opendir+set}" = set; then
14061   break
14062 fi
14063 done
14064 if test "${ac_cv_search_opendir+set}" = set; then
14065   :
14066 else
14067   ac_cv_search_opendir=no
14068 fi
14069 rm conftest.$ac_ext
14070 LIBS=$ac_func_search_save_LIBS
14071 fi
14072 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14073 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14074 ac_res=$ac_cv_search_opendir
14075 if test "$ac_res" != no; then
14076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14077
14078 fi
14079
14080 fi
14081
14082 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14083 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14084 if test "${ac_cv_header_mmap_anon+set}" = set; then
14085   echo $ECHO_N "(cached) $ECHO_C" >&6
14086 else
14087    ac_ext=c
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14092
14093   cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h.  */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h.  */
14099 #include <sys/mman.h>
14100 #include <unistd.h>
14101 #include <fcntl.h>
14102 int
14103 main ()
14104 {
14105 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 rm -f conftest.$ac_objext
14111 if { (ac_try="$ac_compile"
14112 case "(($ac_try" in
14113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114   *) ac_try_echo=$ac_try;;
14115 esac
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117   (eval "$ac_compile") 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125   { (case "(($ac_try" in
14126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127   *) ac_try_echo=$ac_try;;
14128 esac
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130   (eval "$ac_try") 2>&5
14131   ac_status=$?
14132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133   (exit $ac_status); }; } &&
14134          { ac_try='test -s conftest.$ac_objext'
14135   { (case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_try") 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); }; }; then
14144   ac_cv_header_mmap_anon=yes
14145 else
14146   echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14148
14149         ac_cv_header_mmap_anon=no
14150 fi
14151
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153   ac_ext=c
14154 ac_cpp='$CPP $CPPFLAGS'
14155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14158
14159
14160 fi
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14162 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14163 if test "$ac_cv_header_mmap_anon" = yes; then
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_MMAP_ANONYMOUS 1
14167 _ACEOF
14168
14169 fi
14170
14171 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14172 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14173 if test "${ac_cv_header_stat_broken+set}" = set; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h.  */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h.  */
14182 #include <sys/types.h>
14183 #include <sys/stat.h>
14184
14185 #if defined S_ISBLK && defined S_IFDIR
14186 # if S_ISBLK (S_IFDIR)
14187 You lose.
14188 # endif
14189 #endif
14190
14191 #if defined S_ISBLK && defined S_IFCHR
14192 # if S_ISBLK (S_IFCHR)
14193 You lose.
14194 # endif
14195 #endif
14196
14197 #if defined S_ISLNK && defined S_IFREG
14198 # if S_ISLNK (S_IFREG)
14199 You lose.
14200 # endif
14201 #endif
14202
14203 #if defined S_ISSOCK && defined S_IFREG
14204 # if S_ISSOCK (S_IFREG)
14205 You lose.
14206 # endif
14207 #endif
14208
14209 _ACEOF
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211   $EGREP "You lose" >/dev/null 2>&1; then
14212   ac_cv_header_stat_broken=yes
14213 else
14214   ac_cv_header_stat_broken=no
14215 fi
14216 rm -f conftest*
14217
14218 fi
14219 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14220 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14221 if test $ac_cv_header_stat_broken = yes; then
14222
14223 cat >>confdefs.h <<\_ACEOF
14224 #define STAT_MACROS_BROKEN 1
14225 _ACEOF
14226
14227 fi
14228
14229 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14230 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14231 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h.  */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h.  */
14240 #include <sys/types.h>
14241 #include <sys/wait.h>
14242 #ifndef WEXITSTATUS
14243 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14244 #endif
14245 #ifndef WIFEXITED
14246 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14247 #endif
14248
14249 int
14250 main ()
14251 {
14252   int s;
14253   wait (&s);
14254   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (ac_try="$ac_compile"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_compile") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274   { (case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_try") 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_cv_header_sys_wait_h=yes
14294 else
14295   echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298         ac_cv_header_sys_wait_h=no
14299 fi
14300
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 fi
14303 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14304 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14305 if test $ac_cv_header_sys_wait_h = yes; then
14306
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_SYS_WAIT_H 1
14309 _ACEOF
14310
14311 fi
14312
14313 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14314 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14315 if test "${ac_cv_header_time+set}" = set; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318   cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 #include <sys/types.h>
14325 #include <sys/time.h>
14326 #include <time.h>
14327
14328 int
14329 main ()
14330 {
14331 if ((struct tm *) 0)
14332 return 0;
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_compile") 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; } &&
14361          { ac_try='test -s conftest.$ac_objext'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   ac_cv_header_time=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376         ac_cv_header_time=no
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 fi
14381 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14382 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14383 if test $ac_cv_header_time = yes; then
14384
14385 cat >>confdefs.h <<\_ACEOF
14386 #define TIME_WITH_SYS_TIME 1
14387 _ACEOF
14388
14389 fi
14390
14391
14392
14393
14394
14395
14396
14397
14398 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14399 do
14400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 fi
14407 ac_res=`eval echo '${'$as_ac_Header'}'`
14408                { echo "$as_me:$LINENO: result: $ac_res" >&5
14409 echo "${ECHO_T}$ac_res" >&6; }
14410 else
14411   # Is the header compilable?
14412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 #include <$ac_header>
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427   *) ac_try_echo=$ac_try;;
14428 esac
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430   (eval "$ac_compile") 2>conftest.er1
14431   ac_status=$?
14432   grep -v '^ *+' conftest.er1 >conftest.err
14433   rm -f conftest.er1
14434   cat conftest.err >&5
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14438   { (case "(($ac_try" in
14439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440   *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443   (eval "$ac_try") 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (case "(($ac_try" in
14449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450   *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453   (eval "$ac_try") 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; }; then
14457   ac_header_compiler=yes
14458 else
14459   echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462         ac_header_compiler=no
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 echo "${ECHO_T}$ac_header_compiler" >&6; }
14468
14469 # Is the header present?
14470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478 #include <$ac_header>
14479 _ACEOF
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14487   ac_status=$?
14488   grep -v '^ *+' conftest.er1 >conftest.err
14489   rm -f conftest.er1
14490   cat conftest.err >&5
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } >/dev/null; then
14493   if test -s conftest.err; then
14494     ac_cpp_err=$ac_c_preproc_warn_flag
14495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14496   else
14497     ac_cpp_err=
14498   fi
14499 else
14500   ac_cpp_err=yes
14501 fi
14502 if test -z "$ac_cpp_err"; then
14503   ac_header_preproc=yes
14504 else
14505   echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14507
14508   ac_header_preproc=no
14509 fi
14510
14511 rm -f conftest.err conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6; }
14514
14515 # So?  What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517   yes:no: )
14518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522     ac_header_preproc=yes
14523     ;;
14524   no:yes:* )
14525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14537     ( cat <<\_ASBOX
14538 ## ------------------------------------ ##
14539 ## Report this to http://llvm.org/bugs/ ##
14540 ## ------------------------------------ ##
14541 _ASBOX
14542      ) | sed "s/^/$as_me: WARNING:     /" >&2
14543     ;;
14544 esac
14545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   eval "$as_ac_Header=\$ac_header_preproc"
14551 fi
14552 ac_res=`eval echo '${'$as_ac_Header'}'`
14553                { echo "$as_me:$LINENO: result: $ac_res" >&5
14554 echo "${ECHO_T}$ac_res" >&6; }
14555
14556 fi
14557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14558   cat >>confdefs.h <<_ACEOF
14559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14560 _ACEOF
14561
14562 fi
14563
14564 done
14565
14566
14567
14568
14569
14570
14571
14572 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14573 do
14574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14576   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 fi
14581 ac_res=`eval echo '${'$as_ac_Header'}'`
14582                { echo "$as_me:$LINENO: result: $ac_res" >&5
14583 echo "${ECHO_T}$ac_res" >&6; }
14584 else
14585   # Is the header compilable?
14586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14588 cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594 $ac_includes_default
14595 #include <$ac_header>
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (ac_try="$ac_compile"
14599 case "(($ac_try" in
14600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601   *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604   (eval "$ac_compile") 2>conftest.er1
14605   ac_status=$?
14606   grep -v '^ *+' conftest.er1 >conftest.err
14607   rm -f conftest.er1
14608   cat conftest.err >&5
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); } &&
14611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14612   { (case "(($ac_try" in
14613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614   *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617   (eval "$ac_try") 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; } &&
14621          { ac_try='test -s conftest.$ac_objext'
14622   { (case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627   (eval "$ac_try") 2>&5
14628   ac_status=$?
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); }; }; then
14631   ac_header_compiler=yes
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         ac_header_compiler=no
14637 fi
14638
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14641 echo "${ECHO_T}$ac_header_compiler" >&6; }
14642
14643 # Is the header present?
14644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 #include <$ac_header>
14653 _ACEOF
14654 if { (ac_try="$ac_cpp conftest.$ac_ext"
14655 case "(($ac_try" in
14656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14657   *) ac_try_echo=$ac_try;;
14658 esac
14659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14661   ac_status=$?
14662   grep -v '^ *+' conftest.er1 >conftest.err
14663   rm -f conftest.er1
14664   cat conftest.err >&5
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); } >/dev/null; then
14667   if test -s conftest.err; then
14668     ac_cpp_err=$ac_c_preproc_warn_flag
14669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14670   else
14671     ac_cpp_err=
14672   fi
14673 else
14674   ac_cpp_err=yes
14675 fi
14676 if test -z "$ac_cpp_err"; then
14677   ac_header_preproc=yes
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682   ac_header_preproc=no
14683 fi
14684
14685 rm -f conftest.err conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 echo "${ECHO_T}$ac_header_preproc" >&6; }
14688
14689 # So?  What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14691   yes:no: )
14692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14696     ac_header_preproc=yes
14697     ;;
14698   no:yes:* )
14699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14711     ( cat <<\_ASBOX
14712 ## ------------------------------------ ##
14713 ## Report this to http://llvm.org/bugs/ ##
14714 ## ------------------------------------ ##
14715 _ASBOX
14716      ) | sed "s/^/$as_me: WARNING:     /" >&2
14717     ;;
14718 esac
14719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   eval "$as_ac_Header=\$ac_header_preproc"
14725 fi
14726 ac_res=`eval echo '${'$as_ac_Header'}'`
14727                { echo "$as_me:$LINENO: result: $ac_res" >&5
14728 echo "${ECHO_T}$ac_res" >&6; }
14729
14730 fi
14731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14732   cat >>confdefs.h <<_ACEOF
14733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14734 _ACEOF
14735
14736 fi
14737
14738 done
14739
14740
14741
14742 for ac_header in utime.h windows.h
14743 do
14744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14746   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14749   echo $ECHO_N "(cached) $ECHO_C" >&6
14750 fi
14751 ac_res=`eval echo '${'$as_ac_Header'}'`
14752                { echo "$as_me:$LINENO: result: $ac_res" >&5
14753 echo "${ECHO_T}$ac_res" >&6; }
14754 else
14755   # Is the header compilable?
14756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14758 cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 $ac_includes_default
14765 #include <$ac_header>
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771   *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774   (eval "$ac_compile") 2>conftest.er1
14775   ac_status=$?
14776   grep -v '^ *+' conftest.er1 >conftest.err
14777   rm -f conftest.er1
14778   cat conftest.err >&5
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); } &&
14781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14782   { (case "(($ac_try" in
14783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784   *) ac_try_echo=$ac_try;;
14785 esac
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787   (eval "$ac_try") 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; } &&
14791          { ac_try='test -s conftest.$ac_objext'
14792   { (case "(($ac_try" in
14793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794   *) ac_try_echo=$ac_try;;
14795 esac
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797   (eval "$ac_try") 2>&5
14798   ac_status=$?
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); }; }; then
14801   ac_header_compiler=yes
14802 else
14803   echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806         ac_header_compiler=no
14807 fi
14808
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14811 echo "${ECHO_T}$ac_header_compiler" >&6; }
14812
14813 # Is the header present?
14814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822 #include <$ac_header>
14823 _ACEOF
14824 if { (ac_try="$ac_cpp conftest.$ac_ext"
14825 case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } >/dev/null; then
14837   if test -s conftest.err; then
14838     ac_cpp_err=$ac_c_preproc_warn_flag
14839     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14840   else
14841     ac_cpp_err=
14842   fi
14843 else
14844   ac_cpp_err=yes
14845 fi
14846 if test -z "$ac_cpp_err"; then
14847   ac_header_preproc=yes
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852   ac_header_preproc=no
14853 fi
14854
14855 rm -f conftest.err conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14857 echo "${ECHO_T}$ac_header_preproc" >&6; }
14858
14859 # So?  What about this header?
14860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861   yes:no: )
14862     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14864     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14866     ac_header_preproc=yes
14867     ;;
14868   no:yes:* )
14869     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14872 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14873     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14876 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14881     ( cat <<\_ASBOX
14882 ## ------------------------------------ ##
14883 ## Report this to http://llvm.org/bugs/ ##
14884 ## ------------------------------------ ##
14885 _ASBOX
14886      ) | sed "s/^/$as_me: WARNING:     /" >&2
14887     ;;
14888 esac
14889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   eval "$as_ac_Header=\$ac_header_preproc"
14895 fi
14896 ac_res=`eval echo '${'$as_ac_Header'}'`
14897                { echo "$as_me:$LINENO: result: $ac_res" >&5
14898 echo "${ECHO_T}$ac_res" >&6; }
14899
14900 fi
14901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14902   cat >>confdefs.h <<_ACEOF
14903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14904 _ACEOF
14905
14906 fi
14907
14908 done
14909
14910
14911
14912
14913
14914
14915 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14916 do
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 fi
14924 ac_res=`eval echo '${'$as_ac_Header'}'`
14925                { echo "$as_me:$LINENO: result: $ac_res" >&5
14926 echo "${ECHO_T}$ac_res" >&6; }
14927 else
14928   # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 $ac_includes_default
14938 #include <$ac_header>
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944   *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947   (eval "$ac_compile") 2>conftest.er1
14948   ac_status=$?
14949   grep -v '^ *+' conftest.er1 >conftest.err
14950   rm -f conftest.er1
14951   cat conftest.err >&5
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); } &&
14954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14955   { (case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_try") 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; } &&
14964          { ac_try='test -s conftest.$ac_objext'
14965   { (case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_try") 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; }; then
14974   ac_header_compiler=yes
14975 else
14976   echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14978
14979         ac_header_compiler=no
14980 fi
14981
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14984 echo "${ECHO_T}$ac_header_compiler" >&6; }
14985
14986 # Is the header present?
14987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14989 cat >conftest.$ac_ext <<_ACEOF
14990 /* confdefs.h.  */
14991 _ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h.  */
14995 #include <$ac_header>
14996 _ACEOF
14997 if { (ac_try="$ac_cpp conftest.$ac_ext"
14998 case "(($ac_try" in
14999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000   *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15004   ac_status=$?
15005   grep -v '^ *+' conftest.er1 >conftest.err
15006   rm -f conftest.er1
15007   cat conftest.err >&5
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } >/dev/null; then
15010   if test -s conftest.err; then
15011     ac_cpp_err=$ac_c_preproc_warn_flag
15012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15013   else
15014     ac_cpp_err=
15015   fi
15016 else
15017   ac_cpp_err=yes
15018 fi
15019 if test -z "$ac_cpp_err"; then
15020   ac_header_preproc=yes
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025   ac_header_preproc=no
15026 fi
15027
15028 rm -f conftest.err conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15030 echo "${ECHO_T}$ac_header_preproc" >&6; }
15031
15032 # So?  What about this header?
15033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15034   yes:no: )
15035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15039     ac_header_preproc=yes
15040     ;;
15041   no:yes:* )
15042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15054     ( cat <<\_ASBOX
15055 ## ------------------------------------ ##
15056 ## Report this to http://llvm.org/bugs/ ##
15057 ## ------------------------------------ ##
15058 _ASBOX
15059      ) | sed "s/^/$as_me: WARNING:     /" >&2
15060     ;;
15061 esac
15062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065   echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067   eval "$as_ac_Header=\$ac_header_preproc"
15068 fi
15069 ac_res=`eval echo '${'$as_ac_Header'}'`
15070                { echo "$as_me:$LINENO: result: $ac_res" >&5
15071 echo "${ECHO_T}$ac_res" >&6; }
15072
15073 fi
15074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15075   cat >>confdefs.h <<_ACEOF
15076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15077 _ACEOF
15078
15079 fi
15080
15081 done
15082
15083
15084
15085
15086
15087 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15088 do
15089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15094   echo $ECHO_N "(cached) $ECHO_C" >&6
15095 fi
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097                { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 else
15100   # Is the header compilable?
15101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109 $ac_includes_default
15110 #include <$ac_header>
15111 _ACEOF
15112 rm -f conftest.$ac_objext
15113 if { (ac_try="$ac_compile"
15114 case "(($ac_try" in
15115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116   *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119   (eval "$ac_compile") 2>conftest.er1
15120   ac_status=$?
15121   grep -v '^ *+' conftest.er1 >conftest.err
15122   rm -f conftest.er1
15123   cat conftest.err >&5
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); } &&
15126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15127   { (case "(($ac_try" in
15128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129   *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132   (eval "$ac_try") 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); }; } &&
15136          { ac_try='test -s conftest.$ac_objext'
15137   { (case "(($ac_try" in
15138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139   *) ac_try_echo=$ac_try;;
15140 esac
15141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142   (eval "$ac_try") 2>&5
15143   ac_status=$?
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); }; }; then
15146   ac_header_compiler=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151         ac_header_compiler=no
15152 fi
15153
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15156 echo "${ECHO_T}$ac_header_compiler" >&6; }
15157
15158 # Is the header present?
15159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15161 cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h.  */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h.  */
15167 #include <$ac_header>
15168 _ACEOF
15169 if { (ac_try="$ac_cpp conftest.$ac_ext"
15170 case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15176   ac_status=$?
15177   grep -v '^ *+' conftest.er1 >conftest.err
15178   rm -f conftest.er1
15179   cat conftest.err >&5
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); } >/dev/null; then
15182   if test -s conftest.err; then
15183     ac_cpp_err=$ac_c_preproc_warn_flag
15184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15185   else
15186     ac_cpp_err=
15187   fi
15188 else
15189   ac_cpp_err=yes
15190 fi
15191 if test -z "$ac_cpp_err"; then
15192   ac_header_preproc=yes
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197   ac_header_preproc=no
15198 fi
15199
15200 rm -f conftest.err conftest.$ac_ext
15201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15202 echo "${ECHO_T}$ac_header_preproc" >&6; }
15203
15204 # So?  What about this header?
15205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15206   yes:no: )
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15211     ac_header_preproc=yes
15212     ;;
15213   no:yes:* )
15214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15226     ( cat <<\_ASBOX
15227 ## ------------------------------------ ##
15228 ## Report this to http://llvm.org/bugs/ ##
15229 ## ------------------------------------ ##
15230 _ASBOX
15231      ) | sed "s/^/$as_me: WARNING:     /" >&2
15232     ;;
15233 esac
15234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   eval "$as_ac_Header=\$ac_header_preproc"
15240 fi
15241 ac_res=`eval echo '${'$as_ac_Header'}'`
15242                { echo "$as_me:$LINENO: result: $ac_res" >&5
15243 echo "${ECHO_T}$ac_res" >&6; }
15244
15245 fi
15246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15247   cat >>confdefs.h <<_ACEOF
15248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15249 _ACEOF
15250
15251 fi
15252
15253 done
15254
15255
15256 for ac_header in valgrind/valgrind.h
15257 do
15258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 fi
15265 ac_res=`eval echo '${'$as_ac_Header'}'`
15266                { echo "$as_me:$LINENO: result: $ac_res" >&5
15267 echo "${ECHO_T}$ac_res" >&6; }
15268 else
15269   # Is the header compilable?
15270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 $ac_includes_default
15279 #include <$ac_header>
15280 _ACEOF
15281 rm -f conftest.$ac_objext
15282 if { (ac_try="$ac_compile"
15283 case "(($ac_try" in
15284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15285   *) ac_try_echo=$ac_try;;
15286 esac
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288   (eval "$ac_compile") 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15296   { (case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_try") 2>&5
15302   ac_status=$?
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); }; } &&
15305          { ac_try='test -s conftest.$ac_objext'
15306   { (case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_try") 2>&5
15312   ac_status=$?
15313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314   (exit $ac_status); }; }; then
15315   ac_header_compiler=yes
15316 else
15317   echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319
15320         ac_header_compiler=no
15321 fi
15322
15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15325 echo "${ECHO_T}$ac_header_compiler" >&6; }
15326
15327 # Is the header present?
15328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 #include <$ac_header>
15337 _ACEOF
15338 if { (ac_try="$ac_cpp conftest.$ac_ext"
15339 case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15345   ac_status=$?
15346   grep -v '^ *+' conftest.er1 >conftest.err
15347   rm -f conftest.er1
15348   cat conftest.err >&5
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); } >/dev/null; then
15351   if test -s conftest.err; then
15352     ac_cpp_err=$ac_c_preproc_warn_flag
15353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15354   else
15355     ac_cpp_err=
15356   fi
15357 else
15358   ac_cpp_err=yes
15359 fi
15360 if test -z "$ac_cpp_err"; then
15361   ac_header_preproc=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366   ac_header_preproc=no
15367 fi
15368
15369 rm -f conftest.err conftest.$ac_ext
15370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15371 echo "${ECHO_T}$ac_header_preproc" >&6; }
15372
15373 # So?  What about this header?
15374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15375   yes:no: )
15376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15380     ac_header_preproc=yes
15381     ;;
15382   no:yes:* )
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15395     ( cat <<\_ASBOX
15396 ## ------------------------------------ ##
15397 ## Report this to http://llvm.org/bugs/ ##
15398 ## ------------------------------------ ##
15399 _ASBOX
15400      ) | sed "s/^/$as_me: WARNING:     /" >&2
15401     ;;
15402 esac
15403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406   echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408   eval "$as_ac_Header=\$ac_header_preproc"
15409 fi
15410 ac_res=`eval echo '${'$as_ac_Header'}'`
15411                { echo "$as_me:$LINENO: result: $ac_res" >&5
15412 echo "${ECHO_T}$ac_res" >&6; }
15413
15414 fi
15415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15416   cat >>confdefs.h <<_ACEOF
15417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 _ACEOF
15419
15420 fi
15421
15422 done
15423
15424
15425 for ac_header in fenv.h
15426 do
15427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15432   echo $ECHO_N "(cached) $ECHO_C" >&6
15433 fi
15434 ac_res=`eval echo '${'$as_ac_Header'}'`
15435                { echo "$as_me:$LINENO: result: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15437 else
15438   # Is the header compilable?
15439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 $ac_includes_default
15448 #include <$ac_header>
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (ac_try="$ac_compile"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_compile") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15465   { (case "(($ac_try" in
15466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467   *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470   (eval "$ac_try") 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; } &&
15474          { ac_try='test -s conftest.$ac_objext'
15475   { (case "(($ac_try" in
15476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477   *) ac_try_echo=$ac_try;;
15478 esac
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480   (eval "$ac_try") 2>&5
15481   ac_status=$?
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); }; }; then
15484   ac_header_compiler=yes
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489         ac_header_compiler=no
15490 fi
15491
15492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15494 echo "${ECHO_T}$ac_header_compiler" >&6; }
15495
15496 # Is the header present?
15497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505 #include <$ac_header>
15506 _ACEOF
15507 if { (ac_try="$ac_cpp conftest.$ac_ext"
15508 case "(($ac_try" in
15509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510   *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } >/dev/null; then
15520   if test -s conftest.err; then
15521     ac_cpp_err=$ac_c_preproc_warn_flag
15522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15523   else
15524     ac_cpp_err=
15525   fi
15526 else
15527   ac_cpp_err=yes
15528 fi
15529 if test -z "$ac_cpp_err"; then
15530   ac_header_preproc=yes
15531 else
15532   echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535   ac_header_preproc=no
15536 fi
15537
15538 rm -f conftest.err conftest.$ac_ext
15539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15540 echo "${ECHO_T}$ac_header_preproc" >&6; }
15541
15542 # So?  What about this header?
15543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15544   yes:no: )
15545     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15549     ac_header_preproc=yes
15550     ;;
15551   no:yes:* )
15552     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15555 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15559 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15564     ( cat <<\_ASBOX
15565 ## ------------------------------------ ##
15566 ## Report this to http://llvm.org/bugs/ ##
15567 ## ------------------------------------ ##
15568 _ASBOX
15569      ) | sed "s/^/$as_me: WARNING:     /" >&2
15570     ;;
15571 esac
15572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15575   echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577   eval "$as_ac_Header=\$ac_header_preproc"
15578 fi
15579 ac_res=`eval echo '${'$as_ac_Header'}'`
15580                { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15582
15583 fi
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587 _ACEOF
15588
15589 fi
15590
15591 done
15592
15593 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15594
15595 for ac_header in pthread.h
15596 do
15597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15599   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602   echo $ECHO_N "(cached) $ECHO_C" >&6
15603 fi
15604 ac_res=`eval echo '${'$as_ac_Header'}'`
15605                { echo "$as_me:$LINENO: result: $ac_res" >&5
15606 echo "${ECHO_T}$ac_res" >&6; }
15607 else
15608   # Is the header compilable?
15609 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15611 cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617 $ac_includes_default
15618 #include <$ac_header>
15619 _ACEOF
15620 rm -f conftest.$ac_objext
15621 if { (ac_try="$ac_compile"
15622 case "(($ac_try" in
15623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624   *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627   (eval "$ac_compile") 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15635   { (case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_try") 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; } &&
15644          { ac_try='test -s conftest.$ac_objext'
15645   { (case "(($ac_try" in
15646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647   *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650   (eval "$ac_try") 2>&5
15651   ac_status=$?
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654   ac_header_compiler=yes
15655 else
15656   echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659         ac_header_compiler=no
15660 fi
15661
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15664 echo "${ECHO_T}$ac_header_compiler" >&6; }
15665
15666 # Is the header present?
15667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h.  */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h.  */
15675 #include <$ac_header>
15676 _ACEOF
15677 if { (ac_try="$ac_cpp conftest.$ac_ext"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } >/dev/null; then
15690   if test -s conftest.err; then
15691     ac_cpp_err=$ac_c_preproc_warn_flag
15692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15693   else
15694     ac_cpp_err=
15695   fi
15696 else
15697   ac_cpp_err=yes
15698 fi
15699 if test -z "$ac_cpp_err"; then
15700   ac_header_preproc=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705   ac_header_preproc=no
15706 fi
15707
15708 rm -f conftest.err conftest.$ac_ext
15709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15710 echo "${ECHO_T}$ac_header_preproc" >&6; }
15711
15712 # So?  What about this header?
15713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714   yes:no: )
15715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15719     ac_header_preproc=yes
15720     ;;
15721   no:yes:* )
15722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15734     ( cat <<\_ASBOX
15735 ## ------------------------------------ ##
15736 ## Report this to http://llvm.org/bugs/ ##
15737 ## ------------------------------------ ##
15738 _ASBOX
15739      ) | sed "s/^/$as_me: WARNING:     /" >&2
15740     ;;
15741 esac
15742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745   echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747   eval "$as_ac_Header=\$ac_header_preproc"
15748 fi
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750                { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15752
15753 fi
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755   cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757 _ACEOF
15758  HAVE_PTHREAD=1
15759
15760 else
15761   HAVE_PTHREAD=0
15762
15763 fi
15764
15765 done
15766
15767 else
15768   HAVE_PTHREAD=0
15769
15770 fi
15771
15772 if test "$llvm_cv_enable_libffi" = "yes" ; then
15773
15774
15775 for ac_header in ffi.h ffi/ffi.h
15776 do
15777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15779   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15782   echo $ECHO_N "(cached) $ECHO_C" >&6
15783 fi
15784 ac_res=`eval echo '${'$as_ac_Header'}'`
15785                { echo "$as_me:$LINENO: result: $ac_res" >&5
15786 echo "${ECHO_T}$ac_res" >&6; }
15787 else
15788   # Is the header compilable?
15789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 $ac_includes_default
15798 #include <$ac_header>
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (ac_try="$ac_compile"
15802 case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_compile") 2>conftest.er1
15808   ac_status=$?
15809   grep -v '^ *+' conftest.er1 >conftest.err
15810   rm -f conftest.er1
15811   cat conftest.err >&5
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); } &&
15814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15815   { (case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_try") 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; } &&
15824          { ac_try='test -s conftest.$ac_objext'
15825   { (case "(($ac_try" in
15826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827   *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830   (eval "$ac_try") 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; }; then
15834   ac_header_compiler=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         ac_header_compiler=no
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15844 echo "${ECHO_T}$ac_header_compiler" >&6; }
15845
15846 # Is the header present?
15847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855 #include <$ac_header>
15856 _ACEOF
15857 if { (ac_try="$ac_cpp conftest.$ac_ext"
15858 case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } >/dev/null; then
15870   if test -s conftest.err; then
15871     ac_cpp_err=$ac_c_preproc_warn_flag
15872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15873   else
15874     ac_cpp_err=
15875   fi
15876 else
15877   ac_cpp_err=yes
15878 fi
15879 if test -z "$ac_cpp_err"; then
15880   ac_header_preproc=yes
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885   ac_header_preproc=no
15886 fi
15887
15888 rm -f conftest.err conftest.$ac_ext
15889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15890 echo "${ECHO_T}$ac_header_preproc" >&6; }
15891
15892 # So?  What about this header?
15893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15894   yes:no: )
15895     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15899     ac_header_preproc=yes
15900     ;;
15901   no:yes:* )
15902     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15905 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15906     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15908     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15909 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15914     ( cat <<\_ASBOX
15915 ## ------------------------------------ ##
15916 ## Report this to http://llvm.org/bugs/ ##
15917 ## ------------------------------------ ##
15918 _ASBOX
15919      ) | sed "s/^/$as_me: WARNING:     /" >&2
15920     ;;
15921 esac
15922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925   echo $ECHO_N "(cached) $ECHO_C" >&6
15926 else
15927   eval "$as_ac_Header=\$ac_header_preproc"
15928 fi
15929 ac_res=`eval echo '${'$as_ac_Header'}'`
15930                { echo "$as_me:$LINENO: result: $ac_res" >&5
15931 echo "${ECHO_T}$ac_res" >&6; }
15932
15933 fi
15934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15935   cat >>confdefs.h <<_ACEOF
15936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15937 _ACEOF
15938
15939 fi
15940
15941 done
15942
15943 fi
15944
15945
15946 for ac_header in CrashReporterClient.h
15947 do
15948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 fi
15955 ac_res=`eval echo '${'$as_ac_Header'}'`
15956                { echo "$as_me:$LINENO: result: $ac_res" >&5
15957 echo "${ECHO_T}$ac_res" >&6; }
15958 else
15959   # Is the header compilable?
15960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 $ac_includes_default
15969 #include <$ac_header>
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978   (eval "$ac_compile") 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15986   { (case "(($ac_try" in
15987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988   *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991   (eval "$ac_try") 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; } &&
15995          { ac_try='test -s conftest.$ac_objext'
15996   { (case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_try") 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; }; then
16005   ac_header_compiler=yes
16006 else
16007   echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010         ac_header_compiler=no
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16015 echo "${ECHO_T}$ac_header_compiler" >&6; }
16016
16017 # Is the header present?
16018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16020 cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h.  */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h.  */
16026 #include <$ac_header>
16027 _ACEOF
16028 if { (ac_try="$ac_cpp conftest.$ac_ext"
16029 case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16035   ac_status=$?
16036   grep -v '^ *+' conftest.er1 >conftest.err
16037   rm -f conftest.er1
16038   cat conftest.err >&5
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); } >/dev/null; then
16041   if test -s conftest.err; then
16042     ac_cpp_err=$ac_c_preproc_warn_flag
16043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16044   else
16045     ac_cpp_err=
16046   fi
16047 else
16048   ac_cpp_err=yes
16049 fi
16050 if test -z "$ac_cpp_err"; then
16051   ac_header_preproc=yes
16052 else
16053   echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056   ac_header_preproc=no
16057 fi
16058
16059 rm -f conftest.err conftest.$ac_ext
16060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16061 echo "${ECHO_T}$ac_header_preproc" >&6; }
16062
16063 # So?  What about this header?
16064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16065   yes:no: )
16066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16070     ac_header_preproc=yes
16071     ;;
16072   no:yes:* )
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16085     ( cat <<\_ASBOX
16086 ## ------------------------------------ ##
16087 ## Report this to http://llvm.org/bugs/ ##
16088 ## ------------------------------------ ##
16089 _ASBOX
16090      ) | sed "s/^/$as_me: WARNING:     /" >&2
16091     ;;
16092 esac
16093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16096   echo $ECHO_N "(cached) $ECHO_C" >&6
16097 else
16098   eval "$as_ac_Header=\$ac_header_preproc"
16099 fi
16100 ac_res=`eval echo '${'$as_ac_Header'}'`
16101                { echo "$as_me:$LINENO: result: $ac_res" >&5
16102 echo "${ECHO_T}$ac_res" >&6; }
16103
16104 fi
16105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16106   cat >>confdefs.h <<_ACEOF
16107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108 _ACEOF
16109
16110 fi
16111
16112 done
16113
16114
16115 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16116 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123 extern const char *__crashreporter_info__;
16124       int main() {
16125         __crashreporter_info__ = "test";
16126         return 0;
16127       }
16128
16129 _ACEOF
16130 rm -f conftest.$ac_objext conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_link") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16145   { (case "(($ac_try" in
16146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147   *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150   (eval "$ac_try") 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; } &&
16154          { ac_try='test -s conftest$ac_exeext'
16155   { (case "(($ac_try" in
16156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16157   *) ac_try_echo=$ac_try;;
16158 esac
16159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16160   (eval "$ac_try") 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; }; then
16164   { echo "$as_me:$LINENO: result: yes" >&5
16165 echo "${ECHO_T}yes" >&6; }
16166
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE_CRASHREPORTER_INFO 1
16169 _ACEOF
16170
16171 else
16172   echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175         { echo "$as_me:$LINENO: result: no" >&5
16176 echo "${ECHO_T}no" >&6; }
16177
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_CRASHREPORTER_INFO 0
16180 _ACEOF
16181
16182 fi
16183
16184 rm -f core conftest.err conftest.$ac_objext \
16185       conftest$ac_exeext conftest.$ac_ext
16186
16187
16188
16189
16190   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16191 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16192 if test "${ac_cv_huge_val_sanity+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195
16196     ac_ext=cpp
16197 ac_cpp='$CXXCPP $CPPFLAGS'
16198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16201
16202     ac_save_CXXFLAGS=$CXXFLAGS
16203     CXXFLAGS="$CXXFLAGS -pedantic"
16204     if test "$cross_compiling" = yes; then
16205   ac_cv_huge_val_sanity=yes
16206 else
16207   cat >conftest.$ac_ext <<_ACEOF
16208 /* confdefs.h.  */
16209 _ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h.  */
16213 #include <math.h>
16214 int
16215 main ()
16216 {
16217 double x = HUGE_VAL; return x != x;
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 rm -f conftest$ac_exeext
16223 if { (ac_try="$ac_link"
16224 case "(($ac_try" in
16225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226   *) ac_try_echo=$ac_try;;
16227 esac
16228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229   (eval "$ac_link") 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16233   { (case "(($ac_try" in
16234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235   *) ac_try_echo=$ac_try;;
16236 esac
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238   (eval "$ac_try") 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; }; then
16242   ac_cv_huge_val_sanity=yes
16243 else
16244   echo "$as_me: program exited with status $ac_status" >&5
16245 echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 ( exit $ac_status )
16249 ac_cv_huge_val_sanity=no
16250 fi
16251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16252 fi
16253
16254
16255     CXXFLAGS=$ac_save_CXXFLAGS
16256     ac_ext=c
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261
16262
16263 fi
16264 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16265 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16266   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16267
16268
16269 { echo "$as_me:$LINENO: checking for pid_t" >&5
16270 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16271 if test "${ac_cv_type_pid_t+set}" = set; then
16272   echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274   cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 typedef pid_t ac__type_new_;
16282 int
16283 main ()
16284 {
16285 if ((ac__type_new_ *) 0)
16286   return 0;
16287 if (sizeof (ac__type_new_))
16288   return 0;
16289   ;
16290   return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext
16294 if { (ac_try="$ac_compile"
16295 case "(($ac_try" in
16296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297   *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300   (eval "$ac_compile") 2>conftest.er1
16301   ac_status=$?
16302   grep -v '^ *+' conftest.er1 >conftest.err
16303   rm -f conftest.er1
16304   cat conftest.err >&5
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); } &&
16307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308   { (case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_try") 2>&5
16314   ac_status=$?
16315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316   (exit $ac_status); }; } &&
16317          { ac_try='test -s conftest.$ac_objext'
16318   { (case "(($ac_try" in
16319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320   *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323   (eval "$ac_try") 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; }; then
16327   ac_cv_type_pid_t=yes
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332         ac_cv_type_pid_t=no
16333 fi
16334
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 fi
16337 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16338 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16339 if test $ac_cv_type_pid_t = yes; then
16340   :
16341 else
16342
16343 cat >>confdefs.h <<_ACEOF
16344 #define pid_t int
16345 _ACEOF
16346
16347 fi
16348
16349 { echo "$as_me:$LINENO: checking for size_t" >&5
16350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16351 if test "${ac_cv_type_size_t+set}" = set; then
16352   echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354   cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h.  */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h.  */
16360 $ac_includes_default
16361 typedef size_t ac__type_new_;
16362 int
16363 main ()
16364 {
16365 if ((ac__type_new_ *) 0)
16366   return 0;
16367 if (sizeof (ac__type_new_))
16368   return 0;
16369   ;
16370   return 0;
16371 }
16372 _ACEOF
16373 rm -f conftest.$ac_objext
16374 if { (ac_try="$ac_compile"
16375 case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } &&
16387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16388   { (case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393   (eval "$ac_try") 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_try") 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407   ac_cv_type_size_t=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16411
16412         ac_cv_type_size_t=no
16413 fi
16414
16415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16416 fi
16417 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16418 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16419 if test $ac_cv_type_size_t = yes; then
16420   :
16421 else
16422
16423 cat >>confdefs.h <<_ACEOF
16424 #define size_t unsigned int
16425 _ACEOF
16426
16427 fi
16428
16429
16430 cat >>confdefs.h <<_ACEOF
16431 #define RETSIGTYPE void
16432 _ACEOF
16433
16434 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16436 if test "${ac_cv_struct_tm+set}" = set; then
16437   echo $ECHO_N "(cached) $ECHO_C" >&6
16438 else
16439   cat >conftest.$ac_ext <<_ACEOF
16440 /* confdefs.h.  */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h.  */
16445 #include <sys/types.h>
16446 #include <time.h>
16447
16448 int
16449 main ()
16450 {
16451 struct tm *tp; tp->tm_sec;
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_compile") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } &&
16470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471   { (case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_try") 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest.$ac_objext'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   ac_cv_struct_tm=time.h
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495         ac_cv_struct_tm=sys/time.h
16496 fi
16497
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499 fi
16500 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16501 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16502 if test $ac_cv_struct_tm = sys/time.h; then
16503
16504 cat >>confdefs.h <<\_ACEOF
16505 #define TM_IN_SYS_TIME 1
16506 _ACEOF
16507
16508 fi
16509
16510 { echo "$as_me:$LINENO: checking for int64_t" >&5
16511 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16512 if test "${ac_cv_type_int64_t+set}" = set; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 $ac_includes_default
16522 typedef int64_t ac__type_new_;
16523 int
16524 main ()
16525 {
16526 if ((ac__type_new_ *) 0)
16527   return 0;
16528 if (sizeof (ac__type_new_))
16529   return 0;
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_compile") 2>conftest.er1
16542   ac_status=$?
16543   grep -v '^ *+' conftest.er1 >conftest.err
16544   rm -f conftest.er1
16545   cat conftest.err >&5
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16549   { (case "(($ac_try" in
16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551   *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554   (eval "$ac_try") 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; } &&
16558          { ac_try='test -s conftest.$ac_objext'
16559   { (case "(($ac_try" in
16560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561   *) ac_try_echo=$ac_try;;
16562 esac
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564   (eval "$ac_try") 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; }; then
16568   ac_cv_type_int64_t=yes
16569 else
16570   echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16572
16573         ac_cv_type_int64_t=no
16574 fi
16575
16576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16577 fi
16578 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16579 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16580 if test $ac_cv_type_int64_t = yes; then
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define HAVE_INT64_T 1
16584 _ACEOF
16585
16586
16587 else
16588   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16589 echo "$as_me: error: Type int64_t required but not found" >&2;}
16590    { (exit 1); exit 1; }; }
16591 fi
16592
16593 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16594 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16595 if test "${ac_cv_type_uint64_t+set}" = set; then
16596   echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598   cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604 $ac_includes_default
16605 typedef uint64_t ac__type_new_;
16606 int
16607 main ()
16608 {
16609 if ((ac__type_new_ *) 0)
16610   return 0;
16611 if (sizeof (ac__type_new_))
16612   return 0;
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext
16618 if { (ac_try="$ac_compile"
16619 case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_compile") 2>conftest.er1
16625   ac_status=$?
16626   grep -v '^ *+' conftest.er1 >conftest.err
16627   rm -f conftest.er1
16628   cat conftest.err >&5
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } &&
16631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632   { (case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_try") 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; } &&
16641          { ac_try='test -s conftest.$ac_objext'
16642   { (case "(($ac_try" in
16643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644   *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647   (eval "$ac_try") 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; }; then
16651   ac_cv_type_uint64_t=yes
16652 else
16653   echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         ac_cv_type_uint64_t=no
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16662 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16663 if test $ac_cv_type_uint64_t = yes; then
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_UINT64_T 1
16667 _ACEOF
16668
16669
16670 else
16671   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16672 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16673 if test "${ac_cv_type_u_int64_t+set}" = set; then
16674   echo $ECHO_N "(cached) $ECHO_C" >&6
16675 else
16676   cat >conftest.$ac_ext <<_ACEOF
16677 /* confdefs.h.  */
16678 _ACEOF
16679 cat confdefs.h >>conftest.$ac_ext
16680 cat >>conftest.$ac_ext <<_ACEOF
16681 /* end confdefs.h.  */
16682 $ac_includes_default
16683 typedef u_int64_t ac__type_new_;
16684 int
16685 main ()
16686 {
16687 if ((ac__type_new_ *) 0)
16688   return 0;
16689 if (sizeof (ac__type_new_))
16690   return 0;
16691   ;
16692   return 0;
16693 }
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_compile") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_cv_type_u_int64_t=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_cv_type_u_int64_t=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16740 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16741 if test $ac_cv_type_u_int64_t = yes; then
16742
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_U_INT64_T 1
16745 _ACEOF
16746
16747
16748 else
16749   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16750 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16751    { (exit 1); exit 1; }; }
16752 fi
16753
16754 fi
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16766 do
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16781 #define $ac_func innocuous_$ac_func
16782
16783 /* System header to define __stub macros and hopefully few prototypes,
16784     which can conflict with char $ac_func (); below.
16785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786     <limits.h> exists even on freestanding compilers.  */
16787
16788 #ifdef __STDC__
16789 # include <limits.h>
16790 #else
16791 # include <assert.h>
16792 #endif
16793
16794 #undef $ac_func
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797    Use char because int might match the return type of a GCC
16798    builtin and then its argument prototype would still apply.  */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char $ac_func ();
16803 /* The GNU C library defines this for functions which it implements
16804     to always fail with ENOSYS.  Some functions are actually named
16805     something starting with __ and the normal name is an alias.  */
16806 #if defined __stub_$ac_func || defined __stub___$ac_func
16807 choke me
16808 #endif
16809
16810 int
16811 main ()
16812 {
16813 return $ac_func ();
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_link") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } &&
16832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833   { (case "(($ac_try" in
16834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835   *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838   (eval "$ac_try") 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; } &&
16842          { ac_try='test -s conftest$ac_exeext'
16843   { (case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_try") 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); }; }; then
16852   eval "$as_ac_var=yes"
16853 else
16854   echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857         eval "$as_ac_var=no"
16858 fi
16859
16860 rm -f core conftest.err conftest.$ac_objext \
16861       conftest$ac_exeext conftest.$ac_ext
16862 fi
16863 ac_res=`eval echo '${'$as_ac_var'}'`
16864                { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 if test `eval echo '${'$as_ac_var'}'` = yes; then
16867   cat >>confdefs.h <<_ACEOF
16868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16869 _ACEOF
16870
16871 fi
16872 done
16873
16874
16875
16876
16877
16878 for ac_func in powf fmodf strtof round
16879 do
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884   echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16894 #define $ac_func innocuous_$ac_func
16895
16896 /* System header to define __stub macros and hopefully few prototypes,
16897     which can conflict with char $ac_func (); below.
16898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899     <limits.h> exists even on freestanding compilers.  */
16900
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16906
16907 #undef $ac_func
16908
16909 /* Override any GCC internal prototype to avoid an error.
16910    Use char because int might match the return type of a GCC
16911    builtin and then its argument prototype would still apply.  */
16912 #ifdef __cplusplus
16913 extern "C"
16914 #endif
16915 char $ac_func ();
16916 /* The GNU C library defines this for functions which it implements
16917     to always fail with ENOSYS.  Some functions are actually named
16918     something starting with __ and the normal name is an alias.  */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16920 choke me
16921 #endif
16922
16923 int
16924 main ()
16925 {
16926 return $ac_func ();
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_link") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } &&
16945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946   { (case "(($ac_try" in
16947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948   *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951   (eval "$ac_try") 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest$ac_exeext'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; }; then
16965   eval "$as_ac_var=yes"
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970         eval "$as_ac_var=no"
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext \
16974       conftest$ac_exeext conftest.$ac_ext
16975 fi
16976 ac_res=`eval echo '${'$as_ac_var'}'`
16977                { echo "$as_me:$LINENO: result: $ac_res" >&5
16978 echo "${ECHO_T}$ac_res" >&6; }
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980   cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982 _ACEOF
16983
16984 fi
16985 done
16986
16987
16988
16989
16990
16991
16992 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16993 do
16994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16998   echo $ECHO_N "(cached) $ECHO_C" >&6
16999 else
17000   cat >conftest.$ac_ext <<_ACEOF
17001 /* confdefs.h.  */
17002 _ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h.  */
17006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17008 #define $ac_func innocuous_$ac_func
17009
17010 /* System header to define __stub macros and hopefully few prototypes,
17011     which can conflict with char $ac_func (); below.
17012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17013     <limits.h> exists even on freestanding compilers.  */
17014
17015 #ifdef __STDC__
17016 # include <limits.h>
17017 #else
17018 # include <assert.h>
17019 #endif
17020
17021 #undef $ac_func
17022
17023 /* Override any GCC internal prototype to avoid an error.
17024    Use char because int might match the return type of a GCC
17025    builtin and then its argument prototype would still apply.  */
17026 #ifdef __cplusplus
17027 extern "C"
17028 #endif
17029 char $ac_func ();
17030 /* The GNU C library defines this for functions which it implements
17031     to always fail with ENOSYS.  Some functions are actually named
17032     something starting with __ and the normal name is an alias.  */
17033 #if defined __stub_$ac_func || defined __stub___$ac_func
17034 choke me
17035 #endif
17036
17037 int
17038 main ()
17039 {
17040 return $ac_func ();
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052   (eval "$ac_link") 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; } &&
17069          { ac_try='test -s conftest$ac_exeext'
17070   { (case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_try") 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; }; then
17079   eval "$as_ac_var=yes"
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084         eval "$as_ac_var=no"
17085 fi
17086
17087 rm -f core conftest.err conftest.$ac_objext \
17088       conftest$ac_exeext conftest.$ac_ext
17089 fi
17090 ac_res=`eval echo '${'$as_ac_var'}'`
17091                { echo "$as_me:$LINENO: result: $ac_res" >&5
17092 echo "${ECHO_T}$ac_res" >&6; }
17093 if test `eval echo '${'$as_ac_var'}'` = yes; then
17094   cat >>confdefs.h <<_ACEOF
17095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17096 _ACEOF
17097
17098 fi
17099 done
17100
17101
17102
17103
17104 for ac_func in isatty mkdtemp mkstemp
17105 do
17106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17120 #define $ac_func innocuous_$ac_func
17121
17122 /* System header to define __stub macros and hopefully few prototypes,
17123     which can conflict with char $ac_func (); below.
17124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125     <limits.h> exists even on freestanding compilers.  */
17126
17127 #ifdef __STDC__
17128 # include <limits.h>
17129 #else
17130 # include <assert.h>
17131 #endif
17132
17133 #undef $ac_func
17134
17135 /* Override any GCC internal prototype to avoid an error.
17136    Use char because int might match the return type of a GCC
17137    builtin and then its argument prototype would still apply.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char $ac_func ();
17142 /* The GNU C library defines this for functions which it implements
17143     to always fail with ENOSYS.  Some functions are actually named
17144     something starting with __ and the normal name is an alias.  */
17145 #if defined __stub_$ac_func || defined __stub___$ac_func
17146 choke me
17147 #endif
17148
17149 int
17150 main ()
17151 {
17152 return $ac_func ();
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_link") 2>conftest.er1
17165   ac_status=$?
17166   grep -v '^ *+' conftest.er1 >conftest.err
17167   rm -f conftest.er1
17168   cat conftest.err >&5
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); } &&
17171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172   { (case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_try") 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; } &&
17181          { ac_try='test -s conftest$ac_exeext'
17182   { (case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_try") 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; }; then
17191   eval "$as_ac_var=yes"
17192 else
17193   echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196         eval "$as_ac_var=no"
17197 fi
17198
17199 rm -f core conftest.err conftest.$ac_objext \
17200       conftest$ac_exeext conftest.$ac_ext
17201 fi
17202 ac_res=`eval echo '${'$as_ac_var'}'`
17203                { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 if test `eval echo '${'$as_ac_var'}'` = yes; then
17206   cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17208 _ACEOF
17209
17210 fi
17211 done
17212
17213
17214
17215
17216
17217
17218
17219
17220 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17221 do
17222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h.  */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h.  */
17234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17236 #define $ac_func innocuous_$ac_func
17237
17238 /* System header to define __stub macros and hopefully few prototypes,
17239     which can conflict with char $ac_func (); below.
17240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17241     <limits.h> exists even on freestanding compilers.  */
17242
17243 #ifdef __STDC__
17244 # include <limits.h>
17245 #else
17246 # include <assert.h>
17247 #endif
17248
17249 #undef $ac_func
17250
17251 /* Override any GCC internal prototype to avoid an error.
17252    Use char because int might match the return type of a GCC
17253    builtin and then its argument prototype would still apply.  */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char $ac_func ();
17258 /* The GNU C library defines this for functions which it implements
17259     to always fail with ENOSYS.  Some functions are actually named
17260     something starting with __ and the normal name is an alias.  */
17261 #if defined __stub_$ac_func || defined __stub___$ac_func
17262 choke me
17263 #endif
17264
17265 int
17266 main ()
17267 {
17268 return $ac_func ();
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (ac_try="$ac_link"
17275 case "(($ac_try" in
17276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277   *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280   (eval "$ac_link") 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } &&
17287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17288   { (case "(($ac_try" in
17289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290   *) ac_try_echo=$ac_try;;
17291 esac
17292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293   (eval "$ac_try") 2>&5
17294   ac_status=$?
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); }; } &&
17297          { ac_try='test -s conftest$ac_exeext'
17298   { (case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_try") 2>&5
17304   ac_status=$?
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); }; }; then
17307   eval "$as_ac_var=yes"
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312         eval "$as_ac_var=no"
17313 fi
17314
17315 rm -f core conftest.err conftest.$ac_objext \
17316       conftest$ac_exeext conftest.$ac_ext
17317 fi
17318 ac_res=`eval echo '${'$as_ac_var'}'`
17319                { echo "$as_me:$LINENO: result: $ac_res" >&5
17320 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_var'}'` = yes; then
17322   cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17324 _ACEOF
17325
17326 fi
17327 done
17328
17329
17330
17331
17332
17333 for ac_func in strerror strerror_r setenv arc4random
17334 do
17335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341   cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17349 #define $ac_func innocuous_$ac_func
17350
17351 /* System header to define __stub macros and hopefully few prototypes,
17352     which can conflict with char $ac_func (); below.
17353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17354     <limits.h> exists even on freestanding compilers.  */
17355
17356 #ifdef __STDC__
17357 # include <limits.h>
17358 #else
17359 # include <assert.h>
17360 #endif
17361
17362 #undef $ac_func
17363
17364 /* Override any GCC internal prototype to avoid an error.
17365    Use char because int might match the return type of a GCC
17366    builtin and then its argument prototype would still apply.  */
17367 #ifdef __cplusplus
17368 extern "C"
17369 #endif
17370 char $ac_func ();
17371 /* The GNU C library defines this for functions which it implements
17372     to always fail with ENOSYS.  Some functions are actually named
17373     something starting with __ and the normal name is an alias.  */
17374 #if defined __stub_$ac_func || defined __stub___$ac_func
17375 choke me
17376 #endif
17377
17378 int
17379 main ()
17380 {
17381 return $ac_func ();
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (ac_try="$ac_link"
17388 case "(($ac_try" in
17389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390   *) ac_try_echo=$ac_try;;
17391 esac
17392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393   (eval "$ac_link") 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } &&
17400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17401   { (case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406   (eval "$ac_try") 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; } &&
17410          { ac_try='test -s conftest$ac_exeext'
17411   { (case "(($ac_try" in
17412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413   *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416   (eval "$ac_try") 2>&5
17417   ac_status=$?
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); }; }; then
17420   eval "$as_ac_var=yes"
17421 else
17422   echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425         eval "$as_ac_var=no"
17426 fi
17427
17428 rm -f core conftest.err conftest.$ac_objext \
17429       conftest$ac_exeext conftest.$ac_ext
17430 fi
17431 ac_res=`eval echo '${'$as_ac_var'}'`
17432                { echo "$as_me:$LINENO: result: $ac_res" >&5
17433 echo "${ECHO_T}$ac_res" >&6; }
17434 if test `eval echo '${'$as_ac_var'}'` = yes; then
17435   cat >>confdefs.h <<_ACEOF
17436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17437 _ACEOF
17438
17439 fi
17440 done
17441
17442
17443
17444
17445
17446 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17447 do
17448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17462 #define $ac_func innocuous_$ac_func
17463
17464 /* System header to define __stub macros and hopefully few prototypes,
17465     which can conflict with char $ac_func (); below.
17466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17467     <limits.h> exists even on freestanding compilers.  */
17468
17469 #ifdef __STDC__
17470 # include <limits.h>
17471 #else
17472 # include <assert.h>
17473 #endif
17474
17475 #undef $ac_func
17476
17477 /* Override any GCC internal prototype to avoid an error.
17478    Use char because int might match the return type of a GCC
17479    builtin and then its argument prototype would still apply.  */
17480 #ifdef __cplusplus
17481 extern "C"
17482 #endif
17483 char $ac_func ();
17484 /* The GNU C library defines this for functions which it implements
17485     to always fail with ENOSYS.  Some functions are actually named
17486     something starting with __ and the normal name is an alias.  */
17487 #if defined __stub_$ac_func || defined __stub___$ac_func
17488 choke me
17489 #endif
17490
17491 int
17492 main ()
17493 {
17494 return $ac_func ();
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (ac_try="$ac_link"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_link") 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } &&
17513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514   { (case "(($ac_try" in
17515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516   *) ac_try_echo=$ac_try;;
17517 esac
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519   (eval "$ac_try") 2>&5
17520   ac_status=$?
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); }; } &&
17523          { ac_try='test -s conftest$ac_exeext'
17524   { (case "(($ac_try" in
17525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526   *) ac_try_echo=$ac_try;;
17527 esac
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529   (eval "$ac_try") 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); }; }; then
17533   eval "$as_ac_var=yes"
17534 else
17535   echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17537
17538         eval "$as_ac_var=no"
17539 fi
17540
17541 rm -f core conftest.err conftest.$ac_objext \
17542       conftest$ac_exeext conftest.$ac_ext
17543 fi
17544 ac_res=`eval echo '${'$as_ac_var'}'`
17545                { echo "$as_me:$LINENO: result: $ac_res" >&5
17546 echo "${ECHO_T}$ac_res" >&6; }
17547 if test `eval echo '${'$as_ac_var'}'` = yes; then
17548   cat >>confdefs.h <<_ACEOF
17549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17550 _ACEOF
17551
17552 fi
17553 done
17554
17555
17556
17557
17558
17559
17560 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17561 do
17562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h.  */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h.  */
17574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17576 #define $ac_func innocuous_$ac_func
17577
17578 /* System header to define __stub macros and hopefully few prototypes,
17579     which can conflict with char $ac_func (); below.
17580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17581     <limits.h> exists even on freestanding compilers.  */
17582
17583 #ifdef __STDC__
17584 # include <limits.h>
17585 #else
17586 # include <assert.h>
17587 #endif
17588
17589 #undef $ac_func
17590
17591 /* Override any GCC internal prototype to avoid an error.
17592    Use char because int might match the return type of a GCC
17593    builtin and then its argument prototype would still apply.  */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char $ac_func ();
17598 /* The GNU C library defines this for functions which it implements
17599     to always fail with ENOSYS.  Some functions are actually named
17600     something starting with __ and the normal name is an alias.  */
17601 #if defined __stub_$ac_func || defined __stub___$ac_func
17602 choke me
17603 #endif
17604
17605 int
17606 main ()
17607 {
17608 return $ac_func ();
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_link") 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628   { (case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_try") 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; } &&
17637          { ac_try='test -s conftest$ac_exeext'
17638   { (case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_try") 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   eval "$as_ac_var=yes"
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         eval "$as_ac_var=no"
17653 fi
17654
17655 rm -f core conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657 fi
17658 ac_res=`eval echo '${'$as_ac_var'}'`
17659                { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17662   cat >>confdefs.h <<_ACEOF
17663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 _ACEOF
17665
17666 fi
17667 done
17668
17669 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17670 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17671 if test "${llvm_cv_c_printf_a+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674   ac_ext=c
17675 ac_cpp='$CPP $CPPFLAGS'
17676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17679
17680  if test "$cross_compiling" = yes; then
17681   llvmac_cv_c_printf_a=no
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684
17685   /* confdefs.h.  */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h.  */
17690
17691 #include <stdio.h>
17692 #include <stdlib.h>
17693
17694 int
17695 main ()
17696 {
17697
17698 volatile double A, B;
17699 char Buffer[100];
17700 A = 1;
17701 A /= 10.0;
17702 sprintf(Buffer, "%a", A);
17703 B = atof(Buffer);
17704 if (A != B)
17705   return (1);
17706 if (A != 0x1.999999999999ap-4)
17707   return (1);
17708 return (0);
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_link") 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17724   { (case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_try") 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   llvm_cv_c_printf_a=yes
17734 else
17735   echo "$as_me: program exited with status $ac_status" >&5
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 ( exit $ac_status )
17740 llvmac_cv_c_printf_a=no
17741 fi
17742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17743 fi
17744
17745
17746  ac_ext=c
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17751
17752 fi
17753 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17754 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17755  if test "$llvm_cv_c_printf_a" = "yes"; then
17756
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_PRINTF_A 1
17759 _ACEOF
17760
17761  fi
17762
17763
17764 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17765 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17766 if test "${ac_cv_func_rand48+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   ac_ext=cpp
17770 ac_cpp='$CXXCPP $CPPFLAGS'
17771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17774
17775    cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h.  */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h.  */
17781 #include <stdlib.h>
17782 int
17783 main ()
17784 {
17785 srand48(0);lrand48();drand48();
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_compile") 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; } &&
17814          { ac_try='test -s conftest.$ac_objext'
17815   { (case "(($ac_try" in
17816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817   *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820   (eval "$ac_try") 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_cv_func_rand48=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829         ac_cv_func_rand48=no
17830 fi
17831
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833   ac_ext=c
17834 ac_cpp='$CPP $CPPFLAGS'
17835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17838
17839 fi
17840 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17841 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17842
17843 if test "$ac_cv_func_rand48" = "yes" ; then
17844
17845 cat >>confdefs.h <<\_ACEOF
17846 #define HAVE_RAND48 1
17847 _ACEOF
17848
17849 fi
17850
17851
17852 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17853 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17854 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863 $ac_includes_default
17864 int
17865 main ()
17866 {
17867 #ifndef strerror_s
17868   char *p = (char *) strerror_s;
17869   return !p;
17870 #endif
17871
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (ac_try="$ac_compile"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_compile") 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891   { (case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_try") 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; } &&
17900          { ac_try='test -s conftest.$ac_objext'
17901   { (case "(($ac_try" in
17902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903   *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906   (eval "$ac_try") 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; }; then
17910   ac_cv_have_decl_strerror_s=yes
17911 else
17912   echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17914
17915         ac_cv_have_decl_strerror_s=no
17916 fi
17917
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919 fi
17920 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17921 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17922 if test $ac_cv_have_decl_strerror_s = yes; then
17923
17924 cat >>confdefs.h <<_ACEOF
17925 #define HAVE_DECL_STRERROR_S 1
17926 _ACEOF
17927
17928
17929 else
17930   cat >>confdefs.h <<_ACEOF
17931 #define HAVE_DECL_STRERROR_S 0
17932 _ACEOF
17933
17934
17935 fi
17936
17937
17938
17939 if test "$llvm_cv_os_type" = "MingW" ; then
17940   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17941 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17942 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17943   echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945   ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-lgcc  $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953
17954 /* Override any GCC internal prototype to avoid an error.
17955    Use char because int might match the return type of a GCC
17956    builtin and then its argument prototype would still apply.  */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char _alloca ();
17961 int
17962 main ()
17963 {
17964 return _alloca ();
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_link") 2>conftest.er1
17977   ac_status=$?
17978   grep -v '^ *+' conftest.er1 >conftest.err
17979   rm -f conftest.er1
17980   cat conftest.err >&5
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984   { (case "(($ac_try" in
17985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986   *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989   (eval "$ac_try") 2>&5
17990   ac_status=$?
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); }; } &&
17993          { ac_try='test -s conftest$ac_exeext'
17994   { (case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_try") 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; }; then
18003   ac_cv_lib_gcc__alloca=yes
18004 else
18005   echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008         ac_cv_lib_gcc__alloca=no
18009 fi
18010
18011 rm -f core conftest.err conftest.$ac_objext \
18012       conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18014 fi
18015 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18016 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18017 if test $ac_cv_lib_gcc__alloca = yes; then
18018
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE__ALLOCA 1
18021 _ACEOF
18022
18023 fi
18024
18025   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18026 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18027 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18028   echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030   ac_check_lib_save_LIBS=$LIBS
18031 LIBS="-lgcc  $LIBS"
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038
18039 /* Override any GCC internal prototype to avoid an error.
18040    Use char because int might match the return type of a GCC
18041    builtin and then its argument prototype would still apply.  */
18042 #ifdef __cplusplus
18043 extern "C"
18044 #endif
18045 char __alloca ();
18046 int
18047 main ()
18048 {
18049 return __alloca ();
18050   ;
18051   return 0;
18052 }
18053 _ACEOF
18054 rm -f conftest.$ac_objext conftest$ac_exeext
18055 if { (ac_try="$ac_link"
18056 case "(($ac_try" in
18057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058   *) ac_try_echo=$ac_try;;
18059 esac
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061   (eval "$ac_link") 2>conftest.er1
18062   ac_status=$?
18063   grep -v '^ *+' conftest.er1 >conftest.err
18064   rm -f conftest.er1
18065   cat conftest.err >&5
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } &&
18068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18069   { (case "(($ac_try" in
18070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071   *) ac_try_echo=$ac_try;;
18072 esac
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074   (eval "$ac_try") 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; } &&
18078          { ac_try='test -s conftest$ac_exeext'
18079   { (case "(($ac_try" in
18080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081   *) ac_try_echo=$ac_try;;
18082 esac
18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18084   (eval "$ac_try") 2>&5
18085   ac_status=$?
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); }; }; then
18088   ac_cv_lib_gcc___alloca=yes
18089 else
18090   echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093         ac_cv_lib_gcc___alloca=no
18094 fi
18095
18096 rm -f core conftest.err conftest.$ac_objext \
18097       conftest$ac_exeext conftest.$ac_ext
18098 LIBS=$ac_check_lib_save_LIBS
18099 fi
18100 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18101 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18102 if test $ac_cv_lib_gcc___alloca = yes; then
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE___ALLOCA 1
18106 _ACEOF
18107
18108 fi
18109
18110   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18111 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18112 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18113   echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115   ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lgcc  $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125    Use char because int might match the return type of a GCC
18126    builtin and then its argument prototype would still apply.  */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char __chkstk ();
18131 int
18132 main ()
18133 {
18134 return __chkstk ();
18135   ;
18136   return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143   *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146   (eval "$ac_link") 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154   { (case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_try") 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; } &&
18163          { ac_try='test -s conftest$ac_exeext'
18164   { (case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_try") 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   ac_cv_lib_gcc___chkstk=yes
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178         ac_cv_lib_gcc___chkstk=no
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext \
18182       conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS
18184 fi
18185 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18186 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18187 if test $ac_cv_lib_gcc___chkstk = yes; then
18188
18189 cat >>confdefs.h <<\_ACEOF
18190 #define HAVE___CHKSTK 1
18191 _ACEOF
18192
18193 fi
18194
18195   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18196 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18197 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   ac_check_lib_save_LIBS=$LIBS
18201 LIBS="-lgcc  $LIBS"
18202 cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h.  */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h.  */
18208
18209 /* Override any GCC internal prototype to avoid an error.
18210    Use char because int might match the return type of a GCC
18211    builtin and then its argument prototype would still apply.  */
18212 #ifdef __cplusplus
18213 extern "C"
18214 #endif
18215 char ___chkstk ();
18216 int
18217 main ()
18218 {
18219 return ___chkstk ();
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228   *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231   (eval "$ac_link") 2>conftest.er1
18232   ac_status=$?
18233   grep -v '^ *+' conftest.er1 >conftest.err
18234   rm -f conftest.er1
18235   cat conftest.err >&5
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } &&
18238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18239   { (case "(($ac_try" in
18240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241   *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244   (eval "$ac_try") 2>&5
18245   ac_status=$?
18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247   (exit $ac_status); }; } &&
18248          { ac_try='test -s conftest$ac_exeext'
18249   { (case "(($ac_try" in
18250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251   *) ac_try_echo=$ac_try;;
18252 esac
18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18254   (eval "$ac_try") 2>&5
18255   ac_status=$?
18256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257   (exit $ac_status); }; }; then
18258   ac_cv_lib_gcc____chkstk=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263         ac_cv_lib_gcc____chkstk=no
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext \
18267       conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18269 fi
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18271 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18272 if test $ac_cv_lib_gcc____chkstk = yes; then
18273
18274 cat >>confdefs.h <<\_ACEOF
18275 #define HAVE____CHKSTK 1
18276 _ACEOF
18277
18278 fi
18279
18280
18281   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18282 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18283 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18284   echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286   ac_check_lib_save_LIBS=$LIBS
18287 LIBS="-lgcc  $LIBS"
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294
18295 /* Override any GCC internal prototype to avoid an error.
18296    Use char because int might match the return type of a GCC
18297    builtin and then its argument prototype would still apply.  */
18298 #ifdef __cplusplus
18299 extern "C"
18300 #endif
18301 char __ashldi3 ();
18302 int
18303 main ()
18304 {
18305 return __ashldi3 ();
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 rm -f conftest.$ac_objext conftest$ac_exeext
18311 if { (ac_try="$ac_link"
18312 case "(($ac_try" in
18313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314   *) ac_try_echo=$ac_try;;
18315 esac
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317   (eval "$ac_link") 2>conftest.er1
18318   ac_status=$?
18319   grep -v '^ *+' conftest.er1 >conftest.err
18320   rm -f conftest.er1
18321   cat conftest.err >&5
18322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323   (exit $ac_status); } &&
18324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18325   { (case "(($ac_try" in
18326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327   *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330   (eval "$ac_try") 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; } &&
18334          { ac_try='test -s conftest$ac_exeext'
18335   { (case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_try") 2>&5
18341   ac_status=$?
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); }; }; then
18344   ac_cv_lib_gcc___ashldi3=yes
18345 else
18346   echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349         ac_cv_lib_gcc___ashldi3=no
18350 fi
18351
18352 rm -f core conftest.err conftest.$ac_objext \
18353       conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18355 fi
18356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18357 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18358 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18359
18360 cat >>confdefs.h <<\_ACEOF
18361 #define HAVE___ASHLDI3 1
18362 _ACEOF
18363
18364 fi
18365
18366   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18367 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18368 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18369   echo $ECHO_N "(cached) $ECHO_C" >&6
18370 else
18371   ac_check_lib_save_LIBS=$LIBS
18372 LIBS="-lgcc  $LIBS"
18373 cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379
18380 /* Override any GCC internal prototype to avoid an error.
18381    Use char because int might match the return type of a GCC
18382    builtin and then its argument prototype would still apply.  */
18383 #ifdef __cplusplus
18384 extern "C"
18385 #endif
18386 char __ashrdi3 ();
18387 int
18388 main ()
18389 {
18390 return __ashrdi3 ();
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_link") 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410   { (case "(($ac_try" in
18411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412   *) ac_try_echo=$ac_try;;
18413 esac
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415   (eval "$ac_try") 2>&5
18416   ac_status=$?
18417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418   (exit $ac_status); }; } &&
18419          { ac_try='test -s conftest$ac_exeext'
18420   { (case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_try") 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; }; then
18429   ac_cv_lib_gcc___ashrdi3=yes
18430 else
18431   echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434         ac_cv_lib_gcc___ashrdi3=no
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext \
18438       conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18440 fi
18441 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18442 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18443 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18444
18445 cat >>confdefs.h <<\_ACEOF
18446 #define HAVE___ASHRDI3 1
18447 _ACEOF
18448
18449 fi
18450
18451   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18452 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18453 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456   ac_check_lib_save_LIBS=$LIBS
18457 LIBS="-lgcc  $LIBS"
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h.  */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h.  */
18464
18465 /* Override any GCC internal prototype to avoid an error.
18466    Use char because int might match the return type of a GCC
18467    builtin and then its argument prototype would still apply.  */
18468 #ifdef __cplusplus
18469 extern "C"
18470 #endif
18471 char __divdi3 ();
18472 int
18473 main ()
18474 {
18475 return __divdi3 ();
18476   ;
18477   return 0;
18478 }
18479 _ACEOF
18480 rm -f conftest.$ac_objext conftest$ac_exeext
18481 if { (ac_try="$ac_link"
18482 case "(($ac_try" in
18483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484   *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487   (eval "$ac_link") 2>conftest.er1
18488   ac_status=$?
18489   grep -v '^ *+' conftest.er1 >conftest.err
18490   rm -f conftest.er1
18491   cat conftest.err >&5
18492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493   (exit $ac_status); } &&
18494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18495   { (case "(($ac_try" in
18496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497   *) ac_try_echo=$ac_try;;
18498 esac
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500   (eval "$ac_try") 2>&5
18501   ac_status=$?
18502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503   (exit $ac_status); }; } &&
18504          { ac_try='test -s conftest$ac_exeext'
18505   { (case "(($ac_try" in
18506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507   *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510   (eval "$ac_try") 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); }; }; then
18514   ac_cv_lib_gcc___divdi3=yes
18515 else
18516   echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519         ac_cv_lib_gcc___divdi3=no
18520 fi
18521
18522 rm -f core conftest.err conftest.$ac_objext \
18523       conftest$ac_exeext conftest.$ac_ext
18524 LIBS=$ac_check_lib_save_LIBS
18525 fi
18526 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18527 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18528 if test $ac_cv_lib_gcc___divdi3 = yes; then
18529
18530 cat >>confdefs.h <<\_ACEOF
18531 #define HAVE___DIVDI3 1
18532 _ACEOF
18533
18534 fi
18535
18536   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18537 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18538 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18539   echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541   ac_check_lib_save_LIBS=$LIBS
18542 LIBS="-lgcc  $LIBS"
18543 cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h.  */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h.  */
18549
18550 /* Override any GCC internal prototype to avoid an error.
18551    Use char because int might match the return type of a GCC
18552    builtin and then its argument prototype would still apply.  */
18553 #ifdef __cplusplus
18554 extern "C"
18555 #endif
18556 char __fixdfdi ();
18557 int
18558 main ()
18559 {
18560 return __fixdfdi ();
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_link") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest$ac_exeext'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   ac_cv_lib_gcc___fixdfdi=yes
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         ac_cv_lib_gcc___fixdfdi=no
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18612 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18613 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define HAVE___FIXDFDI 1
18617 _ACEOF
18618
18619 fi
18620
18621   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18622 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18623 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   ac_check_lib_save_LIBS=$LIBS
18627 LIBS="-lgcc  $LIBS"
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h.  */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h.  */
18634
18635 /* Override any GCC internal prototype to avoid an error.
18636    Use char because int might match the return type of a GCC
18637    builtin and then its argument prototype would still apply.  */
18638 #ifdef __cplusplus
18639 extern "C"
18640 #endif
18641 char __fixsfdi ();
18642 int
18643 main ()
18644 {
18645 return __fixsfdi ();
18646   ;
18647   return 0;
18648 }
18649 _ACEOF
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654   *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657   (eval "$ac_link") 2>conftest.er1
18658   ac_status=$?
18659   grep -v '^ *+' conftest.er1 >conftest.err
18660   rm -f conftest.er1
18661   cat conftest.err >&5
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); } &&
18664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18665   { (case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670   (eval "$ac_try") 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; } &&
18674          { ac_try='test -s conftest$ac_exeext'
18675   { (case "(($ac_try" in
18676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677   *) ac_try_echo=$ac_try;;
18678 esac
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680   (eval "$ac_try") 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   ac_cv_lib_gcc___fixsfdi=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689         ac_cv_lib_gcc___fixsfdi=no
18690 fi
18691
18692 rm -f core conftest.err conftest.$ac_objext \
18693       conftest$ac_exeext conftest.$ac_ext
18694 LIBS=$ac_check_lib_save_LIBS
18695 fi
18696 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18697 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18698 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18699
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE___FIXSFDI 1
18702 _ACEOF
18703
18704 fi
18705
18706   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18707 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18708 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18709   echo $ECHO_N "(cached) $ECHO_C" >&6
18710 else
18711   ac_check_lib_save_LIBS=$LIBS
18712 LIBS="-lgcc  $LIBS"
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719
18720 /* Override any GCC internal prototype to avoid an error.
18721    Use char because int might match the return type of a GCC
18722    builtin and then its argument prototype would still apply.  */
18723 #ifdef __cplusplus
18724 extern "C"
18725 #endif
18726 char __floatdidf ();
18727 int
18728 main ()
18729 {
18730 return __floatdidf ();
18731   ;
18732   return 0;
18733 }
18734 _ACEOF
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739   *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742   (eval "$ac_link") 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } &&
18749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750   { (case "(($ac_try" in
18751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752   *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755   (eval "$ac_try") 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; } &&
18759          { ac_try='test -s conftest$ac_exeext'
18760   { (case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_try") 2>&5
18766   ac_status=$?
18767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768   (exit $ac_status); }; }; then
18769   ac_cv_lib_gcc___floatdidf=yes
18770 else
18771   echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774         ac_cv_lib_gcc___floatdidf=no
18775 fi
18776
18777 rm -f core conftest.err conftest.$ac_objext \
18778       conftest$ac_exeext conftest.$ac_ext
18779 LIBS=$ac_check_lib_save_LIBS
18780 fi
18781 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18782 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18783 if test $ac_cv_lib_gcc___floatdidf = yes; then
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define HAVE___FLOATDIDF 1
18787 _ACEOF
18788
18789 fi
18790
18791   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18792 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18793 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   ac_check_lib_save_LIBS=$LIBS
18797 LIBS="-lgcc  $LIBS"
18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h.  */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h.  */
18804
18805 /* Override any GCC internal prototype to avoid an error.
18806    Use char because int might match the return type of a GCC
18807    builtin and then its argument prototype would still apply.  */
18808 #ifdef __cplusplus
18809 extern "C"
18810 #endif
18811 char __lshrdi3 ();
18812 int
18813 main ()
18814 {
18815 return __lshrdi3 ();
18816   ;
18817   return 0;
18818 }
18819 _ACEOF
18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_link") 2>conftest.er1
18828   ac_status=$?
18829   grep -v '^ *+' conftest.er1 >conftest.err
18830   rm -f conftest.er1
18831   cat conftest.err >&5
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); } &&
18834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18835   { (case "(($ac_try" in
18836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837   *) ac_try_echo=$ac_try;;
18838 esac
18839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18840   (eval "$ac_try") 2>&5
18841   ac_status=$?
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); }; } &&
18844          { ac_try='test -s conftest$ac_exeext'
18845   { (case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850   (eval "$ac_try") 2>&5
18851   ac_status=$?
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); }; }; then
18854   ac_cv_lib_gcc___lshrdi3=yes
18855 else
18856   echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18858
18859         ac_cv_lib_gcc___lshrdi3=no
18860 fi
18861
18862 rm -f core conftest.err conftest.$ac_objext \
18863       conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18867 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18868 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18869
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE___LSHRDI3 1
18872 _ACEOF
18873
18874 fi
18875
18876   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18877 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18878 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18879   echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881   ac_check_lib_save_LIBS=$LIBS
18882 LIBS="-lgcc  $LIBS"
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889
18890 /* Override any GCC internal prototype to avoid an error.
18891    Use char because int might match the return type of a GCC
18892    builtin and then its argument prototype would still apply.  */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char __moddi3 ();
18897 int
18898 main ()
18899 {
18900 return __moddi3 ();
18901   ;
18902   return 0;
18903 }
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_link") 2>conftest.er1
18913   ac_status=$?
18914   grep -v '^ *+' conftest.er1 >conftest.err
18915   rm -f conftest.er1
18916   cat conftest.err >&5
18917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918   (exit $ac_status); } &&
18919          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18920   { (case "(($ac_try" in
18921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922   *) ac_try_echo=$ac_try;;
18923 esac
18924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18925   (eval "$ac_try") 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); }; } &&
18929          { ac_try='test -s conftest$ac_exeext'
18930   { (case "(($ac_try" in
18931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932   *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935   (eval "$ac_try") 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   ac_cv_lib_gcc___moddi3=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944         ac_cv_lib_gcc___moddi3=no
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext \
18948       conftest$ac_exeext conftest.$ac_ext
18949 LIBS=$ac_check_lib_save_LIBS
18950 fi
18951 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18952 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18953 if test $ac_cv_lib_gcc___moddi3 = yes; then
18954
18955 cat >>confdefs.h <<\_ACEOF
18956 #define HAVE___MODDI3 1
18957 _ACEOF
18958
18959 fi
18960
18961   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18962 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18963 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lgcc  $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974
18975 /* Override any GCC internal prototype to avoid an error.
18976    Use char because int might match the return type of a GCC
18977    builtin and then its argument prototype would still apply.  */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char __udivdi3 ();
18982 int
18983 main ()
18984 {
18985 return __udivdi3 ();
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994   *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997   (eval "$ac_link") 2>conftest.er1
18998   ac_status=$?
18999   grep -v '^ *+' conftest.er1 >conftest.err
19000   rm -f conftest.er1
19001   cat conftest.err >&5
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); } &&
19004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; } &&
19014          { ac_try='test -s conftest$ac_exeext'
19015   { (case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020   (eval "$ac_try") 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   ac_cv_lib_gcc___udivdi3=yes
19025 else
19026   echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029         ac_cv_lib_gcc___udivdi3=no
19030 fi
19031
19032 rm -f core conftest.err conftest.$ac_objext \
19033       conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19035 fi
19036 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19037 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19038 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19039
19040 cat >>confdefs.h <<\_ACEOF
19041 #define HAVE___UDIVDI3 1
19042 _ACEOF
19043
19044 fi
19045
19046   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19047 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19048 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   ac_check_lib_save_LIBS=$LIBS
19052 LIBS="-lgcc  $LIBS"
19053 cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059
19060 /* Override any GCC internal prototype to avoid an error.
19061    Use char because int might match the return type of a GCC
19062    builtin and then its argument prototype would still apply.  */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char __umoddi3 ();
19067 int
19068 main ()
19069 {
19070 return __umoddi3 ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_link") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } &&
19089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19090   { (case "(($ac_try" in
19091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092   *) ac_try_echo=$ac_try;;
19093 esac
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095   (eval "$ac_try") 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; } &&
19099          { ac_try='test -s conftest$ac_exeext'
19100   { (case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105   (eval "$ac_try") 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   ac_cv_lib_gcc___umoddi3=yes
19110 else
19111   echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114         ac_cv_lib_gcc___umoddi3=no
19115 fi
19116
19117 rm -f core conftest.err conftest.$ac_objext \
19118       conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19120 fi
19121 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19122 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19123 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE___UMODDI3 1
19127 _ACEOF
19128
19129 fi
19130
19131
19132   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19133 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19134 if test "${ac_cv_lib_gcc___main+set}" = set; then
19135   echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137   ac_check_lib_save_LIBS=$LIBS
19138 LIBS="-lgcc  $LIBS"
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145
19146 /* Override any GCC internal prototype to avoid an error.
19147    Use char because int might match the return type of a GCC
19148    builtin and then its argument prototype would still apply.  */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 char __main ();
19153 int
19154 main ()
19155 {
19156 return __main ();
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (ac_try="$ac_link"
19163 case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_link") 2>conftest.er1
19169   ac_status=$?
19170   grep -v '^ *+' conftest.er1 >conftest.err
19171   rm -f conftest.er1
19172   cat conftest.err >&5
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); } &&
19175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176   { (case "(($ac_try" in
19177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178   *) ac_try_echo=$ac_try;;
19179 esac
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181   (eval "$ac_try") 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; } &&
19185          { ac_try='test -s conftest$ac_exeext'
19186   { (case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191   (eval "$ac_try") 2>&5
19192   ac_status=$?
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); }; }; then
19195   ac_cv_lib_gcc___main=yes
19196 else
19197   echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200         ac_cv_lib_gcc___main=no
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext \
19204       conftest$ac_exeext conftest.$ac_ext
19205 LIBS=$ac_check_lib_save_LIBS
19206 fi
19207 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19208 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19209 if test $ac_cv_lib_gcc___main = yes; then
19210
19211 cat >>confdefs.h <<\_ACEOF
19212 #define HAVE___MAIN 1
19213 _ACEOF
19214
19215 fi
19216
19217   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19218 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19219 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19220   echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222   ac_check_lib_save_LIBS=$LIBS
19223 LIBS="-lgcc  $LIBS"
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230
19231 /* Override any GCC internal prototype to avoid an error.
19232    Use char because int might match the return type of a GCC
19233    builtin and then its argument prototype would still apply.  */
19234 #ifdef __cplusplus
19235 extern "C"
19236 #endif
19237 char __cmpdi2 ();
19238 int
19239 main ()
19240 {
19241 return __cmpdi2 ();
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext conftest$ac_exeext
19247 if { (ac_try="$ac_link"
19248 case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253   (eval "$ac_link") 2>conftest.er1
19254   ac_status=$?
19255   grep -v '^ *+' conftest.er1 >conftest.err
19256   rm -f conftest.er1
19257   cat conftest.err >&5
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); } &&
19260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19261   { (case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_try") 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; } &&
19270          { ac_try='test -s conftest$ac_exeext'
19271   { (case "(($ac_try" in
19272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273   *) ac_try_echo=$ac_try;;
19274 esac
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276   (eval "$ac_try") 2>&5
19277   ac_status=$?
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); }; }; then
19280   ac_cv_lib_gcc___cmpdi2=yes
19281 else
19282   echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285         ac_cv_lib_gcc___cmpdi2=no
19286 fi
19287
19288 rm -f core conftest.err conftest.$ac_objext \
19289       conftest$ac_exeext conftest.$ac_ext
19290 LIBS=$ac_check_lib_save_LIBS
19291 fi
19292 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19293 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19294 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19295
19296 cat >>confdefs.h <<\_ACEOF
19297 #define HAVE___CMPDI2 1
19298 _ACEOF
19299
19300 fi
19301
19302 fi
19303
19304 if test "$llvm_cv_os_type" = "MingW" ; then
19305   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19306 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19307   cat >conftest.$ac_ext <<_ACEOF
19308 #include <windows.h>
19309 #include <imagehlp.h>
19310 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19311 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19312 _ACEOF
19313 rm -f conftest.$ac_objext
19314 if { (ac_try="$ac_compile"
19315 case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320   (eval "$ac_compile") 2>conftest.er1
19321   ac_status=$?
19322   grep -v '^ *+' conftest.er1 >conftest.err
19323   rm -f conftest.er1
19324   cat conftest.err >&5
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } &&
19327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_try") 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; } &&
19337          { ac_try='test -s conftest.$ac_objext'
19338   { (case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_try") 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347
19348   { echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6; }
19350   llvm_cv_win32_elmcb_pcstr="PCSTR"
19351
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356
19357   { echo "$as_me:$LINENO: result: no" >&5
19358 echo "${ECHO_T}no" >&6; }
19359   llvm_cv_win32_elmcb_pcstr="PSTR"
19360
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364
19365 cat >>confdefs.h <<_ACEOF
19366 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19367 _ACEOF
19368
19369 fi
19370
19371
19372 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19373 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19374 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19375   echo $ECHO_N "(cached) $ECHO_C" >&6
19376 else
19377   ac_ext=cpp
19378 ac_cpp='$CXXCPP $CPPFLAGS'
19379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383    cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h.  */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h.  */
19389 #include <math.h>
19390 int
19391 main ()
19392 {
19393 float f; isnan(f);
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405   (eval "$ac_compile") 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19413   { (case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418   (eval "$ac_try") 2>&5
19419   ac_status=$?
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); }; } &&
19422          { ac_try='test -s conftest.$ac_objext'
19423   { (case "(($ac_try" in
19424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425   *) ac_try_echo=$ac_try;;
19426 esac
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428   (eval "$ac_try") 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432   ac_cv_func_isnan_in_math_h=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437         ac_cv_func_isnan_in_math_h=no
19438 fi
19439
19440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441   ac_ext=c
19442 ac_cpp='$CPP $CPPFLAGS'
19443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446
19447 fi
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19449 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19450
19451
19452 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19453
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_ISNAN_IN_MATH_H 1
19456 _ACEOF
19457
19458 fi
19459
19460 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19461 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19462 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465   ac_ext=cpp
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19470
19471    cat >conftest.$ac_ext <<_ACEOF
19472 /* confdefs.h.  */
19473 _ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h.  */
19477 #include <cmath>
19478 int
19479 main ()
19480 {
19481 float f; isnan(f);
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490   *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493   (eval "$ac_compile") 2>conftest.er1
19494   ac_status=$?
19495   grep -v '^ *+' conftest.er1 >conftest.err
19496   rm -f conftest.er1
19497   cat conftest.err >&5
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); } &&
19500          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501   { (case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_try") 2>&5
19507   ac_status=$?
19508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509   (exit $ac_status); }; } &&
19510          { ac_try='test -s conftest.$ac_objext'
19511   { (case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516   (eval "$ac_try") 2>&5
19517   ac_status=$?
19518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519   (exit $ac_status); }; }; then
19520   ac_cv_func_isnan_in_cmath=yes
19521 else
19522   echo "$as_me: failed program was:" >&5
19523 sed 's/^/| /' conftest.$ac_ext >&5
19524
19525         ac_cv_func_isnan_in_cmath=no
19526 fi
19527
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19529   ac_ext=c
19530 ac_cpp='$CPP $CPPFLAGS'
19531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19534
19535 fi
19536 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19537 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19538
19539 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_ISNAN_IN_CMATH 1
19543 _ACEOF
19544
19545 fi
19546
19547 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19548 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19549 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19550   echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552   ac_ext=cpp
19553 ac_cpp='$CXXCPP $CPPFLAGS'
19554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19557
19558    cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564 #include <cmath>
19565 int
19566 main ()
19567 {
19568 float f; std::isnan(f);
19569   ;
19570   return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (ac_try="$ac_compile"
19575 case "(($ac_try" in
19576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19577   *) ac_try_echo=$ac_try;;
19578 esac
19579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19580   (eval "$ac_compile") 2>conftest.er1
19581   ac_status=$?
19582   grep -v '^ *+' conftest.er1 >conftest.err
19583   rm -f conftest.er1
19584   cat conftest.err >&5
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); } &&
19587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19588   { (case "(($ac_try" in
19589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590   *) ac_try_echo=$ac_try;;
19591 esac
19592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593   (eval "$ac_try") 2>&5
19594   ac_status=$?
19595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596   (exit $ac_status); }; } &&
19597          { ac_try='test -s conftest.$ac_objext'
19598   { (case "(($ac_try" in
19599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600   *) ac_try_echo=$ac_try;;
19601 esac
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603   (eval "$ac_try") 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; }; then
19607   ac_cv_func_std_isnan_in_cmath=yes
19608 else
19609   echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.$ac_ext >&5
19611
19612         ac_cv_func_std_isnan_in_cmath=no
19613 fi
19614
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616   ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622 fi
19623 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19624 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19625
19626 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_STD_ISNAN_IN_CMATH 1
19630 _ACEOF
19631
19632 fi
19633
19634
19635 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19636 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19637 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19638   echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640   ac_ext=cpp
19641 ac_cpp='$CXXCPP $CPPFLAGS'
19642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19645
19646    cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 #include <math.h>
19653 int
19654 main ()
19655 {
19656 float f; isinf(f);
19657   ;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (ac_try="$ac_compile"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_compile") 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } &&
19675          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19676   { (case "(($ac_try" in
19677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678   *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681   (eval "$ac_try") 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; } &&
19685          { ac_try='test -s conftest.$ac_objext'
19686   { (case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691   (eval "$ac_try") 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695   ac_cv_func_isinf_in_math_h=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700         ac_cv_func_isinf_in_math_h=no
19701 fi
19702
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704   ac_ext=c
19705 ac_cpp='$CPP $CPPFLAGS'
19706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19709
19710 fi
19711 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19712 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19713
19714 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19715
19716 cat >>confdefs.h <<\_ACEOF
19717 #define HAVE_ISINF_IN_MATH_H 1
19718 _ACEOF
19719
19720 fi
19721
19722 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19723 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19724 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   ac_ext=cpp
19728 ac_cpp='$CXXCPP $CPPFLAGS'
19729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19732
19733    cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 #include <cmath>
19740 int
19741 main ()
19742 {
19743 float f; isinf(f);
19744   ;
19745   return 0;
19746 }
19747 _ACEOF
19748 rm -f conftest.$ac_objext
19749 if { (ac_try="$ac_compile"
19750 case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_compile") 2>conftest.er1
19756   ac_status=$?
19757   grep -v '^ *+' conftest.er1 >conftest.err
19758   rm -f conftest.er1
19759   cat conftest.err >&5
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } &&
19762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19763   { (case "(($ac_try" in
19764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765   *) ac_try_echo=$ac_try;;
19766 esac
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768   (eval "$ac_try") 2>&5
19769   ac_status=$?
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); }; } &&
19772          { ac_try='test -s conftest.$ac_objext'
19773   { (case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778   (eval "$ac_try") 2>&5
19779   ac_status=$?
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); }; }; then
19782   ac_cv_func_isinf_in_cmath=yes
19783 else
19784   echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19786
19787         ac_cv_func_isinf_in_cmath=no
19788 fi
19789
19790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19791   ac_ext=c
19792 ac_cpp='$CPP $CPPFLAGS'
19793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19796
19797 fi
19798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19799 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19800
19801 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define HAVE_ISINF_IN_CMATH 1
19805 _ACEOF
19806
19807 fi
19808
19809 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19810 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19811 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814   ac_ext=cpp
19815 ac_cpp='$CXXCPP $CPPFLAGS'
19816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19819
19820    cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826 #include <cmath>
19827 int
19828 main ()
19829 {
19830 float f; std::isinf(f);
19831   ;
19832   return 0;
19833 }
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (ac_try="$ac_compile"
19837 case "(($ac_try" in
19838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839   *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842   (eval "$ac_compile") 2>conftest.er1
19843   ac_status=$?
19844   grep -v '^ *+' conftest.er1 >conftest.err
19845   rm -f conftest.er1
19846   cat conftest.err >&5
19847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848   (exit $ac_status); } &&
19849          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19850   { (case "(($ac_try" in
19851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852   *) ac_try_echo=$ac_try;;
19853 esac
19854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19855   (eval "$ac_try") 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; } &&
19859          { ac_try='test -s conftest.$ac_objext'
19860   { (case "(($ac_try" in
19861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862   *) ac_try_echo=$ac_try;;
19863 esac
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865   (eval "$ac_try") 2>&5
19866   ac_status=$?
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); }; }; then
19869   ac_cv_func_std_isinf_in_cmath=yes
19870 else
19871   echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19873
19874         ac_cv_func_std_isinf_in_cmath=no
19875 fi
19876
19877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19878   ac_ext=c
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
19884 fi
19885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19886 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19887
19888 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19889
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_STD_ISINF_IN_CMATH 1
19892 _ACEOF
19893
19894 fi
19895
19896 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19897 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19898 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19899   echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901   ac_ext=cpp
19902 ac_cpp='$CXXCPP $CPPFLAGS'
19903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19906
19907    cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h.  */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h.  */
19913 #include <ieeefp.h>
19914 int
19915 main ()
19916 {
19917 float f; finite(f);
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926   *) ac_try_echo=$ac_try;;
19927 esac
19928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19929   (eval "$ac_compile") 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19937   { (case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_try") 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; } &&
19946          { ac_try='test -s conftest.$ac_objext'
19947   { (case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_try") 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; }; then
19956   ac_cv_func_finite_in_ieeefp_h=yes
19957 else
19958   echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961         ac_cv_func_finite_in_ieeefp_h=no
19962 fi
19963
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19965   ac_ext=c
19966 ac_cpp='$CPP $CPPFLAGS'
19967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970
19971 fi
19972 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19973 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19974
19975 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19976
19977 cat >>confdefs.h <<\_ACEOF
19978 #define HAVE_FINITE_IN_IEEEFP_H 1
19979 _ACEOF
19980
19981 fi
19982
19983
19984
19985 if test "$llvm_cv_platform_type" = "Unix" ; then
19986
19987
19988 for ac_header in stdlib.h unistd.h
19989 do
19990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 fi
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998                { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20000 else
20001   # Is the header compilable?
20002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h.  */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h.  */
20010 $ac_includes_default
20011 #include <$ac_header>
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017   *) ac_try_echo=$ac_try;;
20018 esac
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020   (eval "$ac_compile") 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } &&
20027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028   { (case "(($ac_try" in
20029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030   *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033   (eval "$ac_try") 2>&5
20034   ac_status=$?
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); }; } &&
20037          { ac_try='test -s conftest.$ac_objext'
20038   { (case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_try") 2>&5
20044   ac_status=$?
20045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046   (exit $ac_status); }; }; then
20047   ac_header_compiler=yes
20048 else
20049   echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052         ac_header_compiler=no
20053 fi
20054
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20057 echo "${ECHO_T}$ac_header_compiler" >&6; }
20058
20059 # Is the header present?
20060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20062 cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <$ac_header>
20069 _ACEOF
20070 if { (ac_try="$ac_cpp conftest.$ac_ext"
20071 case "(($ac_try" in
20072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073   *) ac_try_echo=$ac_try;;
20074 esac
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20077   ac_status=$?
20078   grep -v '^ *+' conftest.er1 >conftest.err
20079   rm -f conftest.er1
20080   cat conftest.err >&5
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); } >/dev/null; then
20083   if test -s conftest.err; then
20084     ac_cpp_err=$ac_c_preproc_warn_flag
20085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20086   else
20087     ac_cpp_err=
20088   fi
20089 else
20090   ac_cpp_err=yes
20091 fi
20092 if test -z "$ac_cpp_err"; then
20093   ac_header_preproc=yes
20094 else
20095   echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20097
20098   ac_header_preproc=no
20099 fi
20100
20101 rm -f conftest.err conftest.$ac_ext
20102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20103 echo "${ECHO_T}$ac_header_preproc" >&6; }
20104
20105 # So?  What about this header?
20106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20107   yes:no: )
20108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20112     ac_header_preproc=yes
20113     ;;
20114   no:yes:* )
20115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20127     ( cat <<\_ASBOX
20128 ## ------------------------------------ ##
20129 ## Report this to http://llvm.org/bugs/ ##
20130 ## ------------------------------------ ##
20131 _ASBOX
20132      ) | sed "s/^/$as_me: WARNING:     /" >&2
20133     ;;
20134 esac
20135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20138   echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140   eval "$as_ac_Header=\$ac_header_preproc"
20141 fi
20142 ac_res=`eval echo '${'$as_ac_Header'}'`
20143                { echo "$as_me:$LINENO: result: $ac_res" >&5
20144 echo "${ECHO_T}$ac_res" >&6; }
20145
20146 fi
20147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20148   cat >>confdefs.h <<_ACEOF
20149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20150 _ACEOF
20151
20152 fi
20153
20154 done
20155
20156
20157 for ac_func in getpagesize
20158 do
20159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165   cat >conftest.$ac_ext <<_ACEOF
20166 /* confdefs.h.  */
20167 _ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h.  */
20171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20173 #define $ac_func innocuous_$ac_func
20174
20175 /* System header to define __stub macros and hopefully few prototypes,
20176     which can conflict with char $ac_func (); below.
20177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20178     <limits.h> exists even on freestanding compilers.  */
20179
20180 #ifdef __STDC__
20181 # include <limits.h>
20182 #else
20183 # include <assert.h>
20184 #endif
20185
20186 #undef $ac_func
20187
20188 /* Override any GCC internal prototype to avoid an error.
20189    Use char because int might match the return type of a GCC
20190    builtin and then its argument prototype would still apply.  */
20191 #ifdef __cplusplus
20192 extern "C"
20193 #endif
20194 char $ac_func ();
20195 /* The GNU C library defines this for functions which it implements
20196     to always fail with ENOSYS.  Some functions are actually named
20197     something starting with __ and the normal name is an alias.  */
20198 #if defined __stub_$ac_func || defined __stub___$ac_func
20199 choke me
20200 #endif
20201
20202 int
20203 main ()
20204 {
20205 return $ac_func ();
20206   ;
20207   return 0;
20208 }
20209 _ACEOF
20210 rm -f conftest.$ac_objext conftest$ac_exeext
20211 if { (ac_try="$ac_link"
20212 case "(($ac_try" in
20213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214   *) ac_try_echo=$ac_try;;
20215 esac
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217   (eval "$ac_link") 2>conftest.er1
20218   ac_status=$?
20219   grep -v '^ *+' conftest.er1 >conftest.err
20220   rm -f conftest.er1
20221   cat conftest.err >&5
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); } &&
20224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20225   { (case "(($ac_try" in
20226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20227   *) ac_try_echo=$ac_try;;
20228 esac
20229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20230   (eval "$ac_try") 2>&5
20231   ac_status=$?
20232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233   (exit $ac_status); }; } &&
20234          { ac_try='test -s conftest$ac_exeext'
20235   { (case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_try") 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   eval "$as_ac_var=yes"
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249         eval "$as_ac_var=no"
20250 fi
20251
20252 rm -f core conftest.err conftest.$ac_objext \
20253       conftest$ac_exeext conftest.$ac_ext
20254 fi
20255 ac_res=`eval echo '${'$as_ac_var'}'`
20256                { echo "$as_me:$LINENO: result: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20258 if test `eval echo '${'$as_ac_var'}'` = yes; then
20259   cat >>confdefs.h <<_ACEOF
20260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20261 _ACEOF
20262
20263 fi
20264 done
20265
20266 { echo "$as_me:$LINENO: checking for working mmap" >&5
20267 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20268 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20269   echo $ECHO_N "(cached) $ECHO_C" >&6
20270 else
20271   if test "$cross_compiling" = yes; then
20272   ac_cv_func_mmap_fixed_mapped=no
20273 else
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 $ac_includes_default
20281 /* malloc might have been renamed as rpl_malloc. */
20282 #undef malloc
20283
20284 /* Thanks to Mike Haertel and Jim Avera for this test.
20285    Here is a matrix of mmap possibilities:
20286         mmap private not fixed
20287         mmap private fixed at somewhere currently unmapped
20288         mmap private fixed at somewhere already mapped
20289         mmap shared not fixed
20290         mmap shared fixed at somewhere currently unmapped
20291         mmap shared fixed at somewhere already mapped
20292    For private mappings, we should verify that changes cannot be read()
20293    back from the file, nor mmap's back from the file at a different
20294    address.  (There have been systems where private was not correctly
20295    implemented like the infamous i386 svr4.0, and systems where the
20296    VM page cache was not coherent with the file system buffer cache
20297    like early versions of FreeBSD and possibly contemporary NetBSD.)
20298    For shared mappings, we should conversely verify that changes get
20299    propagated back to all the places they're supposed to be.
20300
20301    Grep wants private fixed already mapped.
20302    The main things grep needs to know about mmap are:
20303    * does it exist and is it safe to write into the mmap'd area
20304    * how to use it (BSD variants)  */
20305
20306 #include <fcntl.h>
20307 #include <sys/mman.h>
20308
20309 #if !STDC_HEADERS && !HAVE_STDLIB_H
20310 char *malloc ();
20311 #endif
20312
20313 /* This mess was copied from the GNU getpagesize.h.  */
20314 #if !HAVE_GETPAGESIZE
20315 /* Assume that all systems that can run configure have sys/param.h.  */
20316 # if !HAVE_SYS_PARAM_H
20317 #  define HAVE_SYS_PARAM_H 1
20318 # endif
20319
20320 # ifdef _SC_PAGESIZE
20321 #  define getpagesize() sysconf(_SC_PAGESIZE)
20322 # else /* no _SC_PAGESIZE */
20323 #  if HAVE_SYS_PARAM_H
20324 #   include <sys/param.h>
20325 #   ifdef EXEC_PAGESIZE
20326 #    define getpagesize() EXEC_PAGESIZE
20327 #   else /* no EXEC_PAGESIZE */
20328 #    ifdef NBPG
20329 #     define getpagesize() NBPG * CLSIZE
20330 #     ifndef CLSIZE
20331 #      define CLSIZE 1
20332 #     endif /* no CLSIZE */
20333 #    else /* no NBPG */
20334 #     ifdef NBPC
20335 #      define getpagesize() NBPC
20336 #     else /* no NBPC */
20337 #      ifdef PAGESIZE
20338 #       define getpagesize() PAGESIZE
20339 #      endif /* PAGESIZE */
20340 #     endif /* no NBPC */
20341 #    endif /* no NBPG */
20342 #   endif /* no EXEC_PAGESIZE */
20343 #  else /* no HAVE_SYS_PARAM_H */
20344 #   define getpagesize() 8192   /* punt totally */
20345 #  endif /* no HAVE_SYS_PARAM_H */
20346 # endif /* no _SC_PAGESIZE */
20347
20348 #endif /* no HAVE_GETPAGESIZE */
20349
20350 int
20351 main ()
20352 {
20353   char *data, *data2, *data3;
20354   int i, pagesize;
20355   int fd;
20356
20357   pagesize = getpagesize ();
20358
20359   /* First, make a file with some known garbage in it. */
20360   data = (char *) malloc (pagesize);
20361   if (!data)
20362     return 1;
20363   for (i = 0; i < pagesize; ++i)
20364     *(data + i) = rand ();
20365   umask (0);
20366   fd = creat ("conftest.mmap", 0600);
20367   if (fd < 0)
20368     return 1;
20369   if (write (fd, data, pagesize) != pagesize)
20370     return 1;
20371   close (fd);
20372
20373   /* Next, try to mmap the file at a fixed address which already has
20374      something else allocated at it.  If we can, also make sure that
20375      we see the same garbage.  */
20376   fd = open ("conftest.mmap", O_RDWR);
20377   if (fd < 0)
20378     return 1;
20379   data2 = (char *) malloc (2 * pagesize);
20380   if (!data2)
20381     return 1;
20382   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20383   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20384                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20385     return 1;
20386   for (i = 0; i < pagesize; ++i)
20387     if (*(data + i) != *(data2 + i))
20388       return 1;
20389
20390   /* Finally, make sure that changes to the mapped area do not
20391      percolate back to the file as seen by read().  (This is a bug on
20392      some variants of i386 svr4.0.)  */
20393   for (i = 0; i < pagesize; ++i)
20394     *(data2 + i) = *(data2 + i) + 1;
20395   data3 = (char *) malloc (pagesize);
20396   if (!data3)
20397     return 1;
20398   if (read (fd, data3, pagesize) != pagesize)
20399     return 1;
20400   for (i = 0; i < pagesize; ++i)
20401     if (*(data + i) != *(data3 + i))
20402       return 1;
20403   close (fd);
20404   return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411   *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414   (eval "$ac_link") 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418   { (case "(($ac_try" in
20419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420   *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423   (eval "$ac_try") 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_cv_func_mmap_fixed_mapped=yes
20428 else
20429   echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ( exit $ac_status )
20434 ac_cv_func_mmap_fixed_mapped=no
20435 fi
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20437 fi
20438
20439
20440 fi
20441 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20442 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20443 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20444
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_MMAP 1
20447 _ACEOF
20448
20449 fi
20450 rm -f conftest.mmap
20451
20452   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20453 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20454 if test "${ac_cv_func_mmap_file+set}" = set; then
20455   echo $ECHO_N "(cached) $ECHO_C" >&6
20456 else
20457    ac_ext=c
20458 ac_cpp='$CPP $CPPFLAGS'
20459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20462
20463   if test "$cross_compiling" = yes; then
20464   ac_cv_func_mmap_file=no
20465 else
20466   cat >conftest.$ac_ext <<_ACEOF
20467
20468     /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473
20474 #include <sys/types.h>
20475 #include <sys/mman.h>
20476 #include <fcntl.h>
20477
20478 int
20479 main ()
20480 {
20481
20482   int fd;
20483   fd = creat ("foo",0777);
20484   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20485   unlink ("foo");
20486   return (fd != (int) MAP_FAILED);
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_link") 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20502   { (case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_try") 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); }; }; then
20511   ac_cv_func_mmap_file=yes
20512 else
20513   echo "$as_me: program exited with status $ac_status" >&5
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517 ( exit $ac_status )
20518 ac_cv_func_mmap_file=no
20519 fi
20520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20521 fi
20522
20523
20524   ac_ext=c
20525 ac_cpp='$CPP $CPPFLAGS'
20526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20529
20530
20531 fi
20532 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20533 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20534 if test "$ac_cv_func_mmap_file" = yes; then
20535
20536 cat >>confdefs.h <<\_ACEOF
20537 #define HAVE_MMAP_FILE
20538 _ACEOF
20539
20540    MMAP_FILE=yes
20541
20542 fi
20543
20544   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20545 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20546 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   if test "$llvm_cv_os_type" = "Interix" ; then
20550    ac_cv_need_dev_zero_for_mmap=yes
20551  else
20552    ac_cv_need_dev_zero_for_mmap=no
20553  fi
20554
20555 fi
20556 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20557 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20558 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20559
20560 cat >>confdefs.h <<\_ACEOF
20561 #define NEED_DEV_ZERO_FOR_MMAP 1
20562 _ACEOF
20563
20564 fi
20565
20566   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20567   then
20568     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20569 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20570   fi
20571   if test "$ac_cv_func_mmap_file" = "no"
20572   then
20573     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20574 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20575   fi
20576 fi
20577
20578 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20579 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20580 ac_ext=cpp
20581 ac_cpp='$CXXCPP $CPPFLAGS'
20582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20585
20586 cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592 int main() {
20593         volatile unsigned long val = 1;
20594         __sync_synchronize();
20595         __sync_val_compare_and_swap(&val, 1, 0);
20596         __sync_add_and_fetch(&val, 1);
20597         __sync_sub_and_fetch(&val, 1);
20598         return 0;
20599       }
20600
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_link") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20617   { (case "(($ac_try" in
20618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619   *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622   (eval "$ac_try") 2>&5
20623   ac_status=$?
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); }; } &&
20626          { ac_try='test -s conftest$ac_exeext'
20627   { (case "(($ac_try" in
20628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629   *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632   (eval "$ac_try") 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; }; then
20636   ac_ext=c
20637 ac_cpp='$CPP $CPPFLAGS'
20638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20641
20642   { echo "$as_me:$LINENO: result: yes" >&5
20643 echo "${ECHO_T}yes" >&6; }
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define LLVM_HAS_ATOMICS 1
20647 _ACEOF
20648
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653         { echo "$as_me:$LINENO: result: no" >&5
20654 echo "${ECHO_T}no" >&6; }
20655
20656 cat >>confdefs.h <<\_ACEOF
20657 #define LLVM_HAS_ATOMICS 0
20658 _ACEOF
20659
20660   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20661 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20662 fi
20663
20664 rm -f core conftest.err conftest.$ac_objext \
20665       conftest$ac_exeext conftest.$ac_ext
20666
20667
20668 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20669   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20670 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20671 if test "${llvm_cv_linux_mixed+set}" = set; then
20672   echo $ECHO_N "(cached) $ECHO_C" >&6
20673 else
20674    ac_ext=c
20675 ac_cpp='$CPP $CPPFLAGS'
20676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20679
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #ifndef __x86_64__
20687        error: Not x86-64 even if uname says so!
20688       #endif
20689
20690 int
20691 main ()
20692 {
20693
20694   ;
20695   return 0;
20696 }
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702   *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705   (eval "$ac_compile") 2>conftest.er1
20706   ac_status=$?
20707   grep -v '^ *+' conftest.er1 >conftest.err
20708   rm -f conftest.er1
20709   cat conftest.err >&5
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } &&
20712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20713   { (case "(($ac_try" in
20714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715   *) ac_try_echo=$ac_try;;
20716 esac
20717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718   (eval "$ac_try") 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; } &&
20722          { ac_try='test -s conftest.$ac_objext'
20723   { (case "(($ac_try" in
20724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725   *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728   (eval "$ac_try") 2>&5
20729   ac_status=$?
20730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731   (exit $ac_status); }; }; then
20732   llvm_cv_linux_mixed=no
20733 else
20734   echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737         llvm_cv_linux_mixed=yes
20738 fi
20739
20740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741   ac_ext=c
20742 ac_cpp='$CPP $CPPFLAGS'
20743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20746
20747
20748 fi
20749 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20750 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20751
20752   if test "$llvm_cv_linux_mixed" = "yes"; then
20753     llvm_cv_target_arch="x86"
20754     ARCH="x86"
20755   fi
20756 fi
20757
20758
20759 for ac_func in __dso_handle
20760 do
20761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20765   echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767   cat >conftest.$ac_ext <<_ACEOF
20768 /* confdefs.h.  */
20769 _ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h.  */
20773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20775 #define $ac_func innocuous_$ac_func
20776
20777 /* System header to define __stub macros and hopefully few prototypes,
20778     which can conflict with char $ac_func (); below.
20779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20780     <limits.h> exists even on freestanding compilers.  */
20781
20782 #ifdef __STDC__
20783 # include <limits.h>
20784 #else
20785 # include <assert.h>
20786 #endif
20787
20788 #undef $ac_func
20789
20790 /* Override any GCC internal prototype to avoid an error.
20791    Use char because int might match the return type of a GCC
20792    builtin and then its argument prototype would still apply.  */
20793 #ifdef __cplusplus
20794 extern "C"
20795 #endif
20796 char $ac_func ();
20797 /* The GNU C library defines this for functions which it implements
20798     to always fail with ENOSYS.  Some functions are actually named
20799     something starting with __ and the normal name is an alias.  */
20800 #if defined __stub_$ac_func || defined __stub___$ac_func
20801 choke me
20802 #endif
20803
20804 int
20805 main ()
20806 {
20807 return $ac_func ();
20808   ;
20809   return 0;
20810 }
20811 _ACEOF
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819   (eval "$ac_link") 2>conftest.er1
20820   ac_status=$?
20821   grep -v '^ *+' conftest.er1 >conftest.err
20822   rm -f conftest.er1
20823   cat conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } &&
20826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20827   { (case "(($ac_try" in
20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829   *) ac_try_echo=$ac_try;;
20830 esac
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832   (eval "$ac_try") 2>&5
20833   ac_status=$?
20834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835   (exit $ac_status); }; } &&
20836          { ac_try='test -s conftest$ac_exeext'
20837   { (case "(($ac_try" in
20838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839   *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842   (eval "$ac_try") 2>&5
20843   ac_status=$?
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); }; }; then
20846   eval "$as_ac_var=yes"
20847 else
20848   echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20850
20851         eval "$as_ac_var=no"
20852 fi
20853
20854 rm -f core conftest.err conftest.$ac_objext \
20855       conftest$ac_exeext conftest.$ac_ext
20856 fi
20857 ac_res=`eval echo '${'$as_ac_var'}'`
20858                { echo "$as_me:$LINENO: result: $ac_res" >&5
20859 echo "${ECHO_T}$ac_res" >&6; }
20860 if test `eval echo '${'$as_ac_var'}'` = yes; then
20861   cat >>confdefs.h <<_ACEOF
20862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863 _ACEOF
20864
20865 fi
20866 done
20867
20868
20869 SHLIBEXT=$libltdl_cv_shlibext
20870
20871
20872 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20873
20874
20875 if test "${prefix}" = "NONE" ; then
20876   prefix="/usr/local"
20877 fi
20878 eval LLVM_PREFIX="${prefix}";
20879 eval LLVM_BINDIR="${prefix}/bin";
20880 eval LLVM_LIBDIR="${prefix}/lib";
20881 eval LLVM_DATADIR="${prefix}/share/llvm";
20882 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20883 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20884 eval LLVM_INCLUDEDIR="${prefix}/include";
20885 eval LLVM_INFODIR="${prefix}/info";
20886 eval LLVM_MANDIR="${prefix}/man";
20887 LLVM_CONFIGTIME=`date`
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899 if test "${ENABLE_TIMESTAMPS}" = "0"; then
20900   LLVM_CONFIGTIME="(timestamp not enabled)"
20901 fi
20902
20903
20904 cat >>confdefs.h <<_ACEOF
20905 #define LLVM_PREFIX "$LLVM_PREFIX"
20906 _ACEOF
20907
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define LLVM_BINDIR "$LLVM_BINDIR"
20911 _ACEOF
20912
20913
20914 cat >>confdefs.h <<_ACEOF
20915 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20916 _ACEOF
20917
20918
20919 cat >>confdefs.h <<_ACEOF
20920 #define LLVM_DATADIR "$LLVM_DATADIR"
20921 _ACEOF
20922
20923
20924 cat >>confdefs.h <<_ACEOF
20925 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20926 _ACEOF
20927
20928
20929 cat >>confdefs.h <<_ACEOF
20930 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20931 _ACEOF
20932
20933
20934 cat >>confdefs.h <<_ACEOF
20935 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20936 _ACEOF
20937
20938
20939 cat >>confdefs.h <<_ACEOF
20940 #define LLVM_INFODIR "$LLVM_INFODIR"
20941 _ACEOF
20942
20943
20944 cat >>confdefs.h <<_ACEOF
20945 #define LLVM_MANDIR "$LLVM_MANDIR"
20946 _ACEOF
20947
20948
20949 cat >>confdefs.h <<_ACEOF
20950 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20951 _ACEOF
20952
20953
20954 cat >>confdefs.h <<_ACEOF
20955 #define LLVM_HOSTTRIPLE "$host"
20956 _ACEOF
20957
20958
20959 cat >>confdefs.h <<_ACEOF
20960 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20961 _ACEOF
20962
20963
20964 if test "$BINDINGS_TO_BUILD" = auto ; then
20965   BINDINGS_TO_BUILD=""
20966   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20967     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20968   fi
20969 fi
20970 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20971
20972
20973 ALL_BINDINGS=ocaml
20974
20975
20976 binding_prereqs_failed=0
20977 for a_binding in $BINDINGS_TO_BUILD ; do
20978   case "$a_binding" in
20979   ocaml)
20980     if test "x$OCAMLC" = x ; then
20981       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20982 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20983       binding_prereqs_failed=1
20984     fi
20985     if test "x$OCAMLDEP" = x ; then
20986       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20987 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20988       binding_prereqs_failed=1
20989     fi
20990     if test "x$OCAMLOPT" = x ; then
20991       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20992 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20993           fi
20994     if test "x$with_ocaml_libdir" != xauto ; then
20995       OCAML_LIBDIR=$with_ocaml_libdir
20996
20997     else
20998       ocaml_stdlib="`"$OCAMLC" -where`"
20999       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21000       then
21001         # ocaml stdlib is beneath our prefix; use stdlib
21002         OCAML_LIBDIR=$ocaml_stdlib
21003
21004       else
21005         # ocaml stdlib is outside our prefix; use libdir/ocaml
21006         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21007
21008       fi
21009     fi
21010     ;;
21011   esac
21012 done
21013 if test "$binding_prereqs_failed" = 1 ; then
21014   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21015 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21016    { (exit 1); exit 1; }; }
21017 fi
21018
21019 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21020 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21021 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024    ac_ext=cpp
21025 ac_cpp='$CXXCPP $CPPFLAGS'
21026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030   oldcxxflags="$CXXFLAGS"
21031   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21032   cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21039 int
21040 main ()
21041 {
21042 X<int>().f();
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_compile") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } &&
21061          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21062   { (case "(($ac_try" in
21063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064   *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067   (eval "$ac_try") 2>&5
21068   ac_status=$?
21069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; } &&
21071          { ac_try='test -s conftest.$ac_objext'
21072   { (case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_try") 2>&5
21078   ac_status=$?
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); }; }; then
21081   llvm_cv_cxx_visibility_inlines_hidden=yes
21082 else
21083   echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.$ac_ext >&5
21085
21086         llvm_cv_cxx_visibility_inlines_hidden=no
21087 fi
21088
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21090   CXXFLAGS="$oldcxxflags"
21091   ac_ext=c
21092 ac_cpp='$CPP $CPPFLAGS'
21093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21096
21097
21098 fi
21099 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21100 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21101 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21102   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21103
21104 else
21105   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21106
21107 fi
21108
21109
21110 if test "$llvm_cv_link_use_r" = "yes" ; then
21111   RPATH="-Wl,-R"
21112 else
21113   RPATH="-Wl,-rpath"
21114 fi
21115
21116
21117 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21118   RDYNAMIC="-Wl,-export-dynamic"
21119 else
21120   RDYNAMIC=""
21121 fi
21122
21123
21124
21125 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21126
21127
21128
21129
21130
21131
21132 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21133
21134 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21135
21136 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21137
21138 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21139
21140 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21141
21142
21143 ac_config_files="$ac_config_files Makefile.config"
21144
21145
21146 ac_config_files="$ac_config_files llvm.spec"
21147
21148
21149 ac_config_files="$ac_config_files docs/doxygen.cfg"
21150
21151
21152 if test "${clang_src_root}" = ""; then
21153   clang_src_root="$srcdir/tools/clang"
21154 fi
21155 if test -f ${clang_src_root}/README.txt; then
21156     configh="include/clang/Config/config.h"
21157   doxy="docs/doxygen.cfg"
21158   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21159
21160   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21161
21162 fi
21163
21164 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21165
21166
21167 ac_config_commands="$ac_config_commands setup"
21168
21169 ac_config_commands="$ac_config_commands Makefile"
21170
21171
21172 ac_config_commands="$ac_config_commands Makefile.common"
21173
21174
21175 ac_config_commands="$ac_config_commands examples/Makefile"
21176
21177
21178 ac_config_commands="$ac_config_commands lib/Makefile"
21179
21180
21181 ac_config_commands="$ac_config_commands runtime/Makefile"
21182
21183
21184 ac_config_commands="$ac_config_commands test/Makefile"
21185
21186
21187 ac_config_commands="$ac_config_commands test/Makefile.tests"
21188
21189
21190 ac_config_commands="$ac_config_commands unittests/Makefile"
21191
21192
21193 ac_config_commands="$ac_config_commands tools/Makefile"
21194
21195
21196 ac_config_commands="$ac_config_commands utils/Makefile"
21197
21198
21199 ac_config_commands="$ac_config_commands projects/Makefile"
21200
21201
21202 ac_config_commands="$ac_config_commands bindings/Makefile"
21203
21204
21205 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21206
21207
21208
21209 cat >confcache <<\_ACEOF
21210 # This file is a shell script that caches the results of configure
21211 # tests run on this system so they can be shared between configure
21212 # scripts and configure runs, see configure's option --config-cache.
21213 # It is not useful on other systems.  If it contains results you don't
21214 # want to keep, you may remove or edit it.
21215 #
21216 # config.status only pays attention to the cache file if you give it
21217 # the --recheck option to rerun configure.
21218 #
21219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21221 # following values.
21222
21223 _ACEOF
21224
21225 # The following way of writing the cache mishandles newlines in values,
21226 # but we know of no workaround that is simple, portable, and efficient.
21227 # So, we kill variables containing newlines.
21228 # Ultrix sh set writes to stderr and can't be redirected directly,
21229 # and sets the high bit in the cache file unless we assign to the vars.
21230 (
21231   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21232     eval ac_val=\$$ac_var
21233     case $ac_val in #(
21234     *${as_nl}*)
21235       case $ac_var in #(
21236       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21237 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21238       esac
21239       case $ac_var in #(
21240       _ | IFS | as_nl) ;; #(
21241       *) $as_unset $ac_var ;;
21242       esac ;;
21243     esac
21244   done
21245
21246   (set) 2>&1 |
21247     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21248     *${as_nl}ac_space=\ *)
21249       # `set' does not quote correctly, so add quotes (double-quote
21250       # substitution turns \\\\ into \\, and sed turns \\ into \).
21251       sed -n \
21252         "s/'/'\\\\''/g;
21253           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21254       ;; #(
21255     *)
21256       # `set' quotes correctly as required by POSIX, so do not add quotes.
21257       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21258       ;;
21259     esac |
21260     sort
21261 ) |
21262   sed '
21263      /^ac_cv_env_/b end
21264      t clear
21265      :clear
21266      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21267      t end
21268      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21269      :end' >>confcache
21270 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21271   if test -w "$cache_file"; then
21272     test "x$cache_file" != "x/dev/null" &&
21273       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21274 echo "$as_me: updating cache $cache_file" >&6;}
21275     cat confcache >$cache_file
21276   else
21277     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21278 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21279   fi
21280 fi
21281 rm -f confcache
21282
21283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21284 # Let make expand exec_prefix.
21285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21286
21287 DEFS=-DHAVE_CONFIG_H
21288
21289 ac_libobjs=
21290 ac_ltlibobjs=
21291 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21292   # 1. Remove the extension, and $U if already installed.
21293   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21294   ac_i=`echo "$ac_i" | sed "$ac_script"`
21295   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21296   #    will be set to the directory where LIBOBJS objects are built.
21297   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21298   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21299 done
21300 LIBOBJS=$ac_libobjs
21301
21302 LTLIBOBJS=$ac_ltlibobjs
21303
21304
21305 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21306   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21307 Usually this means the macro was only invoked conditionally." >&5
21308 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21309 Usually this means the macro was only invoked conditionally." >&2;}
21310    { (exit 1); exit 1; }; }
21311 fi
21312 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21313   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21314 Usually this means the macro was only invoked conditionally." >&5
21315 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21316 Usually this means the macro was only invoked conditionally." >&2;}
21317    { (exit 1); exit 1; }; }
21318 fi
21319
21320 : ${CONFIG_STATUS=./config.status}
21321 ac_clean_files_save=$ac_clean_files
21322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21323 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21324 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21325 cat >$CONFIG_STATUS <<_ACEOF
21326 #! $SHELL
21327 # Generated by $as_me.
21328 # Run this file to recreate the current configuration.
21329 # Compiler output produced by configure, useful for debugging
21330 # configure, is in config.log if it exists.
21331
21332 debug=false
21333 ac_cs_recheck=false
21334 ac_cs_silent=false
21335 SHELL=\${CONFIG_SHELL-$SHELL}
21336 _ACEOF
21337
21338 cat >>$CONFIG_STATUS <<\_ACEOF
21339 ## --------------------- ##
21340 ## M4sh Initialization.  ##
21341 ## --------------------- ##
21342
21343 # Be Bourne compatible
21344 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21345   emulate sh
21346   NULLCMD=:
21347   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21348   # is contrary to our usage.  Disable this feature.
21349   alias -g '${1+"$@"}'='"$@"'
21350   setopt NO_GLOB_SUBST
21351 else
21352   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21353 fi
21354 BIN_SH=xpg4; export BIN_SH # for Tru64
21355 DUALCASE=1; export DUALCASE # for MKS sh
21356
21357
21358 # PATH needs CR
21359 # Avoid depending upon Character Ranges.
21360 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21363 as_cr_digits='0123456789'
21364 as_cr_alnum=$as_cr_Letters$as_cr_digits
21365
21366 # The user is always right.
21367 if test "${PATH_SEPARATOR+set}" != set; then
21368   echo "#! /bin/sh" >conf$$.sh
21369   echo  "exit 0"   >>conf$$.sh
21370   chmod +x conf$$.sh
21371   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21372     PATH_SEPARATOR=';'
21373   else
21374     PATH_SEPARATOR=:
21375   fi
21376   rm -f conf$$.sh
21377 fi
21378
21379 # Support unset when possible.
21380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21381   as_unset=unset
21382 else
21383   as_unset=false
21384 fi
21385
21386
21387 # IFS
21388 # We need space, tab and new line, in precisely that order.  Quoting is
21389 # there to prevent editors from complaining about space-tab.
21390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21391 # splitting by setting IFS to empty value.)
21392 as_nl='
21393 '
21394 IFS=" ""        $as_nl"
21395
21396 # Find who we are.  Look in the path if we contain no directory separator.
21397 case $0 in
21398   *[\\/]* ) as_myself=$0 ;;
21399   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21400 for as_dir in $PATH
21401 do
21402   IFS=$as_save_IFS
21403   test -z "$as_dir" && as_dir=.
21404   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21405 done
21406 IFS=$as_save_IFS
21407
21408      ;;
21409 esac
21410 # We did not find ourselves, most probably we were run as `sh COMMAND'
21411 # in which case we are not to be found in the path.
21412 if test "x$as_myself" = x; then
21413   as_myself=$0
21414 fi
21415 if test ! -f "$as_myself"; then
21416   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21417   { (exit 1); exit 1; }
21418 fi
21419
21420 # Work around bugs in pre-3.0 UWIN ksh.
21421 for as_var in ENV MAIL MAILPATH
21422 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21423 done
21424 PS1='$ '
21425 PS2='> '
21426 PS4='+ '
21427
21428 # NLS nuisances.
21429 for as_var in \
21430   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21431   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21432   LC_TELEPHONE LC_TIME
21433 do
21434   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21435     eval $as_var=C; export $as_var
21436   else
21437     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21438   fi
21439 done
21440
21441 # Required to use basename.
21442 if expr a : '\(a\)' >/dev/null 2>&1 &&
21443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21444   as_expr=expr
21445 else
21446   as_expr=false
21447 fi
21448
21449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21450   as_basename=basename
21451 else
21452   as_basename=false
21453 fi
21454
21455
21456 # Name of the executable.
21457 as_me=`$as_basename -- "$0" ||
21458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21459          X"$0" : 'X\(//\)$' \| \
21460          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21461 echo X/"$0" |
21462     sed '/^.*\/\([^/][^/]*\)\/*$/{
21463             s//\1/
21464             q
21465           }
21466           /^X\/\(\/\/\)$/{
21467             s//\1/
21468             q
21469           }
21470           /^X\/\(\/\).*/{
21471             s//\1/
21472             q
21473           }
21474           s/.*/./; q'`
21475
21476 # CDPATH.
21477 $as_unset CDPATH
21478
21479
21480
21481   as_lineno_1=$LINENO
21482   as_lineno_2=$LINENO
21483   test "x$as_lineno_1" != "x$as_lineno_2" &&
21484   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21485
21486   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21487   # uniformly replaced by the line number.  The first 'sed' inserts a
21488   # line-number line after each line using $LINENO; the second 'sed'
21489   # does the real work.  The second script uses 'N' to pair each
21490   # line-number line with the line containing $LINENO, and appends
21491   # trailing '-' during substitution so that $LINENO is not a special
21492   # case at line end.
21493   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21494   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21495   # E. McMahon (1931-1989) for sed's syntax.  :-)
21496   sed -n '
21497     p
21498     /[$]LINENO/=
21499   ' <$as_myself |
21500     sed '
21501       s/[$]LINENO.*/&-/
21502       t lineno
21503       b
21504       :lineno
21505       N
21506       :loop
21507       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21508       t loop
21509       s/-\n.*//
21510     ' >$as_me.lineno &&
21511   chmod +x "$as_me.lineno" ||
21512     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21513    { (exit 1); exit 1; }; }
21514
21515   # Don't try to exec as it changes $[0], causing all sort of problems
21516   # (the dirname of $[0] is not the place where we might find the
21517   # original and so on.  Autoconf is especially sensitive to this).
21518   . "./$as_me.lineno"
21519   # Exit status is that of the last command.
21520   exit
21521 }
21522
21523
21524 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21525   as_dirname=dirname
21526 else
21527   as_dirname=false
21528 fi
21529
21530 ECHO_C= ECHO_N= ECHO_T=
21531 case `echo -n x` in
21532 -n*)
21533   case `echo 'x\c'` in
21534   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21535   *)   ECHO_C='\c';;
21536   esac;;
21537 *)
21538   ECHO_N='-n';;
21539 esac
21540
21541 if expr a : '\(a\)' >/dev/null 2>&1 &&
21542    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21543   as_expr=expr
21544 else
21545   as_expr=false
21546 fi
21547
21548 rm -f conf$$ conf$$.exe conf$$.file
21549 if test -d conf$$.dir; then
21550   rm -f conf$$.dir/conf$$.file
21551 else
21552   rm -f conf$$.dir
21553   mkdir conf$$.dir
21554 fi
21555 echo >conf$$.file
21556 if ln -s conf$$.file conf$$ 2>/dev/null; then
21557   as_ln_s='ln -s'
21558   # ... but there are two gotchas:
21559   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21560   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21561   # In both cases, we have to default to `cp -p'.
21562   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21563     as_ln_s='cp -p'
21564 elif ln conf$$.file conf$$ 2>/dev/null; then
21565   as_ln_s=ln
21566 else
21567   as_ln_s='cp -p'
21568 fi
21569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21570 rmdir conf$$.dir 2>/dev/null
21571
21572 if mkdir -p . 2>/dev/null; then
21573   as_mkdir_p=:
21574 else
21575   test -d ./-p && rmdir ./-p
21576   as_mkdir_p=false
21577 fi
21578
21579 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21580 # systems may use methods other than mode bits to determine executability.
21581 cat >conf$$.file <<_ASEOF
21582 #! /bin/sh
21583 exit 0
21584 _ASEOF
21585 chmod +x conf$$.file
21586 if test -x conf$$.file >/dev/null 2>&1; then
21587   as_executable_p="test -x"
21588 else
21589   as_executable_p=:
21590 fi
21591 rm -f conf$$.file
21592
21593 # Sed expression to map a string onto a valid CPP name.
21594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21595
21596 # Sed expression to map a string onto a valid variable name.
21597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21598
21599
21600 exec 6>&1
21601
21602 # Save the log message, to keep $[0] and so on meaningful, and to
21603 # report actual input values of CONFIG_FILES etc. instead of their
21604 # values after options handling.
21605 ac_log="
21606 This file was extended by LLVM $as_me 3.2svn, which was
21607 generated by GNU Autoconf 2.60.  Invocation command line was
21608
21609   CONFIG_FILES    = $CONFIG_FILES
21610   CONFIG_HEADERS  = $CONFIG_HEADERS
21611   CONFIG_LINKS    = $CONFIG_LINKS
21612   CONFIG_COMMANDS = $CONFIG_COMMANDS
21613   $ $0 $@
21614
21615 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21616 "
21617
21618 _ACEOF
21619
21620 cat >>$CONFIG_STATUS <<_ACEOF
21621 # Files that config.status was made for.
21622 config_files="$ac_config_files"
21623 config_headers="$ac_config_headers"
21624 config_commands="$ac_config_commands"
21625
21626 _ACEOF
21627
21628 cat >>$CONFIG_STATUS <<\_ACEOF
21629 ac_cs_usage="\
21630 \`$as_me' instantiates files from templates according to the
21631 current configuration.
21632
21633 Usage: $0 [OPTIONS] [FILE]...
21634
21635   -h, --help       print this help, then exit
21636   -V, --version    print version number, then exit
21637   -q, --quiet      do not print progress messages
21638   -d, --debug      don't remove temporary files
21639       --recheck    update $as_me by reconfiguring in the same conditions
21640   --file=FILE[:TEMPLATE]
21641                    instantiate the configuration file FILE
21642   --header=FILE[:TEMPLATE]
21643                    instantiate the configuration header FILE
21644
21645 Configuration files:
21646 $config_files
21647
21648 Configuration headers:
21649 $config_headers
21650
21651 Configuration commands:
21652 $config_commands
21653
21654 Report bugs to <bug-autoconf@gnu.org>."
21655
21656 _ACEOF
21657 cat >>$CONFIG_STATUS <<_ACEOF
21658 ac_cs_version="\\
21659 LLVM config.status 3.2svn
21660 configured by $0, generated by GNU Autoconf 2.60,
21661   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21662
21663 Copyright (C) 2006 Free Software Foundation, Inc.
21664 This config.status script is free software; the Free Software Foundation
21665 gives unlimited permission to copy, distribute and modify it."
21666
21667 ac_pwd='$ac_pwd'
21668 srcdir='$srcdir'
21669 INSTALL='$INSTALL'
21670 _ACEOF
21671
21672 cat >>$CONFIG_STATUS <<\_ACEOF
21673 # If no file are specified by the user, then we need to provide default
21674 # value.  By we need to know if files were specified by the user.
21675 ac_need_defaults=:
21676 while test $# != 0
21677 do
21678   case $1 in
21679   --*=*)
21680     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21681     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21682     ac_shift=:
21683     ;;
21684   *)
21685     ac_option=$1
21686     ac_optarg=$2
21687     ac_shift=shift
21688     ;;
21689   esac
21690
21691   case $ac_option in
21692   # Handling of the options.
21693   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21694     ac_cs_recheck=: ;;
21695   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21696     echo "$ac_cs_version"; exit ;;
21697   --debug | --debu | --deb | --de | --d | -d )
21698     debug=: ;;
21699   --file | --fil | --fi | --f )
21700     $ac_shift
21701     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21702     ac_need_defaults=false;;
21703   --header | --heade | --head | --hea )
21704     $ac_shift
21705     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21706     ac_need_defaults=false;;
21707   --he | --h)
21708     # Conflict between --help and --header
21709     { echo "$as_me: error: ambiguous option: $1
21710 Try \`$0 --help' for more information." >&2
21711    { (exit 1); exit 1; }; };;
21712   --help | --hel | -h )
21713     echo "$ac_cs_usage"; exit ;;
21714   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21715   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21716     ac_cs_silent=: ;;
21717
21718   # This is an error.
21719   -*) { echo "$as_me: error: unrecognized option: $1
21720 Try \`$0 --help' for more information." >&2
21721    { (exit 1); exit 1; }; } ;;
21722
21723   *) ac_config_targets="$ac_config_targets $1"
21724      ac_need_defaults=false ;;
21725
21726   esac
21727   shift
21728 done
21729
21730 ac_configure_extra_args=
21731
21732 if $ac_cs_silent; then
21733   exec 6>/dev/null
21734   ac_configure_extra_args="$ac_configure_extra_args --silent"
21735 fi
21736
21737 _ACEOF
21738 cat >>$CONFIG_STATUS <<_ACEOF
21739 if \$ac_cs_recheck; then
21740   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21741   CONFIG_SHELL=$SHELL
21742   export CONFIG_SHELL
21743   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21744 fi
21745
21746 _ACEOF
21747 cat >>$CONFIG_STATUS <<\_ACEOF
21748 exec 5>>config.log
21749 {
21750   echo
21751   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21752 ## Running $as_me. ##
21753 _ASBOX
21754   echo "$ac_log"
21755 } >&5
21756
21757 _ACEOF
21758 cat >>$CONFIG_STATUS <<_ACEOF
21759 #
21760 # INIT-COMMANDS
21761 #
21762 llvm_src="${srcdir}"
21763
21764 _ACEOF
21765
21766 cat >>$CONFIG_STATUS <<\_ACEOF
21767
21768 # Handling of arguments.
21769 for ac_config_target in $ac_config_targets
21770 do
21771   case $ac_config_target in
21772     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21773     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21774     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21775     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21776     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21777     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21778     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21779     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21780     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21781     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21782     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21783     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21784     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21785     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21786     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21787     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21788     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21789     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21790     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21791     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21792     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21793     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21794     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21795     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21796     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21797     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21798     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21799
21800   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21801 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21802    { (exit 1); exit 1; }; };;
21803   esac
21804 done
21805
21806
21807 # If the user did not use the arguments to specify the items to instantiate,
21808 # then the envvar interface is used.  Set only those that are not.
21809 # We use the long form for the default assignment because of an extremely
21810 # bizarre bug on SunOS 4.1.3.
21811 if $ac_need_defaults; then
21812   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21813   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21814   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21815 fi
21816
21817 # Have a temporary directory for convenience.  Make it in the build tree
21818 # simply because there is no reason against having it here, and in addition,
21819 # creating and moving files from /tmp can sometimes cause problems.
21820 # Hook for its removal unless debugging.
21821 # Note that there is a small window in which the directory will not be cleaned:
21822 # after its creation but before its name has been assigned to `$tmp'.
21823 $debug ||
21824 {
21825   tmp=
21826   trap 'exit_status=$?
21827   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21828 ' 0
21829   trap '{ (exit 1); exit 1; }' 1 2 13 15
21830 }
21831 # Create a (secure) tmp directory for tmp files.
21832
21833 {
21834   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21835   test -n "$tmp" && test -d "$tmp"
21836 }  ||
21837 {
21838   tmp=./conf$$-$RANDOM
21839   (umask 077 && mkdir "$tmp")
21840 } ||
21841 {
21842    echo "$me: cannot create a temporary directory in ." >&2
21843    { (exit 1); exit 1; }
21844 }
21845
21846 #
21847 # Set up the sed scripts for CONFIG_FILES section.
21848 #
21849
21850 # No need to generate the scripts if there are no CONFIG_FILES.
21851 # This happens for instance when ./config.status config.h
21852 if test -n "$CONFIG_FILES"; then
21853
21854 _ACEOF
21855
21856
21857
21858 ac_delim='%!_!# '
21859 for ac_last_try in false false false false false :; do
21860   cat >conf$$subs.sed <<_ACEOF
21861 SHELL!$SHELL$ac_delim
21862 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21863 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21864 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21865 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21866 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21867 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21868 exec_prefix!$exec_prefix$ac_delim
21869 prefix!$prefix$ac_delim
21870 program_transform_name!$program_transform_name$ac_delim
21871 bindir!$bindir$ac_delim
21872 sbindir!$sbindir$ac_delim
21873 libexecdir!$libexecdir$ac_delim
21874 datarootdir!$datarootdir$ac_delim
21875 datadir!$datadir$ac_delim
21876 sysconfdir!$sysconfdir$ac_delim
21877 sharedstatedir!$sharedstatedir$ac_delim
21878 localstatedir!$localstatedir$ac_delim
21879 includedir!$includedir$ac_delim
21880 oldincludedir!$oldincludedir$ac_delim
21881 docdir!$docdir$ac_delim
21882 infodir!$infodir$ac_delim
21883 htmldir!$htmldir$ac_delim
21884 dvidir!$dvidir$ac_delim
21885 pdfdir!$pdfdir$ac_delim
21886 psdir!$psdir$ac_delim
21887 libdir!$libdir$ac_delim
21888 localedir!$localedir$ac_delim
21889 mandir!$mandir$ac_delim
21890 DEFS!$DEFS$ac_delim
21891 ECHO_C!$ECHO_C$ac_delim
21892 ECHO_N!$ECHO_N$ac_delim
21893 ECHO_T!$ECHO_T$ac_delim
21894 LIBS!$LIBS$ac_delim
21895 build_alias!$build_alias$ac_delim
21896 host_alias!$host_alias$ac_delim
21897 target_alias!$target_alias$ac_delim
21898 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21899 CC!$CC$ac_delim
21900 CFLAGS!$CFLAGS$ac_delim
21901 LDFLAGS!$LDFLAGS$ac_delim
21902 CPPFLAGS!$CPPFLAGS$ac_delim
21903 ac_ct_CC!$ac_ct_CC$ac_delim
21904 EXEEXT!$EXEEXT$ac_delim
21905 OBJEXT!$OBJEXT$ac_delim
21906 CXX!$CXX$ac_delim
21907 CXXFLAGS!$CXXFLAGS$ac_delim
21908 ac_ct_CXX!$ac_ct_CXX$ac_delim
21909 CPP!$CPP$ac_delim
21910 subdirs!$subdirs$ac_delim
21911 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21912 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21913 build!$build$ac_delim
21914 build_cpu!$build_cpu$ac_delim
21915 build_vendor!$build_vendor$ac_delim
21916 build_os!$build_os$ac_delim
21917 host!$host$ac_delim
21918 host_cpu!$host_cpu$ac_delim
21919 host_vendor!$host_vendor$ac_delim
21920 host_os!$host_os$ac_delim
21921 target!$target$ac_delim
21922 target_cpu!$target_cpu$ac_delim
21923 target_vendor!$target_vendor$ac_delim
21924 target_os!$target_os$ac_delim
21925 OS!$OS$ac_delim
21926 HOST_OS!$HOST_OS$ac_delim
21927 TARGET_OS!$TARGET_OS$ac_delim
21928 LINKALL!$LINKALL$ac_delim
21929 NOLINKALL!$NOLINKALL$ac_delim
21930 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21931 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21932 ARCH!$ARCH$ac_delim
21933 HOST_ARCH!$HOST_ARCH$ac_delim
21934 ENDIAN!$ENDIAN$ac_delim
21935 GREP!$GREP$ac_delim
21936 EGREP!$EGREP$ac_delim
21937 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21938 BUILD_CC!$BUILD_CC$ac_delim
21939 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21940 BUILD_CXX!$BUILD_CXX$ac_delim
21941 CVSBUILD!$CVSBUILD$ac_delim
21942 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21943 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21944 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21945 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21946 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21947 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21948 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21949 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21950 JIT!$JIT$ac_delim
21951 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21952 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21953 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21954 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21955 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21956 ENABLE_PIC!$ENABLE_PIC$ac_delim
21957 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21958 _ACEOF
21959
21960   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21961     break
21962   elif $ac_last_try; then
21963     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21964 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21965    { (exit 1); exit 1; }; }
21966   else
21967     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21968   fi
21969 done
21970
21971 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21972 if test -n "$ac_eof"; then
21973   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21974   ac_eof=`expr $ac_eof + 1`
21975 fi
21976
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21980 _ACEOF
21981 sed '
21982 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21983 s/^/s,@/; s/!/@,|#_!!_#|/
21984 :n
21985 t n
21986 s/'"$ac_delim"'$/,g/; t
21987 s/$/\\/; p
21988 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21989 ' >>$CONFIG_STATUS <conf$$subs.sed
21990 rm -f conf$$subs.sed
21991 cat >>$CONFIG_STATUS <<_ACEOF
21992 CEOF$ac_eof
21993 _ACEOF
21994
21995
21996 ac_delim='%!_!# '
21997 for ac_last_try in false false false false false :; do
21998   cat >conf$$subs.sed <<_ACEOF
21999 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22000 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22001 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22002 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22003 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22004 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22005 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22006 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22007 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22008 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22009 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22010 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22011 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22012 NM!$NM$ac_delim
22013 ifGNUmake!$ifGNUmake$ac_delim
22014 LN_S!$LN_S$ac_delim
22015 CMP!$CMP$ac_delim
22016 CP!$CP$ac_delim
22017 DATE!$DATE$ac_delim
22018 FIND!$FIND$ac_delim
22019 MKDIR!$MKDIR$ac_delim
22020 MV!$MV$ac_delim
22021 RANLIB!$RANLIB$ac_delim
22022 AR!$AR$ac_delim
22023 RM!$RM$ac_delim
22024 SED!$SED$ac_delim
22025 TAR!$TAR$ac_delim
22026 BINPWD!$BINPWD$ac_delim
22027 GRAPHVIZ!$GRAPHVIZ$ac_delim
22028 DOT!$DOT$ac_delim
22029 FDP!$FDP$ac_delim
22030 NEATO!$NEATO$ac_delim
22031 TWOPI!$TWOPI$ac_delim
22032 CIRCO!$CIRCO$ac_delim
22033 GV!$GV$ac_delim
22034 DOTTY!$DOTTY$ac_delim
22035 XDOT_PY!$XDOT_PY$ac_delim
22036 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22037 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22038 INSTALL_DATA!$INSTALL_DATA$ac_delim
22039 BZIP2!$BZIP2$ac_delim
22040 CAT!$CAT$ac_delim
22041 DOXYGEN!$DOXYGEN$ac_delim
22042 GROFF!$GROFF$ac_delim
22043 GZIPBIN!$GZIPBIN$ac_delim
22044 PDFROFF!$PDFROFF$ac_delim
22045 ZIP!$ZIP$ac_delim
22046 OCAMLC!$OCAMLC$ac_delim
22047 OCAMLOPT!$OCAMLOPT$ac_delim
22048 OCAMLDEP!$OCAMLDEP$ac_delim
22049 OCAMLDOC!$OCAMLDOC$ac_delim
22050 GAS!$GAS$ac_delim
22051 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22052 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22053 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22054 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22055 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22056 LIBADD_DL!$LIBADD_DL$ac_delim
22057 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22058 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22059 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22060 USE_UDIS86!$USE_UDIS86$ac_delim
22061 USE_OPROFILE!$USE_OPROFILE$ac_delim
22062 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22063 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22064 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22065 BUILD_FLAGS!$BUILD_FLAGS$ac_delim
22066 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22067 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22068 MMAP_FILE!$MMAP_FILE$ac_delim
22069 SHLIBEXT!$SHLIBEXT$ac_delim
22070 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22071 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22072 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22073 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22074 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22075 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22076 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22077 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22078 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22079 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22080 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22081 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22082 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22083 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22084 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22085 RPATH!$RPATH$ac_delim
22086 RDYNAMIC!$RDYNAMIC$ac_delim
22087 LIBOBJS!$LIBOBJS$ac_delim
22088 LTLIBOBJS!$LTLIBOBJS$ac_delim
22089 _ACEOF
22090
22091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22092     break
22093   elif $ac_last_try; then
22094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22096    { (exit 1); exit 1; }; }
22097   else
22098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22099   fi
22100 done
22101
22102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22103 if test -n "$ac_eof"; then
22104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22105   ac_eof=`expr $ac_eof + 1`
22106 fi
22107
22108 cat >>$CONFIG_STATUS <<_ACEOF
22109 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22111 _ACEOF
22112 sed '
22113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22114 s/^/s,@/; s/!/@,|#_!!_#|/
22115 :n
22116 t n
22117 s/'"$ac_delim"'$/,g/; t
22118 s/$/\\/; p
22119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22120 ' >>$CONFIG_STATUS <conf$$subs.sed
22121 rm -f conf$$subs.sed
22122 cat >>$CONFIG_STATUS <<_ACEOF
22123 :end
22124 s/|#_!!_#|//g
22125 CEOF$ac_eof
22126 _ACEOF
22127
22128
22129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22131 # trailing colons and then remove the whole line if VPATH becomes empty
22132 # (actually we leave an empty line to preserve line numbers).
22133 if test "x$srcdir" = x.; then
22134   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22135 s/:*\$(srcdir):*/:/
22136 s/:*\${srcdir}:*/:/
22137 s/:*@srcdir@:*/:/
22138 s/^\([^=]*=[     ]*\):*/\1/
22139 s/:*$//
22140 s/^[^=]*=[       ]*$//
22141 }'
22142 fi
22143
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145 fi # test -n "$CONFIG_FILES"
22146
22147
22148 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22149 do
22150   case $ac_tag in
22151   :[FHLC]) ac_mode=$ac_tag; continue;;
22152   esac
22153   case $ac_mode$ac_tag in
22154   :[FHL]*:*);;
22155   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22156 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22157    { (exit 1); exit 1; }; };;
22158   :[FH]-) ac_tag=-:-;;
22159   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22160   esac
22161   ac_save_IFS=$IFS
22162   IFS=:
22163   set x $ac_tag
22164   IFS=$ac_save_IFS
22165   shift
22166   ac_file=$1
22167   shift
22168
22169   case $ac_mode in
22170   :L) ac_source=$1;;
22171   :[FH])
22172     ac_file_inputs=
22173     for ac_f
22174     do
22175       case $ac_f in
22176       -) ac_f="$tmp/stdin";;
22177       *) # Look for the file first in the build tree, then in the source tree
22178          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22179          # because $ac_f cannot contain `:'.
22180          test -f "$ac_f" ||
22181            case $ac_f in
22182            [\\/$]*) false;;
22183            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22184            esac ||
22185            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22186 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22187    { (exit 1); exit 1; }; };;
22188       esac
22189       ac_file_inputs="$ac_file_inputs $ac_f"
22190     done
22191
22192     # Let's still pretend it is `configure' which instantiates (i.e., don't
22193     # use $as_me), people would be surprised to read:
22194     #    /* config.h.  Generated by config.status.  */
22195     configure_input="Generated from "`IFS=:
22196           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22197     if test x"$ac_file" != x-; then
22198       configure_input="$ac_file.  $configure_input"
22199       { echo "$as_me:$LINENO: creating $ac_file" >&5
22200 echo "$as_me: creating $ac_file" >&6;}
22201     fi
22202
22203     case $ac_tag in
22204     *:-:* | *:-) cat >"$tmp/stdin";;
22205     esac
22206     ;;
22207   esac
22208
22209   ac_dir=`$as_dirname -- "$ac_file" ||
22210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211          X"$ac_file" : 'X\(//\)[^/]' \| \
22212          X"$ac_file" : 'X\(//\)$' \| \
22213          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22214 echo X"$ac_file" |
22215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22216             s//\1/
22217             q
22218           }
22219           /^X\(\/\/\)[^/].*/{
22220             s//\1/
22221             q
22222           }
22223           /^X\(\/\/\)$/{
22224             s//\1/
22225             q
22226           }
22227           /^X\(\/\).*/{
22228             s//\1/
22229             q
22230           }
22231           s/.*/./; q'`
22232   { as_dir="$ac_dir"
22233   case $as_dir in #(
22234   -*) as_dir=./$as_dir;;
22235   esac
22236   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22237     as_dirs=
22238     while :; do
22239       case $as_dir in #(
22240       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22241       *) as_qdir=$as_dir;;
22242       esac
22243       as_dirs="'$as_qdir' $as_dirs"
22244       as_dir=`$as_dirname -- "$as_dir" ||
22245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22246          X"$as_dir" : 'X\(//\)[^/]' \| \
22247          X"$as_dir" : 'X\(//\)$' \| \
22248          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22249 echo X"$as_dir" |
22250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22251             s//\1/
22252             q
22253           }
22254           /^X\(\/\/\)[^/].*/{
22255             s//\1/
22256             q
22257           }
22258           /^X\(\/\/\)$/{
22259             s//\1/
22260             q
22261           }
22262           /^X\(\/\).*/{
22263             s//\1/
22264             q
22265           }
22266           s/.*/./; q'`
22267       test -d "$as_dir" && break
22268     done
22269     test -z "$as_dirs" || eval "mkdir $as_dirs"
22270   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22271 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22272    { (exit 1); exit 1; }; }; }
22273   ac_builddir=.
22274
22275 case "$ac_dir" in
22276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22277 *)
22278   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22279   # A ".." for each directory in $ac_dir_suffix.
22280   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22281   case $ac_top_builddir_sub in
22282   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22283   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22284   esac ;;
22285 esac
22286 ac_abs_top_builddir=$ac_pwd
22287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22288 # for backward compatibility:
22289 ac_top_builddir=$ac_top_build_prefix
22290
22291 case $srcdir in
22292   .)  # We are building in place.
22293     ac_srcdir=.
22294     ac_top_srcdir=$ac_top_builddir_sub
22295     ac_abs_top_srcdir=$ac_pwd ;;
22296   [\\/]* | ?:[\\/]* )  # Absolute name.
22297     ac_srcdir=$srcdir$ac_dir_suffix;
22298     ac_top_srcdir=$srcdir
22299     ac_abs_top_srcdir=$srcdir ;;
22300   *) # Relative name.
22301     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22302     ac_top_srcdir=$ac_top_build_prefix$srcdir
22303     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22304 esac
22305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22306
22307
22308   case $ac_mode in
22309   :F)
22310   #
22311   # CONFIG_FILE
22312   #
22313
22314   case $INSTALL in
22315   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22316   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22317   esac
22318 _ACEOF
22319
22320 cat >>$CONFIG_STATUS <<\_ACEOF
22321 # If the template does not know about datarootdir, expand it.
22322 # FIXME: This hack should be removed a few years after 2.60.
22323 ac_datarootdir_hack=; ac_datarootdir_seen=
22324
22325 case `sed -n '/datarootdir/ {
22326   p
22327   q
22328 }
22329 /@datadir@/p
22330 /@docdir@/p
22331 /@infodir@/p
22332 /@localedir@/p
22333 /@mandir@/p
22334 ' $ac_file_inputs` in
22335 *datarootdir*) ac_datarootdir_seen=yes;;
22336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22337   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22338 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22339 _ACEOF
22340 cat >>$CONFIG_STATUS <<_ACEOF
22341   ac_datarootdir_hack='
22342   s&@datadir@&$datadir&g
22343   s&@docdir@&$docdir&g
22344   s&@infodir@&$infodir&g
22345   s&@localedir@&$localedir&g
22346   s&@mandir@&$mandir&g
22347     s&\\\${datarootdir}&$datarootdir&g' ;;
22348 esac
22349 _ACEOF
22350
22351 # Neutralize VPATH when `$srcdir' = `.'.
22352 # Shell code in configure.ac might set extrasub.
22353 # FIXME: do we really want to maintain this feature?
22354 cat >>$CONFIG_STATUS <<_ACEOF
22355   sed "$ac_vpsub
22356 $extrasub
22357 _ACEOF
22358 cat >>$CONFIG_STATUS <<\_ACEOF
22359 :t
22360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22361 s&@configure_input@&$configure_input&;t t
22362 s&@top_builddir@&$ac_top_builddir_sub&;t t
22363 s&@srcdir@&$ac_srcdir&;t t
22364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22365 s&@top_srcdir@&$ac_top_srcdir&;t t
22366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22367 s&@builddir@&$ac_builddir&;t t
22368 s&@abs_builddir@&$ac_abs_builddir&;t t
22369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22370 s&@INSTALL@&$ac_INSTALL&;t t
22371 $ac_datarootdir_hack
22372 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22373
22374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22375   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22376   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22377   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22378 which seems to be undefined.  Please make sure it is defined." >&5
22379 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22380 which seems to be undefined.  Please make sure it is defined." >&2;}
22381
22382   rm -f "$tmp/stdin"
22383   case $ac_file in
22384   -) cat "$tmp/out"; rm -f "$tmp/out";;
22385   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22386   esac
22387  ;;
22388   :H)
22389   #
22390   # CONFIG_HEADER
22391   #
22392 _ACEOF
22393
22394 # Transform confdefs.h into a sed script `conftest.defines', that
22395 # substitutes the proper values into config.h.in to produce config.h.
22396 rm -f conftest.defines conftest.tail
22397 # First, append a space to every undef/define line, to ease matching.
22398 echo 's/$/ /' >conftest.defines
22399 # Then, protect against being on the right side of a sed subst, or in
22400 # an unquoted here document, in config.status.  If some macros were
22401 # called several times there might be several #defines for the same
22402 # symbol, which is useless.  But do not sort them, since the last
22403 # AC_DEFINE must be honored.
22404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22405 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22406 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22407 # PARAMS is the parameter list in the macro definition--in most cases, it's
22408 # just an empty string.
22409 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22410 ac_dB='\\)[      (].*,\\1define\\2'
22411 ac_dC=' '
22412 ac_dD=' ,'
22413
22414 uniq confdefs.h |
22415   sed -n '
22416         t rset
22417         :rset
22418         s/^[     ]*#[    ]*define[       ][      ]*//
22419         t ok
22420         d
22421         :ok
22422         s/[\\&,]/\\&/g
22423         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22424         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22425   ' >>conftest.defines
22426
22427 # Remove the space that was appended to ease matching.
22428 # Then replace #undef with comments.  This is necessary, for
22429 # example, in the case of _POSIX_SOURCE, which is predefined and required
22430 # on some systems where configure will not decide to define it.
22431 # (The regexp can be short, since the line contains either #define or #undef.)
22432 echo 's/ $//
22433 s,^[     #]*u.*,/* & */,' >>conftest.defines
22434
22435 # Break up conftest.defines:
22436 ac_max_sed_lines=50
22437
22438 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22439 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22440 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22441 # et cetera.
22442 ac_in='$ac_file_inputs'
22443 ac_out='"$tmp/out1"'
22444 ac_nxt='"$tmp/out2"'
22445
22446 while :
22447 do
22448   # Write a here document:
22449     cat >>$CONFIG_STATUS <<_ACEOF
22450     # First, check the format of the line:
22451     cat >"\$tmp/defines.sed" <<\\CEOF
22452 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22453 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22454 b
22455 :def
22456 _ACEOF
22457   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22458   echo 'CEOF
22459     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22460   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22461   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22462   grep . conftest.tail >/dev/null || break
22463   rm -f conftest.defines
22464   mv conftest.tail conftest.defines
22465 done
22466 rm -f conftest.defines conftest.tail
22467
22468 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22469 cat >>$CONFIG_STATUS <<\_ACEOF
22470   if test x"$ac_file" != x-; then
22471     echo "/* $configure_input  */" >"$tmp/config.h"
22472     cat "$ac_result" >>"$tmp/config.h"
22473     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22474       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22475 echo "$as_me: $ac_file is unchanged" >&6;}
22476     else
22477       rm -f $ac_file
22478       mv "$tmp/config.h" $ac_file
22479     fi
22480   else
22481     echo "/* $configure_input  */"
22482     cat "$ac_result"
22483   fi
22484   rm -f "$tmp/out12"
22485  ;;
22486
22487   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22488 echo "$as_me: executing $ac_file commands" >&6;}
22489  ;;
22490   esac
22491
22492
22493   case $ac_file$ac_mode in
22494     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22495    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22496     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22497    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22498     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22500     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22501    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22502     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22503    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22504     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22505    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22506     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22507    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22508     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22509    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22510     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22511    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22512     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22513    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22514     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22515    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22516     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22517    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22518     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22519    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22520
22521   esac
22522 done # for ac_tag
22523
22524
22525 { (exit 0); exit 0; }
22526 _ACEOF
22527 chmod +x $CONFIG_STATUS
22528 ac_clean_files=$ac_clean_files_save
22529
22530
22531 # configure is writing to config.log, and then calls config.status.
22532 # config.status does its own redirection, appending to config.log.
22533 # Unfortunately, on DOS this fails, as config.log is still kept open
22534 # by configure, so config.status won't be able to write to it; its
22535 # output is simply discarded.  So we exec the FD to /dev/null,
22536 # effectively closing config.log, so it can be properly (re)opened and
22537 # appended to by config.status.  When coming back to configure, we
22538 # need to make the FD available again.
22539 if test "$no_create" != yes; then
22540   ac_cs_success=:
22541   ac_config_status_args=
22542   test "$silent" = yes &&
22543     ac_config_status_args="$ac_config_status_args --quiet"
22544   exec 5>/dev/null
22545   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22546   exec 5>>config.log
22547   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22548   # would make configure fail if this is the last instruction.
22549   $ac_cs_success || { (exit 1); exit 1; }
22550 fi
22551
22552 #
22553 # CONFIG_SUBDIRS section.
22554 #
22555 if test "$no_recursion" != yes; then
22556
22557   # Remove --cache-file and --srcdir arguments so they do not pile up.
22558   ac_sub_configure_args=
22559   ac_prev=
22560   eval "set x $ac_configure_args"
22561   shift
22562   for ac_arg
22563   do
22564     if test -n "$ac_prev"; then
22565       ac_prev=
22566       continue
22567     fi
22568     case $ac_arg in
22569     -cache-file | --cache-file | --cache-fil | --cache-fi \
22570     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22571       ac_prev=cache_file ;;
22572     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22573     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22574     | --c=*)
22575       ;;
22576     --config-cache | -C)
22577       ;;
22578     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22579       ac_prev=srcdir ;;
22580     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22581       ;;
22582     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22583       ac_prev=prefix ;;
22584     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22585       ;;
22586     *)
22587       case $ac_arg in
22588       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22589       esac
22590       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22591     esac
22592   done
22593
22594   # Always prepend --prefix to ensure using the same prefix
22595   # in subdir configurations.
22596   ac_arg="--prefix=$prefix"
22597   case $ac_arg in
22598   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22599   esac
22600   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22601
22602   ac_popdir=`pwd`
22603   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22604
22605     # Do not complain, so a configure script can configure whichever
22606     # parts of a large source tree are present.
22607     test -d "$srcdir/$ac_dir" || continue
22608
22609     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22610     echo "$as_me:$LINENO: $ac_msg" >&5
22611     echo "$ac_msg" >&6
22612     { as_dir="$ac_dir"
22613   case $as_dir in #(
22614   -*) as_dir=./$as_dir;;
22615   esac
22616   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22617     as_dirs=
22618     while :; do
22619       case $as_dir in #(
22620       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22621       *) as_qdir=$as_dir;;
22622       esac
22623       as_dirs="'$as_qdir' $as_dirs"
22624       as_dir=`$as_dirname -- "$as_dir" ||
22625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22626          X"$as_dir" : 'X\(//\)[^/]' \| \
22627          X"$as_dir" : 'X\(//\)$' \| \
22628          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22629 echo X"$as_dir" |
22630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22631             s//\1/
22632             q
22633           }
22634           /^X\(\/\/\)[^/].*/{
22635             s//\1/
22636             q
22637           }
22638           /^X\(\/\/\)$/{
22639             s//\1/
22640             q
22641           }
22642           /^X\(\/\).*/{
22643             s//\1/
22644             q
22645           }
22646           s/.*/./; q'`
22647       test -d "$as_dir" && break
22648     done
22649     test -z "$as_dirs" || eval "mkdir $as_dirs"
22650   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22651 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22652    { (exit 1); exit 1; }; }; }
22653     ac_builddir=.
22654
22655 case "$ac_dir" in
22656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22657 *)
22658   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22659   # A ".." for each directory in $ac_dir_suffix.
22660   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22661   case $ac_top_builddir_sub in
22662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22664   esac ;;
22665 esac
22666 ac_abs_top_builddir=$ac_pwd
22667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22668 # for backward compatibility:
22669 ac_top_builddir=$ac_top_build_prefix
22670
22671 case $srcdir in
22672   .)  # We are building in place.
22673     ac_srcdir=.
22674     ac_top_srcdir=$ac_top_builddir_sub
22675     ac_abs_top_srcdir=$ac_pwd ;;
22676   [\\/]* | ?:[\\/]* )  # Absolute name.
22677     ac_srcdir=$srcdir$ac_dir_suffix;
22678     ac_top_srcdir=$srcdir
22679     ac_abs_top_srcdir=$srcdir ;;
22680   *) # Relative name.
22681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22682     ac_top_srcdir=$ac_top_build_prefix$srcdir
22683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22684 esac
22685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22686
22687
22688     cd "$ac_dir"
22689
22690     # Check for guested configure; otherwise get Cygnus style configure.
22691     if test -f "$ac_srcdir/configure.gnu"; then
22692       ac_sub_configure=$ac_srcdir/configure.gnu
22693     elif test -f "$ac_srcdir/configure"; then
22694       ac_sub_configure=$ac_srcdir/configure
22695     elif test -f "$ac_srcdir/configure.in"; then
22696       # This should be Cygnus configure.
22697       ac_sub_configure=$ac_aux_dir/configure
22698     else
22699       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22700 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22701       ac_sub_configure=
22702     fi
22703
22704     # The recursion is here.
22705     if test -n "$ac_sub_configure"; then
22706       # Make the cache file name correct relative to the subdirectory.
22707       case $cache_file in
22708       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22709       *) # Relative name.
22710         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22711       esac
22712
22713       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22714 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22715       # The eval makes quoting arguments work.
22716       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22717            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22718         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22719 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22720    { (exit 1); exit 1; }; }
22721     fi
22722
22723     cd "$ac_popdir"
22724   done
22725 fi
22726