autoconf: generate clang's private config.h header
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 subdirs
655 ENABLE_POLLY
656 LLVM_HAS_POLLY
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_OPTIMIZED
687 ENABLE_PROFILING
688 DISABLE_ASSERTIONS
689 ENABLE_EXPENSIVE_CHECKS
690 EXPENSIVE_CHECKS
691 DEBUG_RUNTIME
692 DEBUG_SYMBOLS
693 JIT
694 TARGET_HAS_JIT
695 ENABLE_DOCS
696 ENABLE_DOXYGEN
697 LLVM_ENABLE_THREADS
698 ENABLE_PTHREADS
699 ENABLE_PIC
700 ENABLE_SHARED
701 ENABLE_EMBED_STDCXX
702 ENABLE_TIMESTAMPS
703 TARGETS_TO_BUILD
704 LLVM_ENUM_TARGETS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
708 ENABLE_CBE_PRINTF_A
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 PERL
740 HAVE_PERL
741 INSTALL_PROGRAM
742 INSTALL_SCRIPT
743 INSTALL_DATA
744 BZIP2
745 CAT
746 DOXYGEN
747 GROFF
748 GZIPBIN
749 POD2HTML
750 POD2MAN
751 PDFROFF
752 RUNTEST
753 TCLSH
754 ZIP
755 OCAMLC
756 OCAMLOPT
757 OCAMLDEP
758 OCAMLDOC
759 GAS
760 HAVE_LINK_VERSION_SCRIPT
761 INSTALL_LTDL_TRUE
762 INSTALL_LTDL_FALSE
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
765 LIBADD_DL
766 NO_VARIADIC_MACROS
767 NO_MISSING_FIELD_INITIALIZERS
768 USE_UDIS86
769 USE_OPROFILE
770 HAVE_PTHREAD
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 CPP'
805 ac_subdirs_all='projects/llvm-gcc
806 projects/test-suite
807 projects/llvm-test
808 projects/poolalloc
809 projects/llvm-poolalloc
810 projects/sample
811 projects/privbracket
812 projects/llvm-stacker
813 projects/llvm-reopt
814 projects/llvm-java
815 projects/llvm-tv
816 projects/safecode
817 projects/llvm-kernel
818 tools/polly'
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870   # If the previous option needs an argument, assign it.
871   if test -n "$ac_prev"; then
872     eval $ac_prev=\$ac_option
873     ac_prev=
874     continue
875   fi
876
877   case $ac_option in
878   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879   *)    ac_optarg=yes ;;
880   esac
881
882   # Accept the important Cygnus configure options, so we can diagnose typos.
883
884   case $ac_dashdash$ac_option in
885   --)
886     ac_dashdash=yes ;;
887
888   -bindir | --bindir | --bindi | --bind | --bin | --bi)
889     ac_prev=bindir ;;
890   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891     bindir=$ac_optarg ;;
892
893   -build | --build | --buil | --bui | --bu)
894     ac_prev=build_alias ;;
895   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896     build_alias=$ac_optarg ;;
897
898   -cache-file | --cache-file | --cache-fil | --cache-fi \
899   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900     ac_prev=cache_file ;;
901   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903     cache_file=$ac_optarg ;;
904
905   --config-cache | -C)
906     cache_file=config.cache ;;
907
908   -datadir | --datadir | --datadi | --datad)
909     ac_prev=datadir ;;
910   -datadir=* | --datadir=* | --datadi=* | --datad=*)
911     datadir=$ac_optarg ;;
912
913   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914   | --dataroo | --dataro | --datar)
915     ac_prev=datarootdir ;;
916   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918     datarootdir=$ac_optarg ;;
919
920   -disable-* | --disable-*)
921     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922     # Reject names that are not valid shell variable names.
923     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
924       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925    { (exit 1); exit 1; }; }
926     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
927     eval enable_$ac_feature=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
943       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
944    { (exit 1); exit 1; }; }
945     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
946     eval enable_$ac_feature=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140       { echo "$as_me: error: invalid package name: $ac_package" >&2
1141    { (exit 1); exit 1; }; }
1142     ac_package=`echo $ac_package| sed 's/-/_/g'`
1143     eval with_$ac_package=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package | sed 's/-/_/g'`
1152     eval with_$ac_package=no ;;
1153
1154   --x)
1155     # Obsolete; use --with-x.
1156     with_x=yes ;;
1157
1158   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159   | --x-incl | --x-inc | --x-in | --x-i)
1160     ac_prev=x_includes ;;
1161   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163     x_includes=$ac_optarg ;;
1164
1165   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167     ac_prev=x_libraries ;;
1168   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170     x_libraries=$ac_optarg ;;
1171
1172   -*) { echo "$as_me: error: unrecognized option: $ac_option
1173 Try \`$0 --help' for more information." >&2
1174    { (exit 1); exit 1; }; }
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1181       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1182    { (exit 1); exit 1; }; }
1183     eval $ac_envvar=\$ac_optarg
1184     export $ac_envvar ;;
1185
1186   *)
1187     # FIXME: should be removed in autoconf 3.0.
1188     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192     ;;
1193
1194   esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199   { echo "$as_me: error: missing argument to $ac_option" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202
1203 # Be sure to have absolute directory names.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   case $ac_val in
1211     [\\/$]* | ?:[\\/]* )  continue;;
1212     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213   esac
1214   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1215    { (exit 1); exit 1; }; }
1216 done
1217
1218 # There might be people who depend on the old broken behavior: `$host'
1219 # used to hold the argument of --host etc.
1220 # FIXME: To remove some day.
1221 build=$build_alias
1222 host=$host_alias
1223 target=$target_alias
1224
1225 # FIXME: To remove some day.
1226 if test "x$host_alias" != x; then
1227   if test "x$build_alias" = x; then
1228     cross_compiling=maybe
1229     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1230     If a cross compiler is detected then cross compile mode will be used." >&2
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   { echo "$as_me: error: Working directory cannot be determined" >&2
1246    { (exit 1); exit 1; }; }
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248   { echo "$as_me: error: pwd does not report name of working directory" >&2
1249    { (exit 1); exit 1; }; }
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$0" ||
1257 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$0" : 'X\(//\)[^/]' \| \
1259          X"$0" : 'X\(//\)$' \| \
1260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 echo X"$0" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1289    { (exit 1); exit 1; }; }
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1294    { (exit 1); exit 1; }; }
1295         pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298   srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_env_${ac_var}_value=\$${ac_var}
1309   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317   # Omit some internal or obsolete options to make the list less imposing.
1318   # This message is too long to be a string in the A/UX 3.1 sh.
1319   cat <<_ACEOF
1320 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE.  See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330   -h, --help              display this help and exit
1331       --help=short        display options specific to this package
1332       --help=recursive    display the short help of all the included packages
1333   -V, --version           display version information and exit
1334   -q, --quiet, --silent   do not print \`checking...' messages
1335       --cache-file=FILE   cache test results in FILE [disabled]
1336   -C, --config-cache      alias for \`--cache-file=config.cache'
1337   -n, --no-create         do not create output files
1338       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341   --prefix=PREFIX         install architecture-independent files in PREFIX
1342                           [$ac_default_prefix]
1343   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1344                           [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354   --bindir=DIR           user executables [EPREFIX/bin]
1355   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1356   --libexecdir=DIR       program executables [EPREFIX/libexec]
1357   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1358   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1359   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1360   --libdir=DIR           object code libraries [EPREFIX/lib]
1361   --includedir=DIR       C header files [PREFIX/include]
1362   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1363   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1364   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1365   --infodir=DIR          info documentation [DATAROOTDIR/info]
1366   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1367   --mandir=DIR           man documentation [DATAROOTDIR/man]
1368   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1369   --htmldir=DIR          html documentation [DOCDIR]
1370   --dvidir=DIR           dvi documentation [DOCDIR]
1371   --pdfdir=DIR           pdf documentation [DOCDIR]
1372   --psdir=DIR            ps documentation [DOCDIR]
1373 _ACEOF
1374
1375   cat <<\_ACEOF
1376
1377 System types:
1378   --build=BUILD     configure for building on BUILD [guessed]
1379   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380   --target=TARGET   configure for building compilers for TARGET [HOST]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385   case $ac_init_help in
1386      short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1387    esac
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393   --enable-polly          Use polly if available (default is YES)
1394   --enable-libcpp         Use libc++ if available (default is NO)
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-docs           Build documents (default is YES)
1408   --enable-doxygen        Build doxygen documentation (default is NO)
1409   --enable-threads        Use threads if available (default is YES)
1410   --enable-pthreads       Use pthreads if available (default is YES)
1411   --enable-pic            Build LLVM with Position Independent Code (default
1412                           is YES)
1413   --enable-shared         Build a shared library and link tools against it
1414                           (default is NO)
1415   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1416                           Win32 DLL (default is NO)
1417   --enable-timestamps     Enable embedding timestamp information in build
1418                           (default is YES)
1419   --enable-targets        Build specific host targets: all or
1420                           target1,target2,... Valid targets are: host, x86,
1421                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1422                           xcore, msp430, ptx, cbe, and cpp (default=all)
1423   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1424                           %a (default is YES)
1425   --enable-bindings       Build specific language bindings:
1426                           all,auto,none,{binding-name} (default=auto)
1427   --enable-libffi         Check for the presence of libffi (default is NO)
1428   --enable-ltdl-install   install libltdl
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-optimize-option  Select the compiler options to use for optimized
1434                           builds
1435   --with-extra-options    Specify additional options to compile LLVM with
1436   --with-extra-ld-options Specify additional options to link LLVM with
1437   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1438                           is stdlib)
1439   --with-clang-srcdir     Directory to the out-of-tree Clang source
1440   --with-clang-resource-dir
1441                           Relative directory from the Clang binary for
1442                           resource files
1443   --with-c-include-dirs   Colon separated list of directories clang will
1444                           search for headers
1445   --with-cxx-include-root Directory with the libstdc++ headers.
1446   --with-cxx-include-arch Architecture of the libstdc++ headers.
1447   --with-cxx-include-32bit-dir
1448                           32 bit multilib dir.
1449   --with-cxx-include-64bit-dir
1450                           64 bit multilib directory.
1451   --with-binutils-include Specify path to binutils/include/ containing
1452                           plugin-api.h file for gold plugin.
1453   --with-bug-report-url   Specify the URL where bug reports should be
1454                           submitted (default=http://llvm.org/bugs/)
1455   --with-internal-prefix  Installation directory for internal files
1456   --with-tclinclude       directory where tcl headers are
1457   --with-udis86=<path>    Use udis86 external x86 disassembler library
1458   --with-oprofile=<prefix>
1459                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1460
1461 Some influential environment variables:
1462   CC          C compiler command
1463   CFLAGS      C compiler flags
1464   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465               nonstandard directory <lib dir>
1466   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467               you have headers in a nonstandard directory <include dir>
1468   CXX         C++ compiler command
1469   CXXFLAGS    C++ compiler flags
1470   CPP         C preprocessor
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <http://llvm.org/bugs/>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481   # If there are subdirs, report their specific --help.
1482   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483     test -d "$ac_dir" || continue
1484     ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490   # A ".." for each directory in $ac_dir_suffix.
1491   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492   case $ac_top_builddir_sub in
1493   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495   esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503   .)  # We are building in place.
1504     ac_srcdir=.
1505     ac_top_srcdir=$ac_top_builddir_sub
1506     ac_abs_top_srcdir=$ac_pwd ;;
1507   [\\/]* | ?:[\\/]* )  # Absolute name.
1508     ac_srcdir=$srcdir$ac_dir_suffix;
1509     ac_top_srcdir=$srcdir
1510     ac_abs_top_srcdir=$srcdir ;;
1511   *) # Relative name.
1512     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513     ac_top_srcdir=$ac_top_build_prefix$srcdir
1514     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518     cd "$ac_dir" || { ac_status=$?; continue; }
1519     # Check for guested configure.
1520     if test -f "$ac_srcdir/configure.gnu"; then
1521       echo &&
1522       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523     elif test -f "$ac_srcdir/configure"; then
1524       echo &&
1525       $SHELL "$ac_srcdir/configure" --help=recursive
1526     else
1527       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528     fi || ac_status=$?
1529     cd "$ac_pwd" || { ac_status=$?; break; }
1530   done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535   cat <<\_ACEOF
1536 LLVM configure 3.1svn
1537 generated by GNU Autoconf 2.60
1538
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543
1544 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1545 _ACEOF
1546   exit
1547 fi
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by LLVM $as_me 3.1svn, which was
1553 generated by GNU Autoconf 2.60.  Invocation command line was
1554
1555   $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1573
1574 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1575 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1578 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1579 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1580 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616   for ac_arg
1617   do
1618     case $ac_arg in
1619     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621     | -silent | --silent | --silen | --sile | --sil)
1622       continue ;;
1623     *\'*)
1624       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625     esac
1626     case $ac_pass in
1627     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1628     2)
1629       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630       if test $ac_must_keep_next = true; then
1631         ac_must_keep_next=false # Got value, back to normal.
1632       else
1633         case $ac_arg in
1634           *=* | --config-cache | -C | -disable-* | --disable-* \
1635           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637           | -with-* | --with-* | -without-* | --without-* | --x)
1638             case "$ac_configure_args0 " in
1639               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640             esac
1641             ;;
1642           -* ) ac_must_keep_next=true ;;
1643         esac
1644       fi
1645       ac_configure_args="$ac_configure_args '$ac_arg'"
1646       ;;
1647     esac
1648   done
1649 done
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log.  We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659   # Save into config.log some information that might help in debugging.
1660   {
1661     echo
1662
1663     cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668     echo
1669     # The following way of writing the cache mishandles newlines in values,
1670 (
1671   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672     eval ac_val=\$$ac_var
1673     case $ac_val in #(
1674     *${as_nl}*)
1675       case $ac_var in #(
1676       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1678       esac
1679       case $ac_var in #(
1680       _ | IFS | as_nl) ;; #(
1681       *) $as_unset $ac_var ;;
1682       esac ;;
1683     esac
1684   done
1685   (set) 2>&1 |
1686     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687     *${as_nl}ac_space=\ *)
1688       sed -n \
1689         "s/'\''/'\''\\\\'\'''\''/g;
1690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691       ;; #(
1692     *)
1693       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694       ;;
1695     esac |
1696     sort
1697 )
1698     echo
1699
1700     cat <<\_ASBOX
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1704 _ASBOX
1705     echo
1706     for ac_var in $ac_subst_vars
1707     do
1708       eval ac_val=\$$ac_var
1709       case $ac_val in
1710       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711       esac
1712       echo "$ac_var='\''$ac_val'\''"
1713     done | sort
1714     echo
1715
1716     if test -n "$ac_subst_files"; then
1717       cat <<\_ASBOX
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1721 _ASBOX
1722       echo
1723       for ac_var in $ac_subst_files
1724       do
1725         eval ac_val=\$$ac_var
1726         case $ac_val in
1727         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728         esac
1729         echo "$ac_var='\''$ac_val'\''"
1730       done | sort
1731       echo
1732     fi
1733
1734     if test -s confdefs.h; then
1735       cat <<\_ASBOX
1736 ## ----------- ##
1737 ## confdefs.h. ##
1738 ## ----------- ##
1739 _ASBOX
1740       echo
1741       cat confdefs.h
1742       echo
1743     fi
1744     test "$ac_signal" != 0 &&
1745       echo "$as_me: caught signal $ac_signal"
1746     echo "$as_me: exit $exit_status"
1747   } >&5
1748   rm -f core *.core core.conftest.* &&
1749     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1750     exit $exit_status
1751 ' 0
1752 for ac_signal in 1 2 13 15; do
1753   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 done
1755 ac_signal=0
1756
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1759
1760 # Predefined preprocessor variables.
1761
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 _ACEOF
1765
1766
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 _ACEOF
1770
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 _ACEOF
1775
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 _ACEOF
1785
1786
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790   set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1793 else
1794   set x "$ac_default_prefix/share/config.site" \
1795         "$ac_default_prefix/etc/config.site"
1796 fi
1797 shift
1798 for ac_site_file
1799 do
1800   if test -r "$ac_site_file"; then
1801     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803     sed 's/^/| /' "$ac_site_file" >&5
1804     . "$ac_site_file"
1805   fi
1806 done
1807
1808 if test -r "$cache_file"; then
1809   # Some versions of bash will fail to source /dev/null (special
1810   # files actually), so we avoid doing that.
1811   if test -f "$cache_file"; then
1812     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1814     case $cache_file in
1815       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816       *)                      . "./$cache_file";;
1817     esac
1818   fi
1819 else
1820   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1822   >$cache_file
1823 fi
1824
1825 # Check that the precious variables saved in the cache have kept the same
1826 # value.
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830   eval ac_new_set=\$ac_env_${ac_var}_set
1831   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832   eval ac_new_val=\$ac_env_${ac_var}_value
1833   case $ac_old_set,$ac_new_set in
1834     set,)
1835       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837       ac_cache_corrupted=: ;;
1838     ,set)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,);;
1843     *)
1844       if test "x$ac_old_val" != "x$ac_new_val"; then
1845         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1848 echo "$as_me:   former value:  $ac_old_val" >&2;}
1849         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1850 echo "$as_me:   current value: $ac_new_val" >&2;}
1851         ac_cache_corrupted=:
1852       fi;;
1853   esac
1854   # Pass precious variables to config.status.
1855   if test "$ac_new_set" = set; then
1856     case $ac_new_val in
1857     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858     *) ac_arg=$ac_var=$ac_new_val ;;
1859     esac
1860     case " $ac_configure_args " in
1861       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1862       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863     esac
1864   fi
1865 done
1866 if $ac_cache_corrupted; then
1867   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898 ac_ext=c
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1907
1908
1909
1910
1911
1912
1913
1914 ac_aux_dir=
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916   if test -f "$ac_dir/install-sh"; then
1917     ac_aux_dir=$ac_dir
1918     ac_install_sh="$ac_aux_dir/install-sh -c"
1919     break
1920   elif test -f "$ac_dir/install.sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install.sh -c"
1923     break
1924   elif test -f "$ac_dir/shtool"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/shtool install -c"
1927     break
1928   fi
1929 done
1930 if test -z "$ac_aux_dir"; then
1931   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1943
1944
1945
1946 if test ${srcdir} != "." ; then
1947   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950    { (exit 1); exit 1; }; }
1951   fi
1952 fi
1953
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1959 if test -n "$ac_tool_prefix"; then
1960   for ac_prog in clang llvm-gcc gcc
1961   do
1962     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1966 if test "${ac_cv_prog_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$CC"; then
1970   ac_cv_prog_CC="$CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1979     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985 IFS=$as_save_IFS
1986
1987 fi
1988 fi
1989 CC=$ac_cv_prog_CC
1990 if test -n "$CC"; then
1991   { echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6; }
1993 else
1994   { echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6; }
1996 fi
1997
1998
1999     test -n "$CC" && break
2000   done
2001 fi
2002 if test -z "$CC"; then
2003   ac_ct_CC=$CC
2004   for ac_prog in clang llvm-gcc gcc
2005 do
2006   # Extract the first word of "$ac_prog", so it can be a program name with args.
2007 set dummy $ac_prog; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_ac_ct_CC="$ac_prog"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042
2043   test -n "$ac_ct_CC" && break
2044 done
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 fi
2062
2063
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO: checking for C compiler version" >&5
2072 ac_compiler=`set X $ac_compile; echo $2`
2073 { (ac_try="$ac_compiler --version >&5"
2074 case "(($ac_try" in
2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076   *) ac_try_echo=$ac_try;;
2077 esac
2078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2079   (eval "$ac_compiler --version >&5") 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }
2083 { (ac_try="$ac_compiler -v >&5"
2084 case "(($ac_try" in
2085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086   *) ac_try_echo=$ac_try;;
2087 esac
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089   (eval "$ac_compiler -v >&5") 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }
2093 { (ac_try="$ac_compiler -V >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler -V >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103
2104 cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 ac_clean_files_save=$ac_clean_files
2120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2121 # Try to create an executable without -o first, disregard a.out.
2122 # It will help us diagnose broken compilers, and finding out an intuition
2123 # of exeext.
2124 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2125 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2127 #
2128 # List of possible output files, starting from the most likely.
2129 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2130 # only as a last resort.  b.out is created by i960 compilers.
2131 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2132 #
2133 # The IRIX 6 linker writes into existing files which may not be
2134 # executable, retaining their permissions.  Remove them first so a
2135 # subsequent execution test works.
2136 ac_rmfiles=
2137 for ac_file in $ac_files
2138 do
2139   case $ac_file in
2140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2141     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2142   esac
2143 done
2144 rm -f $ac_rmfiles
2145
2146 if { (ac_try="$ac_link_default"
2147 case "(($ac_try" in
2148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149   *) ac_try_echo=$ac_try;;
2150 esac
2151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2152   (eval "$ac_link_default") 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2159 # so that the user can short-circuit this test for compilers unknown to
2160 # Autoconf.
2161 for ac_file in $ac_files
2162 do
2163   test -f "$ac_file" || continue
2164   case $ac_file in
2165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2166         ;;
2167     [ab].out )
2168         # We found the default executable, but exeext='' is most
2169         # certainly right.
2170         break;;
2171     *.* )
2172         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2173         then :; else
2174            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2175         fi
2176         # We set ac_cv_exeext here because the later test for it is not
2177         # safe: cross compilers may not add the suffix if given an `-o'
2178         # argument, so we may need to know it at that point already.
2179         # Even if this section looks crufty: it has the advantage of
2180         # actually working.
2181         break;;
2182     * )
2183         break;;
2184   esac
2185 done
2186 test "$ac_cv_exeext" = no && ac_cv_exeext=
2187
2188 else
2189   echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: C compiler cannot create executables
2195 See \`config.log' for more details." >&2;}
2196    { (exit 77); exit 77; }; }
2197 fi
2198
2199 ac_exeext=$ac_cv_exeext
2200 { echo "$as_me:$LINENO: result: $ac_file" >&5
2201 echo "${ECHO_T}$ac_file" >&6; }
2202
2203 # Check that the compiler produces executables we can run.  If not, either
2204 # the compiler is broken, or we cross compile.
2205 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2206 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2207 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2208 # If not cross compiling, check that we can run a simple program.
2209 if test "$cross_compiling" != yes; then
2210   if { ac_try='./$ac_file'
2211   { (case "(($ac_try" in
2212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2213   *) ac_try_echo=$ac_try;;
2214 esac
2215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2216   (eval "$ac_try") 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220     cross_compiling=no
2221   else
2222     if test "$cross_compiling" = maybe; then
2223         cross_compiling=yes
2224     else
2225         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2226 If you meant to cross compile, use \`--host'.
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot run C compiled programs.
2229 If you meant to cross compile, use \`--host'.
2230 See \`config.log' for more details." >&2;}
2231    { (exit 1); exit 1; }; }
2232     fi
2233   fi
2234 fi
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237
2238 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2239 ac_clean_files=$ac_clean_files_save
2240 # Check that the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2243 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2244 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2245 echo "${ECHO_T}$cross_compiling" >&6; }
2246
2247 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2248 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2249 if { (ac_try="$ac_link"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_link") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 # `rm'.
2263 for ac_file in conftest.exe conftest conftest.*; do
2264   test -f "$ac_file" || continue
2265   case $ac_file in
2266     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2267     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268           break;;
2269     * ) break;;
2270   esac
2271 done
2272 else
2273   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277    { (exit 1); exit 1; }; }
2278 fi
2279
2280 rm -f conftest$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2283
2284 rm -f conftest.$ac_ext
2285 EXEEXT=$ac_cv_exeext
2286 ac_exeext=$EXEEXT
2287 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2289 if test "${ac_cv_objext+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298
2299 int
2300 main ()
2301 {
2302
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.o conftest.obj
2308 if { (ac_try="$ac_compile"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314   (eval "$ac_compile") 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   for ac_file in conftest.o conftest.obj conftest.*; do
2319   test -f "$ac_file" || continue;
2320   case $ac_file in
2321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2322     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2323        break;;
2324   esac
2325 done
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335 fi
2336
2337 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2338 fi
2339 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2340 echo "${ECHO_T}$ac_cv_objext" >&6; }
2341 OBJEXT=$ac_cv_objext
2342 ac_objext=$OBJEXT
2343 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2344 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2345 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h.  */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h.  */
2354
2355 int
2356 main ()
2357 {
2358 #ifndef __GNUC__
2359        choke me
2360 #endif
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compile") 2>conftest.er1
2374   ac_status=$?
2375   grep -v '^ *+' conftest.er1 >conftest.err
2376   rm -f conftest.er1
2377   cat conftest.err >&5
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); } &&
2380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2381   { (case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_try") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (case "(($ac_try" in
2392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393   *) ac_try_echo=$ac_try;;
2394 esac
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396   (eval "$ac_try") 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; }; then
2400   ac_compiler_gnu=yes
2401 else
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405         ac_compiler_gnu=no
2406 fi
2407
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2418 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_cc_g+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_save_c_werror_flag=$ac_c_werror_flag
2423    ac_c_werror_flag=yes
2424    ac_cv_prog_cc_g=no
2425    CFLAGS="-g"
2426    cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 int
2434 main ()
2435 {
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2443 case "(($ac_try" in
2444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445   *) ac_try_echo=$ac_try;;
2446 esac
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448   (eval "$ac_compile") 2>conftest.er1
2449   ac_status=$?
2450   grep -v '^ *+' conftest.er1 >conftest.err
2451   rm -f conftest.er1
2452   cat conftest.err >&5
2453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454   (exit $ac_status); } &&
2455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2456   { (case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_try") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; } &&
2465          { ac_try='test -s conftest.$ac_objext'
2466   { (case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_try") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   ac_cv_prog_cc_g=yes
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480         CFLAGS=""
2481       cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487
2488 int
2489 main ()
2490 {
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2498 case "(($ac_try" in
2499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500   *) ac_try_echo=$ac_try;;
2501 esac
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503   (eval "$ac_compile") 2>conftest.er1
2504   ac_status=$?
2505   grep -v '^ *+' conftest.er1 >conftest.err
2506   rm -f conftest.er1
2507   cat conftest.err >&5
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); } &&
2510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511   { (case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516   (eval "$ac_try") 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }; } &&
2520          { ac_try='test -s conftest.$ac_objext'
2521   { (case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526   (eval "$ac_try") 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; }; then
2530   :
2531 else
2532   echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2534
2535         ac_c_werror_flag=$ac_save_c_werror_flag
2536          CFLAGS="-g"
2537          cat >conftest.$ac_ext <<_ACEOF
2538 /* confdefs.h.  */
2539 _ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h.  */
2543
2544 int
2545 main ()
2546 {
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2554 case "(($ac_try" in
2555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556   *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559   (eval "$ac_compile") 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567   { (case "(($ac_try" in
2568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569   *) ac_try_echo=$ac_try;;
2570 esac
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572   (eval "$ac_try") 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (case "(($ac_try" in
2578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579   *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582   (eval "$ac_try") 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586   ac_cv_prog_cc_g=yes
2587 else
2588   echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591
2592 fi
2593
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601    ac_c_werror_flag=$ac_save_c_werror_flag
2602 fi
2603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2605 if test "$ac_test_CFLAGS" = set; then
2606   CFLAGS=$ac_save_CFLAGS
2607 elif test $ac_cv_prog_cc_g = yes; then
2608   if test "$GCC" = yes; then
2609     CFLAGS="-g -O2"
2610   else
2611     CFLAGS="-g"
2612   fi
2613 else
2614   if test "$GCC" = yes; then
2615     CFLAGS="-O2"
2616   else
2617     CFLAGS=
2618   fi
2619 fi
2620 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2621 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_cc_c89+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   ac_cv_prog_cc_c89=no
2626 ac_save_CC=$CC
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633 #include <stdarg.h>
2634 #include <stdio.h>
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2641      char **p;
2642      int i;
2643 {
2644   return p[i];
2645 }
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2647 {
2648   char *s;
2649   va_list v;
2650   va_start (v,p);
2651   s = g (p, va_arg (v,int));
2652   va_end (v);
2653   return s;
2654 }
2655
2656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2657    function prototypes and stuff, but not '\xHH' hex character constants.
2658    These don't provoke an error unfortunately, instead are silently treated
2659    as 'x'.  The following induces an error, until -std is added to get
2660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2661    array size at least.  It's necessary to write '\x00'==0 to get something
2662    that's true only with -std.  */
2663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2664
2665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2666    inside strings and character constants.  */
2667 #define FOO(x) 'x'
2668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2669
2670 int test (int i, double x);
2671 struct s1 {int (*f) (int a);};
2672 struct s2 {int (*f) (double a);};
2673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2674 int argc;
2675 char **argv;
2676 int
2677 main ()
2678 {
2679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2686 do
2687   CC="$ac_save_CC $ac_arg"
2688   rm -f conftest.$ac_objext
2689 if { (ac_try="$ac_compile"
2690 case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_compile") 2>conftest.er1
2696   ac_status=$?
2697   grep -v '^ *+' conftest.er1 >conftest.err
2698   rm -f conftest.er1
2699   cat conftest.err >&5
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); } &&
2702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703   { (case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_try") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_try") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_c89=$ac_arg
2723 else
2724   echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2726
2727
2728 fi
2729
2730 rm -f core conftest.err conftest.$ac_objext
2731   test "x$ac_cv_prog_cc_c89" != "xno" && break
2732 done
2733 rm -f conftest.$ac_ext
2734 CC=$ac_save_CC
2735
2736 fi
2737 # AC_CACHE_VAL
2738 case "x$ac_cv_prog_cc_c89" in
2739   x)
2740     { echo "$as_me:$LINENO: result: none needed" >&5
2741 echo "${ECHO_T}none needed" >&6; } ;;
2742   xno)
2743     { echo "$as_me:$LINENO: result: unsupported" >&5
2744 echo "${ECHO_T}unsupported" >&6; } ;;
2745   *)
2746     CC="$CC $ac_cv_prog_cc_c89"
2747     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2748 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2749 esac
2750
2751
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757
2758 ac_ext=cpp
2759 ac_cpp='$CXXCPP $CPPFLAGS'
2760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2763 if test -z "$CXX"; then
2764   if test -n "$CCC"; then
2765     CXX=$CCC
2766   else
2767     if test -n "$ac_tool_prefix"; then
2768   for ac_prog in clang++ llvm-g++ g++
2769   do
2770     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CXX+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   if test -n "$CXX"; then
2778   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783   IFS=$as_save_IFS
2784   test -z "$as_dir" && as_dir=.
2785   for ac_exec_ext in '' $ac_executable_extensions; do
2786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2787     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789     break 2
2790   fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CXX=$ac_cv_prog_CXX
2798 if test -n "$CXX"; then
2799   { echo "$as_me:$LINENO: result: $CXX" >&5
2800 echo "${ECHO_T}$CXX" >&6; }
2801 else
2802   { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807     test -n "$CXX" && break
2808   done
2809 fi
2810 if test -z "$CXX"; then
2811   ac_ct_CXX=$CXX
2812   for ac_prog in clang++ llvm-g++ g++
2813 do
2814   # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   if test -n "$ac_ct_CXX"; then
2822   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_ac_ct_CXX="$ac_prog"
2832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2842 if test -n "$ac_ct_CXX"; then
2843   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2844 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2845 else
2846   { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851   test -n "$ac_ct_CXX" && break
2852 done
2853
2854   if test "x$ac_ct_CXX" = x; then
2855     CXX="g++"
2856   else
2857     case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet.  If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CXX=$ac_ct_CXX
2868   fi
2869 fi
2870
2871   fi
2872 fi
2873 # Provide some information about the compiler.
2874 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2875 ac_compiler=`set X $ac_compile; echo $2`
2876 { (ac_try="$ac_compiler --version >&5"
2877 case "(($ac_try" in
2878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879   *) ac_try_echo=$ac_try;;
2880 esac
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882   (eval "$ac_compiler --version >&5") 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compiler -v >&5") 2>&5
2893   ac_status=$?
2894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895   (exit $ac_status); }
2896 { (ac_try="$ac_compiler -V >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler -V >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918
2919 int
2920 main ()
2921 {
2922 #ifndef __GNUC__
2923        choke me
2924 #endif
2925
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934   *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937   (eval "$ac_compile") 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } &&
2944          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2945   { (case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_try") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (case "(($ac_try" in
2956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957   *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960   (eval "$ac_try") 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   ac_compiler_gnu=yes
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969         ac_compiler_gnu=no
2970 fi
2971
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2974
2975 fi
2976 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2978 GXX=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CXXFLAGS=${CXXFLAGS+set}
2980 ac_save_CXXFLAGS=$CXXFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2982 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cxx_g+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2987    ac_cxx_werror_flag=yes
2988    ac_cv_prog_cxx_g=no
2989    CXXFLAGS="-g"
2990    cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h.  */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h.  */
2996
2997 int
2998 main ()
2999 {
3000
3001   ;
3002   return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012   (eval "$ac_compile") 2>conftest.er1
3013   ac_status=$?
3014   grep -v '^ *+' conftest.er1 >conftest.err
3015   rm -f conftest.er1
3016   cat conftest.err >&5
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); } &&
3019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (case "(($ac_try" in
3031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032   *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035   (eval "$ac_try") 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   ac_cv_prog_cxx_g=yes
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044         CXXFLAGS=""
3045       cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051
3052 int
3053 main ()
3054 {
3055
3056   ;
3057   return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064   *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067   (eval "$ac_compile") 2>conftest.er1
3068   ac_status=$?
3069   grep -v '^ *+' conftest.er1 >conftest.err
3070   rm -f conftest.er1
3071   cat conftest.err >&5
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); } &&
3074          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075   { (case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080   (eval "$ac_try") 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; } &&
3084          { ac_try='test -s conftest.$ac_objext'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   :
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3100          CXXFLAGS="-g"
3101          cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107
3108 int
3109 main ()
3110 {
3111
3112   ;
3113   return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_compile") 2>conftest.er1
3124   ac_status=$?
3125   grep -v '^ *+' conftest.er1 >conftest.err
3126   rm -f conftest.er1
3127   cat conftest.err >&5
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); } &&
3130          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131   { (case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136   (eval "$ac_try") 2>&5
3137   ac_status=$?
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); }; } &&
3140          { ac_try='test -s conftest.$ac_objext'
3141   { (case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_try") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; }; then
3150   ac_cv_prog_cxx_g=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155
3156 fi
3157
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 fi
3160
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 fi
3163
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166 fi
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3169 if test "$ac_test_CXXFLAGS" = set; then
3170   CXXFLAGS=$ac_save_CXXFLAGS
3171 elif test $ac_cv_prog_cxx_g = yes; then
3172   if test "$GXX" = yes; then
3173     CXXFLAGS="-g -O2"
3174   else
3175     CXXFLAGS="-g"
3176   fi
3177 else
3178   if test "$GXX" = yes; then
3179     CXXFLAGS="-O2"
3180   else
3181     CXXFLAGS=
3182   fi
3183 fi
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199   CPP=
3200 fi
3201 if test -z "$CPP"; then
3202   if test "${ac_cv_prog_CPP+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205       # Double quotes because CPP needs to be expanded
3206     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207     do
3208       ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211   # Use a header file that comes with gcc, so configuring glibc
3212   # with a fresh cross-compiler works.
3213   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214   # <limits.h> exists even on freestanding compilers.
3215   # On the NeXT, cc -E runs the code through the compiler's parser,
3216   # not just through cpp. "Syntax error" is here to catch this case.
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228                      Syntax error
3229 _ACEOF
3230 if { (ac_try="$ac_cpp conftest.$ac_ext"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } >/dev/null; then
3243   if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   :
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258   # Broken: fails on valid input.
3259 continue
3260 fi
3261
3262 rm -f conftest.err conftest.$ac_ext
3263
3264   # OK, works on sane cases.  Now check whether nonexistent headers
3265   # can be detected and how.
3266   cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #include <ac_nonexistent.h>
3273 _ACEOF
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } >/dev/null; then
3287   if test -s conftest.err; then
3288     ac_cpp_err=$ac_c_preproc_warn_flag
3289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290   else
3291     ac_cpp_err=
3292   fi
3293 else
3294   ac_cpp_err=yes
3295 fi
3296 if test -z "$ac_cpp_err"; then
3297   # Broken: success on invalid input.
3298 continue
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Passes both tests.
3304 ac_preproc_ok=:
3305 break
3306 fi
3307
3308 rm -f conftest.err conftest.$ac_ext
3309
3310 done
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.$ac_ext
3313 if $ac_preproc_ok; then
3314   break
3315 fi
3316
3317     done
3318     ac_cv_prog_CPP=$CPP
3319
3320 fi
3321   CPP=$ac_cv_prog_CPP
3322 else
3323   ac_cv_prog_CPP=$CPP
3324 fi
3325 { echo "$as_me:$LINENO: result: $CPP" >&5
3326 echo "${ECHO_T}$CPP" >&6; }
3327 ac_preproc_ok=false
3328 for ac_c_preproc_warn_flag in '' yes
3329 do
3330   # Use a header file that comes with gcc, so configuring glibc
3331   # with a fresh cross-compiler works.
3332   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333   # <limits.h> exists even on freestanding compilers.
3334   # On the NeXT, cc -E runs the code through the compiler's parser,
3335   # not just through cpp. "Syntax error" is here to catch this case.
3336   cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342 #ifdef __STDC__
3343 # include <limits.h>
3344 #else
3345 # include <assert.h>
3346 #endif
3347                      Syntax error
3348 _ACEOF
3349 if { (ac_try="$ac_cpp conftest.$ac_ext"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380
3381 rm -f conftest.err conftest.$ac_ext
3382
3383   # OK, works on sane cases.  Now check whether nonexistent headers
3384   # can be detected and how.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 #include <ac_nonexistent.h>
3392 _ACEOF
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400   ac_status=$?
3401   grep -v '^ *+' conftest.er1 >conftest.err
3402   rm -f conftest.er1
3403   cat conftest.err >&5
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); } >/dev/null; then
3406   if test -s conftest.err; then
3407     ac_cpp_err=$ac_c_preproc_warn_flag
3408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3409   else
3410     ac_cpp_err=
3411   fi
3412 else
3413   ac_cpp_err=yes
3414 fi
3415 if test -z "$ac_cpp_err"; then
3416   # Broken: success on invalid input.
3417 continue
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422   # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3425 fi
3426
3427 rm -f conftest.err conftest.$ac_ext
3428
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433   :
3434 else
3435   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3436 See \`config.log' for more details." >&5
3437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3438 See \`config.log' for more details." >&2;}
3439    { (exit 1); exit 1; }; }
3440 fi
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447
3448
3449
3450
3451 if test -d ${srcdir}/projects/llvm-gcc ; then
3452   subdirs="$subdirs projects/llvm-gcc"
3453
3454 fi
3455
3456 if test -d ${srcdir}/projects/test-suite ; then
3457   subdirs="$subdirs projects/test-suite"
3458
3459 fi
3460
3461 if test -d ${srcdir}/projects/llvm-test ; then
3462   subdirs="$subdirs projects/llvm-test"
3463
3464 fi
3465
3466 if test -d ${srcdir}/projects/poolalloc ; then
3467   subdirs="$subdirs projects/poolalloc"
3468
3469 fi
3470
3471 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3472   subdirs="$subdirs projects/llvm-poolalloc"
3473
3474 fi
3475
3476 for i in `ls ${srcdir}/projects`
3477 do
3478   if test -d ${srcdir}/projects/${i} ; then
3479     case ${i} in
3480       sample)       subdirs="$subdirs projects/sample"
3481     ;;
3482       privbracket)  subdirs="$subdirs projects/privbracket"
3483  ;;
3484       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3485  ;;
3486       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
3487 ;;
3488       llvm-java)    subdirs="$subdirs projects/llvm-java"
3489  ;;
3490       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
3491    ;;
3492       safecode)     subdirs="$subdirs projects/safecode"
3493  ;;
3494       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
3495  ;;
3496       compiler-rt)       ;;
3497       llvm-gcc)       ;;
3498       test-suite)     ;;
3499       llvm-test)      ;;
3500       poolalloc)      ;;
3501       llvm-poolalloc) ;;
3502       *)
3503         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3504 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3505         ;;
3506     esac
3507   fi
3508 done
3509
3510 # Check whether --enable-polly was given.
3511 if test "${enable_polly+set}" = set; then
3512   enableval=$enable_polly;
3513 else
3514   enableval=default
3515 fi
3516
3517 case "$enableval" in
3518   yes) ENABLE_POLLY=1
3519  ;;
3520   no)  ENABLE_POLLY=0
3521  ;;
3522   default) ENABLE_POLLY=1
3523  ;;
3524   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3525 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3526    { (exit 1); exit 1; }; } ;;
3527 esac
3528
3529
3530 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3531   LLVM_HAS_POLLY=1
3532
3533   subdirs="$subdirs tools/polly"
3534
3535 fi
3536
3537
3538 # Make sure we can run config.sub.
3539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3540   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3541 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3542    { (exit 1); exit 1; }; }
3543
3544 { echo "$as_me:$LINENO: checking build system type" >&5
3545 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3546 if test "${ac_cv_build+set}" = set; then
3547   echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549   ac_build_alias=$build_alias
3550 test "x$ac_build_alias" = x &&
3551   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3552 test "x$ac_build_alias" = x &&
3553   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3554 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3555    { (exit 1); exit 1; }; }
3556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3557   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3558 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3559    { (exit 1); exit 1; }; }
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3563 echo "${ECHO_T}$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3567 echo "$as_me: error: invalid value of canonical build" >&2;}
3568    { (exit 1); exit 1; }; };;
3569 esac
3570 build=$ac_cv_build
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_build
3573 shift
3574 build_cpu=$1
3575 build_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 build_os=$*
3580 IFS=$ac_save_IFS
3581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582
3583
3584 { echo "$as_me:$LINENO: checking host system type" >&5
3585 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_host+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test "x$host_alias" = x; then
3590   ac_cv_host=$ac_cv_build
3591 else
3592   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3593     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3600 echo "${ECHO_T}$ac_cv_host" >&6; }
3601 case $ac_cv_host in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3604 echo "$as_me: error: invalid value of canonical host" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 host=$ac_cv_host
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_host
3610 shift
3611 host_cpu=$1
3612 host_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 host_os=$*
3617 IFS=$ac_save_IFS
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 { echo "$as_me:$LINENO: checking target system type" >&5
3622 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3623 if test "${ac_cv_target+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   if test "x$target_alias" = x; then
3627   ac_cv_target=$ac_cv_host
3628 else
3629   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3630     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3631 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634
3635 fi
3636 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3637 echo "${ECHO_T}$ac_cv_target" >&6; }
3638 case $ac_cv_target in
3639 *-*-*) ;;
3640 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3641 echo "$as_me: error: invalid value of canonical target" >&2;}
3642    { (exit 1); exit 1; }; };;
3643 esac
3644 target=$ac_cv_target
3645 ac_save_IFS=$IFS; IFS='-'
3646 set x $ac_cv_target
3647 shift
3648 target_cpu=$1
3649 target_vendor=$2
3650 shift; shift
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3653 target_os=$*
3654 IFS=$ac_save_IFS
3655 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3656
3657
3658 # The aliases save the names the user supplied, while $host etc.
3659 # will get canonicalized.
3660 test -n "$target_alias" &&
3661   test "$program_prefix$program_suffix$program_transform_name" = \
3662     NONENONEs,x,x, &&
3663   program_prefix=${target_alias}-
3664
3665 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3666 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3667 if test "${llvm_cv_os_type+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $host in
3671   *-*-aix*)
3672     llvm_cv_link_all_option="-Wl,--whole-archive"
3673     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674     llvm_cv_os_type="AIX"
3675     llvm_cv_platform_type="Unix" ;;
3676   *-*-irix*)
3677     llvm_cv_link_all_option="-Wl,--whole-archive"
3678     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679     llvm_cv_os_type="IRIX"
3680     llvm_cv_platform_type="Unix" ;;
3681   *-*-cygwin*)
3682     llvm_cv_link_all_option="-Wl,--whole-archive"
3683     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684     llvm_cv_os_type="Cygwin"
3685     llvm_cv_platform_type="Unix" ;;
3686   *-*-darwin*)
3687     llvm_cv_link_all_option="-Wl,-all_load"
3688     llvm_cv_no_link_all_option="-Wl,-noall_load"
3689     llvm_cv_os_type="Darwin"
3690     llvm_cv_platform_type="Unix" ;;
3691   *-*-minix*)
3692     llvm_cv_link_all_option="-Wl,-all_load"
3693     llvm_cv_no_link_all_option="-Wl,-noall_load"
3694     llvm_cv_os_type="Minix"
3695     llvm_cv_platform_type="Unix" ;;
3696   *-*-freebsd* | *-*-kfreebsd-gnu)
3697     llvm_cv_link_all_option="-Wl,--whole-archive"
3698     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3699     llvm_cv_os_type="FreeBSD"
3700     llvm_cv_platform_type="Unix" ;;
3701   *-*-openbsd*)
3702     llvm_cv_link_all_option="-Wl,--whole-archive"
3703     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704     llvm_cv_os_type="OpenBSD"
3705     llvm_cv_platform_type="Unix" ;;
3706   *-*-netbsd*)
3707     llvm_cv_link_all_option="-Wl,--whole-archive"
3708     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709     llvm_cv_os_type="NetBSD"
3710     llvm_cv_platform_type="Unix" ;;
3711   *-*-dragonfly*)
3712     llvm_cv_link_all_option="-Wl,--whole-archive"
3713     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714     llvm_cv_os_type="DragonFly"
3715     llvm_cv_platform_type="Unix" ;;
3716   *-*-hpux*)
3717     llvm_cv_link_all_option="-Wl,--whole-archive"
3718     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719     llvm_cv_os_type="HP-UX"
3720     llvm_cv_platform_type="Unix" ;;
3721   *-*-interix*)
3722     llvm_cv_link_all_option="-Wl,--whole-archive"
3723     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724     llvm_cv_os_type="Interix"
3725     llvm_cv_platform_type="Unix" ;;
3726   *-*-linux*)
3727     llvm_cv_link_all_option="-Wl,--whole-archive"
3728     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729     llvm_cv_os_type="Linux"
3730     llvm_cv_platform_type="Unix" ;;
3731   *-*-gnu*)
3732     llvm_cv_link_all_option="-Wl,--whole-archive"
3733     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734     llvm_cv_os_type="GNU"
3735     llvm_cv_platform_type="Unix" ;;
3736   *-*-solaris*)
3737     llvm_cv_link_all_option="-Wl,-z,allextract"
3738     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3739     llvm_cv_os_type="SunOS"
3740     llvm_cv_platform_type="Unix" ;;
3741   *-*-auroraux*)
3742     llvm_cv_link_all_option="-Wl,-z,allextract"
3743     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3744     llvm_cv_os_type="AuroraUX"
3745     llvm_cv_platform_type="Unix" ;;
3746   *-*-win32*)
3747     llvm_cv_link_all_option="-Wl,--whole-archive"
3748     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3749     llvm_cv_os_type="Win32"
3750     llvm_cv_platform_type="Win32" ;;
3751   *-*-mingw*)
3752     llvm_cv_link_all_option="-Wl,--whole-archive"
3753     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3754     llvm_cv_os_type="MingW"
3755     llvm_cv_platform_type="Win32" ;;
3756   *-*-haiku*)
3757     llvm_cv_link_all_option="-Wl,--whole-archive"
3758     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759     llvm_cv_os_type="Haiku"
3760     llvm_cv_platform_type="Unix" ;;
3761   *-unknown-eabi*)
3762     llvm_cv_link_all_option="-Wl,--whole-archive"
3763     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764     llvm_cv_os_type="Freestanding"
3765     llvm_cv_platform_type="Unix" ;;
3766   *-unknown-elf*)
3767     llvm_cv_link_all_option="-Wl,--whole-archive"
3768     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769     llvm_cv_os_type="Freestanding"
3770     llvm_cv_platform_type="Unix" ;;
3771   *)
3772     llvm_cv_link_all_option=""
3773     llvm_cv_no_link_all_option=""
3774     llvm_cv_os_type="Unknown"
3775     llvm_cv_platform_type="Unknown" ;;
3776 esac
3777 fi
3778 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3779 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780
3781 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3782 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3783 if test "${llvm_cv_target_os_type+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   case $target in
3787   *-*-aix*)
3788     llvm_cv_target_os_type="AIX" ;;
3789   *-*-irix*)
3790     llvm_cv_target_os_type="IRIX" ;;
3791   *-*-cygwin*)
3792     llvm_cv_target_os_type="Cygwin" ;;
3793   *-*-darwin*)
3794     llvm_cv_target_os_type="Darwin" ;;
3795   *-*-minix*)
3796     llvm_cv_target_os_type="Minix" ;;
3797   *-*-freebsd*)
3798     llvm_cv_target_os_type="FreeBSD" ;;
3799   *-*-openbsd*)
3800     llvm_cv_target_os_type="OpenBSD" ;;
3801   *-*-netbsd*)
3802     llvm_cv_target_os_type="NetBSD" ;;
3803   *-*-dragonfly*)
3804     llvm_cv_target_os_type="DragonFly" ;;
3805   *-*-hpux*)
3806     llvm_cv_target_os_type="HP-UX" ;;
3807   *-*-interix*)
3808     llvm_cv_target_os_type="Interix" ;;
3809   *-*-linux*)
3810     llvm_cv_target_os_type="Linux" ;;
3811   *-*-solaris*)
3812     llvm_cv_target_os_type="SunOS" ;;
3813   *-*-auroraux*)
3814     llvm_cv_target_os_type="AuroraUX" ;;
3815   *-*-win32*)
3816     llvm_cv_target_os_type="Win32" ;;
3817   *-*-mingw*)
3818     llvm_cv_target_os_type="MingW" ;;
3819   *-*-haiku*)
3820     llvm_cv_target_os_type="Haiku" ;;
3821   *-*-rtems*)
3822     llvm_cv_target_os_type="RTEMS" ;;
3823   *-*-nacl*)
3824     llvm_cv_target_os_type="NativeClient" ;;
3825   *-unknown-eabi*)
3826     llvm_cv_target_os_type="Freestanding" ;;
3827   *)
3828     llvm_cv_target_os_type="Unknown" ;;
3829 esac
3830 fi
3831 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3832 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833
3834 if test "$llvm_cv_os_type" = "Unknown" ; then
3835   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3836 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3837    { (exit 1); exit 1; }; }
3838 fi
3839
3840 OS=$llvm_cv_os_type
3841
3842 HOST_OS=$llvm_cv_os_type
3843
3844 TARGET_OS=$llvm_cv_target_os_type
3845
3846
3847 LINKALL=$llvm_cv_link_all_option
3848
3849 NOLINKALL=$llvm_cv_no_link_all_option
3850
3851
3852 case $llvm_cv_platform_type in
3853   Unix)
3854
3855 cat >>confdefs.h <<\_ACEOF
3856 #define LLVM_ON_UNIX 1
3857 _ACEOF
3858
3859     LLVM_ON_UNIX=1
3860
3861     LLVM_ON_WIN32=0
3862
3863     ;;
3864   Win32)
3865
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_WIN32 1
3868 _ACEOF
3869
3870     LLVM_ON_UNIX=0
3871
3872     LLVM_ON_WIN32=1
3873
3874     ;;
3875 esac
3876
3877 { echo "$as_me:$LINENO: checking target architecture" >&5
3878 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3879 if test "${llvm_cv_target_arch+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   case $target in
3883   i?86-*)                 llvm_cv_target_arch="x86" ;;
3884   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3885   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3886   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3887   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3888   mips-*)                 llvm_cv_target_arch="Mips" ;;
3889   mipsel-*)               llvm_cv_target_arch="Mips" ;;
3890   xcore-*)                llvm_cv_target_arch="XCore" ;;
3891   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3892   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3893   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3894   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3895   *)                      llvm_cv_target_arch="Unknown" ;;
3896 esac
3897 fi
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3900
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3904 fi
3905
3906 case "$llvm_cv_target_arch" in
3907     x86)     LLVM_NATIVE_ARCH="X86" ;;
3908     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3909     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3910 esac
3911
3912 ARCH=$llvm_cv_target_arch
3913
3914
3915
3916
3917 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   # Extract the first word of "grep ggrep" to use in msg output
3923 if test -z "$GREP"; then
3924 set dummy grep ggrep; ac_prog_name=$2
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_prog in grep ggrep; do
3936   for ac_exec_ext in '' $ac_executable_extensions; do
3937     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939     # Check for GNU ac_path_GREP and select it if it is found.
3940   # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3942 *GNU*)
3943   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3944 *)
3945   ac_count=0
3946   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3947   while :
3948   do
3949     cat "conftest.in" "conftest.in" >"conftest.tmp"
3950     mv "conftest.tmp" "conftest.in"
3951     cp "conftest.in" "conftest.nl"
3952     echo 'GREP' >> "conftest.nl"
3953     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955     ac_count=`expr $ac_count + 1`
3956     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957       # Best one so far, save it but keep looking for a better one
3958       ac_cv_path_GREP="$ac_path_GREP"
3959       ac_path_GREP_max=$ac_count
3960     fi
3961     # 10*(2^10) chars as input seems more than enough
3962     test $ac_count -gt 10 && break
3963   done
3964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3966
3967
3968     $ac_path_GREP_found && break 3
3969   done
3970 done
3971
3972 done
3973 IFS=$as_save_IFS
3974
3975
3976 fi
3977
3978 GREP="$ac_cv_path_GREP"
3979 if test -z "$GREP"; then
3980   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982    { (exit 1); exit 1; }; }
3983 fi
3984
3985 else
3986   ac_cv_path_GREP=$GREP
3987 fi
3988
3989
3990 fi
3991 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993  GREP="$ac_cv_path_GREP"
3994
3995
3996 { echo "$as_me:$LINENO: checking for egrep" >&5
3997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002    then ac_cv_path_EGREP="$GREP -E"
4003    else
4004      # Extract the first word of "egrep" to use in msg output
4005 if test -z "$EGREP"; then
4006 set dummy egrep; ac_prog_name=$2
4007 if test "${ac_cv_path_EGREP+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   ac_path_EGREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_prog in egrep; do
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021     # Check for GNU ac_path_EGREP and select it if it is found.
4022   # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4024 *GNU*)
4025   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026 *)
4027   ac_count=0
4028   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4029   while :
4030   do
4031     cat "conftest.in" "conftest.in" >"conftest.tmp"
4032     mv "conftest.tmp" "conftest.in"
4033     cp "conftest.in" "conftest.nl"
4034     echo 'EGREP' >> "conftest.nl"
4035     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037     ac_count=`expr $ac_count + 1`
4038     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039       # Best one so far, save it but keep looking for a better one
4040       ac_cv_path_EGREP="$ac_path_EGREP"
4041       ac_path_EGREP_max=$ac_count
4042     fi
4043     # 10*(2^10) chars as input seems more than enough
4044     test $ac_count -gt 10 && break
4045   done
4046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049
4050     $ac_path_EGREP_found && break 3
4051   done
4052 done
4053
4054 done
4055 IFS=$as_save_IFS
4056
4057
4058 fi
4059
4060 EGREP="$ac_cv_path_EGREP"
4061 if test -z "$EGREP"; then
4062   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064    { (exit 1); exit 1; }; }
4065 fi
4066
4067 else
4068   ac_cv_path_EGREP=$EGREP
4069 fi
4070
4071
4072    fi
4073 fi
4074 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076  EGREP="$ac_cv_path_EGREP"
4077
4078
4079 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090 #include <stdlib.h>
4091 #include <stdarg.h>
4092 #include <string.h>
4093 #include <float.h>
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_compile") 2>conftest.er1
4111   ac_status=$?
4112   grep -v '^ *+' conftest.er1 >conftest.err
4113   rm -f conftest.er1
4114   cat conftest.err >&5
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); } &&
4117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4118   { (case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_try") 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; } &&
4127          { ac_try='test -s conftest.$ac_objext'
4128   { (case "(($ac_try" in
4129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130   *) ac_try_echo=$ac_try;;
4131 esac
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133   (eval "$ac_try") 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; }; then
4137   ac_cv_header_stdc=yes
4138 else
4139   echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142         ac_cv_header_stdc=no
4143 fi
4144
4145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146
4147 if test $ac_cv_header_stdc = yes; then
4148   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4149   cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <string.h>
4156
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159   $EGREP "memchr" >/dev/null 2>&1; then
4160   :
4161 else
4162   ac_cv_header_stdc=no
4163 fi
4164 rm -f conftest*
4165
4166 fi
4167
4168 if test $ac_cv_header_stdc = yes; then
4169   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4170   cat >conftest.$ac_ext <<_ACEOF
4171 /* confdefs.h.  */
4172 _ACEOF
4173 cat confdefs.h >>conftest.$ac_ext
4174 cat >>conftest.$ac_ext <<_ACEOF
4175 /* end confdefs.h.  */
4176 #include <stdlib.h>
4177
4178 _ACEOF
4179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4180   $EGREP "free" >/dev/null 2>&1; then
4181   :
4182 else
4183   ac_cv_header_stdc=no
4184 fi
4185 rm -f conftest*
4186
4187 fi
4188
4189 if test $ac_cv_header_stdc = yes; then
4190   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4191   if test "$cross_compiling" = yes; then
4192   :
4193 else
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #include <ctype.h>
4201 #include <stdlib.h>
4202 #if ((' ' & 0x0FF) == 0x020)
4203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4205 #else
4206 # define ISLOWER(c) \
4207                    (('a' <= (c) && (c) <= 'i') \
4208                      || ('j' <= (c) && (c) <= 'r') \
4209                      || ('s' <= (c) && (c) <= 'z'))
4210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4211 #endif
4212
4213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4214 int
4215 main ()
4216 {
4217   int i;
4218   for (i = 0; i < 256; i++)
4219     if (XOR (islower (i), ISLOWER (i))
4220         || toupper (i) != TOUPPER (i))
4221       return 2;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest$ac_exeext
4226 if { (ac_try="$ac_link"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_link") 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236   { (case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241   (eval "$ac_try") 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; }; then
4245   :
4246 else
4247   echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ( exit $ac_status )
4252 ac_cv_header_stdc=no
4253 fi
4254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256
4257
4258 fi
4259 fi
4260 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4261 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4262 if test $ac_cv_header_stdc = yes; then
4263
4264 cat >>confdefs.h <<\_ACEOF
4265 #define STDC_HEADERS 1
4266 _ACEOF
4267
4268 fi
4269
4270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4281                   inttypes.h stdint.h unistd.h
4282 do
4283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 $ac_includes_default
4296
4297 #include <$ac_header>
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (ac_try="$ac_compile"
4301 case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306   (eval "$ac_compile") 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4314   { (case "(($ac_try" in
4315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316   *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; } &&
4323          { ac_try='test -s conftest.$ac_objext'
4324   { (case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_try") 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   eval "$as_ac_Header=yes"
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338         eval "$as_ac_Header=no"
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 ac_res=`eval echo '${'$as_ac_Header'}'`
4344                { echo "$as_me:$LINENO: result: $ac_res" >&5
4345 echo "${ECHO_T}$ac_res" >&6; }
4346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4347   cat >>confdefs.h <<_ACEOF
4348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4349 _ACEOF
4350
4351 fi
4352
4353 done
4354
4355
4356 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4357 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4358 if test "${ac_cv_c_bigendian+set}" = set; then
4359   echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361   # See if sys/param.h defines the BYTE_ORDER macro.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 #include <sys/types.h>
4369 #include <sys/param.h>
4370
4371 int
4372 main ()
4373 {
4374 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4375  bogus endian macros
4376 #endif
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4384 case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389   (eval "$ac_compile") 2>conftest.er1
4390   ac_status=$?
4391   grep -v '^ *+' conftest.er1 >conftest.err
4392   rm -f conftest.er1
4393   cat conftest.err >&5
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); } &&
4396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4397   { (case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; } &&
4406          { ac_try='test -s conftest.$ac_objext'
4407   { (case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; }; then
4416   # It does; now see whether it defined to BIG_ENDIAN or not.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423 #include <sys/types.h>
4424 #include <sys/param.h>
4425
4426 int
4427 main ()
4428 {
4429 #if BYTE_ORDER != BIG_ENDIAN
4430  not big endian
4431 #endif
4432
4433   ;
4434   return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (ac_try="$ac_compile"
4439 case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444   (eval "$ac_compile") 2>conftest.er1
4445   ac_status=$?
4446   grep -v '^ *+' conftest.er1 >conftest.err
4447   rm -f conftest.er1
4448   cat conftest.err >&5
4449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450   (exit $ac_status); } &&
4451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4452   { (case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457   (eval "$ac_try") 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; } &&
4461          { ac_try='test -s conftest.$ac_objext'
4462   { (case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467   (eval "$ac_try") 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471   ac_cv_c_bigendian=yes
4472 else
4473   echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476         ac_cv_c_bigendian=no
4477 fi
4478
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 else
4481   echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4483
4484         # It does not; compile a test program.
4485 if test "$cross_compiling" = yes; then
4486   # try to guess the endianness by grepping values into an object file
4487   ac_cv_c_bigendian=unknown
4488   cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4495 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4496 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4497 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4498 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4499 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4500 int
4501 main ()
4502 {
4503  _ascii (); _ebcdic ();
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4510 case "(($ac_try" in
4511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512   *) ac_try_echo=$ac_try;;
4513 esac
4514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4515   (eval "$ac_compile") 2>conftest.er1
4516   ac_status=$?
4517   grep -v '^ *+' conftest.er1 >conftest.err
4518   rm -f conftest.er1
4519   cat conftest.err >&5
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); } &&
4522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523   { (case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528   (eval "$ac_try") 2>&5
4529   ac_status=$?
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); }; } &&
4532          { ac_try='test -s conftest.$ac_objext'
4533   { (case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_try") 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); }; }; then
4542   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4543   ac_cv_c_bigendian=yes
4544 fi
4545 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4546   if test "$ac_cv_c_bigendian" = unknown; then
4547     ac_cv_c_bigendian=no
4548   else
4549     # finding both strings is unlikely to happen, but who knows?
4550     ac_cv_c_bigendian=unknown
4551   fi
4552 fi
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557
4558 fi
4559
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 else
4562   cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h.  */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h.  */
4568 $ac_includes_default
4569 int
4570 main ()
4571 {
4572
4573   /* Are we little or big endian?  From Harbison&Steele.  */
4574   union
4575   {
4576     long int l;
4577     char c[sizeof (long int)];
4578   } u;
4579   u.l = 1;
4580   return u.c[sizeof (long int) - 1] == 1;
4581
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest$ac_exeext
4587 if { (ac_try="$ac_link"
4588 case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_link") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4597   { (case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_try") 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   ac_cv_c_bigendian=no
4607 else
4608   echo "$as_me: program exited with status $ac_status" >&5
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ( exit $ac_status )
4613 ac_cv_c_bigendian=yes
4614 fi
4615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 fi
4617
4618
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4624 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4625 case $ac_cv_c_bigendian in
4626   yes)
4627     ENDIAN=big
4628  ;;
4629   no)
4630     ENDIAN=little
4631  ;;
4632   *)
4633     { { echo "$as_me:$LINENO: error: unknown endianness
4634 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4635 echo "$as_me: error: unknown endianness
4636 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4637    { (exit 1); exit 1; }; } ;;
4638 esac
4639
4640
4641 if test "$cross_compiling" = yes; then
4642   LLVM_CROSS_COMPILING=1
4643
4644
4645 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4646 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4647 if test "${ac_cv_build_exeext+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4651   ac_cv_build_exeext=.exe
4652 else
4653   ac_build_prefix=${build_alias}-
4654
4655   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4656 set dummy ${ac_build_prefix}gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$BUILD_CC"; then
4663   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692   if test -z "$BUILD_CC"; then
4693      # Extract the first word of "gcc", so it can be a program name with args.
4694 set dummy gcc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$BUILD_CC"; then
4701   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_prog_BUILD_CC="gcc"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 BUILD_CC=$ac_cv_prog_BUILD_CC
4721 if test -n "$BUILD_CC"; then
4722   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4723 echo "${ECHO_T}$BUILD_CC" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730      if test -z "$BUILD_CC"; then
4731        # Extract the first word of "cc", so it can be a program name with args.
4732 set dummy cc; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   if test -n "$BUILD_CC"; then
4739   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4740 else
4741   ac_prog_rejected=no
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   for ac_exec_ext in '' $ac_executable_extensions; do
4748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4749     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4750        ac_prog_rejected=yes
4751        continue
4752      fi
4753     ac_cv_prog_BUILD_CC="cc"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 if test $ac_prog_rejected = yes; then
4762   # We found a bogon in the path, so make sure we never use it.
4763   set dummy $ac_cv_prog_BUILD_CC
4764   shift
4765   if test $# != 0; then
4766     # We chose a different compiler from the bogus one.
4767     # However, it has the same basename, so the bogon will be chosen
4768     # first if we set BUILD_CC to just the basename; use the full file name.
4769     shift
4770     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4771   fi
4772 fi
4773 fi
4774 fi
4775 BUILD_CC=$ac_cv_prog_BUILD_CC
4776 if test -n "$BUILD_CC"; then
4777   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4778 echo "${ECHO_T}$BUILD_CC" >&6; }
4779 else
4780   { echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6; }
4782 fi
4783
4784
4785      fi
4786   fi
4787   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4788 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4789    { (exit 1); exit 1; }; }
4790   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4791   rm -f conftest*
4792   echo 'int main () { return 0; }' > conftest.$ac_ext
4793   ac_cv_build_exeext=
4794   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4795   (eval $ac_build_link) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); }; then
4799     for file in conftest.*; do
4800       case $file in
4801       *.c | *.o | *.obj | *.dSYM) ;;
4802       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4803       esac
4804     done
4805   else
4806     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4807 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4808    { (exit 1); exit 1; }; }
4809   fi
4810   rm -f conftest*
4811   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4812 fi
4813 fi
4814
4815 BUILD_EXEEXT=""
4816 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4817 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4818 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4819 ac_build_exeext=$BUILD_EXEEXT
4820
4821   ac_build_prefix=${build_alias}-
4822   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4823 set dummy ${ac_build_prefix}g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$BUILD_CXX"; then
4830   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859   if test -z "$BUILD_CXX"; then
4860      # Extract the first word of "g++", so it can be a program name with args.
4861 set dummy g++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$BUILD_CXX"; then
4868   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_prog_BUILD_CXX="g++"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4888 if test -n "$BUILD_CXX"; then
4889   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4890 echo "${ECHO_T}$BUILD_CXX" >&6; }
4891 else
4892   { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4894 fi
4895
4896
4897      if test -z "$BUILD_CXX"; then
4898        # Extract the first word of "c++", so it can be a program name with args.
4899 set dummy c++; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4903   echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905   if test -n "$BUILD_CXX"; then
4906   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4907 else
4908   ac_prog_rejected=no
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4916     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4917        ac_prog_rejected=yes
4918        continue
4919      fi
4920     ac_cv_prog_BUILD_CXX="c++"
4921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 if test $ac_prog_rejected = yes; then
4929   # We found a bogon in the path, so make sure we never use it.
4930   set dummy $ac_cv_prog_BUILD_CXX
4931   shift
4932   if test $# != 0; then
4933     # We chose a different compiler from the bogus one.
4934     # However, it has the same basename, so the bogon will be chosen
4935     # first if we set BUILD_CXX to just the basename; use the full file name.
4936     shift
4937     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4938   fi
4939 fi
4940 fi
4941 fi
4942 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4943 if test -n "$BUILD_CXX"; then
4944   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4945 echo "${ECHO_T}$BUILD_CXX" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952      fi
4953   fi
4954 else
4955   LLVM_CROSS_COMPILING=0
4956
4957 fi
4958
4959 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4960   cvsbuild="yes"
4961   optimize="no"
4962   CVSBUILD=CVSBUILD=1
4963
4964 else
4965   cvsbuild="no"
4966   optimize="yes"
4967 fi
4968
4969
4970 # Check whether --enable-libcpp was given.
4971 if test "${enable_libcpp+set}" = set; then
4972   enableval=$enable_libcpp;
4973 else
4974   enableval=default
4975 fi
4976
4977 case "$enableval" in
4978   yes) ENABLE_LIBCPP=1
4979  ;;
4980   no)  ENABLE_LIBCPP=0
4981  ;;
4982   default) ENABLE_LIBCPP=0
4983 ;;
4984   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4985 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4986    { (exit 1); exit 1; }; } ;;
4987 esac
4988
4989 # Check whether --enable-optimized was given.
4990 if test "${enable_optimized+set}" = set; then
4991   enableval=$enable_optimized;
4992 else
4993   enableval=$optimize
4994 fi
4995
4996 if test ${enableval} = "no" ; then
4997   ENABLE_OPTIMIZED=
4998
4999 else
5000   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5001
5002 fi
5003
5004 # Check whether --enable-profiling was given.
5005 if test "${enable_profiling+set}" = set; then
5006   enableval=$enable_profiling;
5007 else
5008   enableval="no"
5009 fi
5010
5011 if test ${enableval} = "no" ; then
5012   ENABLE_PROFILING=
5013
5014 else
5015   ENABLE_PROFILING=ENABLE_PROFILING=1
5016
5017 fi
5018
5019 # Check whether --enable-assertions was given.
5020 if test "${enable_assertions+set}" = set; then
5021   enableval=$enable_assertions;
5022 else
5023   enableval="yes"
5024 fi
5025
5026 if test ${enableval} = "yes" ; then
5027   DISABLE_ASSERTIONS=
5028
5029 else
5030   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5031
5032 fi
5033
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036   enableval=$enable_expensive_checks;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "yes" ; then
5042   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044   EXPENSIVE_CHECKS=yes
5045
5046 else
5047   ENABLE_EXPENSIVE_CHECKS=
5048
5049   EXPENSIVE_CHECKS=no
5050
5051 fi
5052
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055   enableval=$enable_debug_runtime;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_RUNTIME=
5062
5063 else
5064   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066 fi
5067
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070   enableval=$enable_debug_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   DEBUG_SYMBOLS=
5077
5078 else
5079   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     Mips)        TARGET_HAS_JIT=1
5107  ;;
5108     XCore)       TARGET_HAS_JIT=0
5109  ;;
5110     MSP430)      TARGET_HAS_JIT=0
5111  ;;
5112     Hexagon)     TARGET_HAS_JIT=0
5113  ;;
5114     MBlaze)      TARGET_HAS_JIT=0
5115  ;;
5116     PTX)         TARGET_HAS_JIT=0
5117  ;;
5118     *)           TARGET_HAS_JIT=0
5119  ;;
5120   esac
5121 fi
5122
5123 # Check whether --enable-docs was given.
5124 if test "${enable_docs+set}" = set; then
5125   enableval=$enable_docs;
5126 else
5127   enableval=default
5128 fi
5129
5130 case "$enableval" in
5131   yes) ENABLE_DOCS=1
5132  ;;
5133   no)  ENABLE_DOCS=0
5134  ;;
5135   default) ENABLE_DOCS=1
5136  ;;
5137   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5139    { (exit 1); exit 1; }; } ;;
5140 esac
5141
5142 # Check whether --enable-doxygen was given.
5143 if test "${enable_doxygen+set}" = set; then
5144   enableval=$enable_doxygen;
5145 else
5146   enableval=default
5147 fi
5148
5149 case "$enableval" in
5150   yes) ENABLE_DOXYGEN=1
5151  ;;
5152   no)  ENABLE_DOXYGEN=0
5153  ;;
5154   default) ENABLE_DOXYGEN=0
5155  ;;
5156   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5158    { (exit 1); exit 1; }; } ;;
5159 esac
5160
5161 # Check whether --enable-threads was given.
5162 if test "${enable_threads+set}" = set; then
5163   enableval=$enable_threads;
5164 else
5165   enableval=default
5166 fi
5167
5168 case "$enableval" in
5169   yes) LLVM_ENABLE_THREADS=1
5170  ;;
5171   no)  LLVM_ENABLE_THREADS=0
5172  ;;
5173   default) LLVM_ENABLE_THREADS=1
5174  ;;
5175   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5177    { (exit 1); exit 1; }; } ;;
5178 esac
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5182 _ACEOF
5183
5184
5185 # Check whether --enable-pthreads was given.
5186 if test "${enable_pthreads+set}" = set; then
5187   enableval=$enable_pthreads;
5188 else
5189   enableval=default
5190 fi
5191
5192 case "$enableval" in
5193   yes) ENABLE_PTHREADS=1
5194  ;;
5195   no)  ENABLE_PTHREADS=0
5196  ;;
5197   default) ENABLE_PTHREADS=1
5198  ;;
5199   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5201    { (exit 1); exit 1; }; } ;;
5202 esac
5203
5204 # Check whether --enable-pic was given.
5205 if test "${enable_pic+set}" = set; then
5206   enableval=$enable_pic;
5207 else
5208   enableval=default
5209 fi
5210
5211 case "$enableval" in
5212   yes) ENABLE_PIC=1
5213  ;;
5214   no)  ENABLE_PIC=0
5215  ;;
5216   default) ENABLE_PIC=1
5217  ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 cat >>confdefs.h <<_ACEOF
5224 #define ENABLE_PIC $ENABLE_PIC
5225 _ACEOF
5226
5227
5228 # Check whether --enable-shared was given.
5229 if test "${enable_shared+set}" = set; then
5230   enableval=$enable_shared;
5231 else
5232   enableval=default
5233 fi
5234
5235 case "$enableval" in
5236   yes) ENABLE_SHARED=1
5237  ;;
5238   no)  ENABLE_SHARED=0
5239  ;;
5240   default) ENABLE_SHARED=0
5241  ;;
5242   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5244    { (exit 1); exit 1; }; } ;;
5245 esac
5246
5247 # Check whether --enable-embed-stdcxx was given.
5248 if test "${enable_embed_stdcxx+set}" = set; then
5249   enableval=$enable_embed_stdcxx;
5250 else
5251   enableval=default
5252 fi
5253
5254 case "$enableval" in
5255   yes) ENABLE_EMBED_STDCXX=1
5256  ;;
5257   no)  ENABLE_EMBED_STDCXX=0
5258  ;;
5259   default) ENABLE_EMBED_STDCXX=0
5260  ;;
5261   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5262 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5263    { (exit 1); exit 1; }; } ;;
5264 esac
5265
5266 # Check whether --enable-timestamps was given.
5267 if test "${enable_timestamps+set}" = set; then
5268   enableval=$enable_timestamps;
5269 else
5270   enableval=default
5271 fi
5272
5273 case "$enableval" in
5274   yes) ENABLE_TIMESTAMPS=1
5275  ;;
5276   no)  ENABLE_TIMESTAMPS=0
5277  ;;
5278   default) ENABLE_TIMESTAMPS=1
5279  ;;
5280   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5281 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5282    { (exit 1); exit 1; }; } ;;
5283 esac
5284
5285 cat >>confdefs.h <<_ACEOF
5286 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5287 _ACEOF
5288
5289
5290 TARGETS_TO_BUILD=""
5291 # Check whether --enable-targets was given.
5292 if test "${enable_targets+set}" = set; then
5293   enableval=$enable_targets;
5294 else
5295   enableval=all
5296 fi
5297
5298 if test "$enableval" = host-only ; then
5299   enableval=host
5300 fi
5301 case "$enableval" in
5302   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5303   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5304       case "$a_target" in
5305         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5306         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5307         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5308         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5309         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5310         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5311         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5312         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5313         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5314         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5315         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5316         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5317         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5318         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5319         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5320         host) case "$llvm_cv_target_arch" in
5321             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5323             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5324             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5325             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5326             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5327             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5328             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5329             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5330             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5331             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5332             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5333             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5334 echo "$as_me: error: Can not set target to build" >&2;}
5335    { (exit 1); exit 1; }; } ;;
5336           esac ;;
5337         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5338 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5339    { (exit 1); exit 1; }; } ;;
5340       esac
5341   done
5342   ;;
5343 esac
5344 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5345
5346
5347 for a_target in $TARGETS_TO_BUILD; do
5348   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5349
5350 cat >>confdefs.h <<_ACEOF
5351 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5352 _ACEOF
5353
5354     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5355     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5356     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5357     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5358     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5359       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5360     fi
5361
5362 cat >>confdefs.h <<_ACEOF
5363 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5364 _ACEOF
5365
5366
5367 cat >>confdefs.h <<_ACEOF
5368 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5369 _ACEOF
5370
5371
5372 cat >>confdefs.h <<_ACEOF
5373 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5374 _ACEOF
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5379 _ACEOF
5380
5381     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5382
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5385 _ACEOF
5386
5387     fi
5388   fi
5389 done
5390
5391 LLVM_ENUM_TARGETS=""
5392 LLVM_ENUM_ASM_PRINTERS=""
5393 LLVM_ENUM_ASM_PARSERS=""
5394 LLVM_ENUM_DISASSEMBLERS=""
5395 for target_to_build in $TARGETS_TO_BUILD; do
5396   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5397   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5398     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5399   fi
5400   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5401     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5402   fi
5403   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5404     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5405   fi
5406 done
5407
5408
5409
5410
5411
5412 # Check whether --enable-cbe-printf-a was given.
5413 if test "${enable_cbe_printf_a+set}" = set; then
5414   enableval=$enable_cbe_printf_a;
5415 else
5416   enableval=default
5417 fi
5418
5419 case "$enableval" in
5420   yes) ENABLE_CBE_PRINTF_A=1
5421  ;;
5422   no)  ENABLE_CBE_PRINTF_A=0
5423  ;;
5424   default)  ENABLE_CBE_PRINTF_A=1
5425  ;;
5426   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5427 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5428    { (exit 1); exit 1; }; } ;;
5429 esac
5430
5431 cat >>confdefs.h <<_ACEOF
5432 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5433 _ACEOF
5434
5435
5436
5437 # Check whether --with-optimize-option was given.
5438 if test "${with_optimize_option+set}" = set; then
5439   withval=$with_optimize_option;
5440 else
5441   withval=default
5442 fi
5443
5444 { echo "$as_me:$LINENO: checking optimization flags" >&5
5445 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5446 case "$withval" in
5447   default)
5448     case "$llvm_cv_os_type" in
5449     FreeBSD) optimize_option=-O2 ;;
5450     MingW) optimize_option=-O2 ;;
5451     *)     optimize_option=-O3 ;;
5452     esac ;;
5453   *) optimize_option="$withval" ;;
5454 esac
5455 OPTIMIZE_OPTION=$optimize_option
5456
5457 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5458 echo "${ECHO_T}$optimize_option" >&6; }
5459
5460
5461 # Check whether --with-extra-options was given.
5462 if test "${with_extra_options+set}" = set; then
5463   withval=$with_extra_options;
5464 else
5465   withval=default
5466 fi
5467
5468 case "$withval" in
5469   default) EXTRA_OPTIONS= ;;
5470   *) EXTRA_OPTIONS=$withval ;;
5471 esac
5472 EXTRA_OPTIONS=$EXTRA_OPTIONS
5473
5474
5475
5476 # Check whether --with-extra-ld-options was given.
5477 if test "${with_extra_ld_options+set}" = set; then
5478   withval=$with_extra_ld_options;
5479 else
5480   withval=default
5481 fi
5482
5483 case "$withval" in
5484   default) EXTRA_LD_OPTIONS= ;;
5485   *) EXTRA_LD_OPTIONS=$withval ;;
5486 esac
5487 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5488
5489
5490 # Check whether --enable-bindings was given.
5491 if test "${enable_bindings+set}" = set; then
5492   enableval=$enable_bindings;
5493 else
5494   enableval=default
5495 fi
5496
5497 BINDINGS_TO_BUILD=""
5498 case "$enableval" in
5499   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5500   all ) BINDINGS_TO_BUILD="ocaml" ;;
5501   none | no) BINDINGS_TO_BUILD="" ;;
5502   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5503       case "$a_binding" in
5504         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5505         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5506 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5507    { (exit 1); exit 1; }; } ;;
5508       esac
5509   done
5510   ;;
5511 esac
5512
5513
5514 # Check whether --with-ocaml-libdir was given.
5515 if test "${with_ocaml_libdir+set}" = set; then
5516   withval=$with_ocaml_libdir;
5517 else
5518   withval=auto
5519 fi
5520
5521 case "$withval" in
5522   auto) with_ocaml_libdir="$withval" ;;
5523   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5524   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5525 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5526    { (exit 1); exit 1; }; } ;;
5527 esac
5528
5529
5530 # Check whether --with-clang-srcdir was given.
5531 if test "${with_clang_srcdir+set}" = set; then
5532   withval=$with_clang_srcdir;
5533 else
5534   withval="-"
5535 fi
5536
5537 case "$withval" in
5538   -) clang_src_root="" ;;
5539   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5540   *) clang_src_root="$ac_pwd/$withval" ;;
5541 esac
5542 CLANG_SRC_ROOT=$clang_src_root
5543
5544
5545
5546 # Check whether --with-clang-resource-dir was given.
5547 if test "${with_clang_resource_dir+set}" = set; then
5548   withval=$with_clang_resource_dir;
5549 else
5550   withval=""
5551 fi
5552
5553
5554 cat >>confdefs.h <<_ACEOF
5555 #define CLANG_RESOURCE_DIR "$withval"
5556 _ACEOF
5557
5558
5559
5560 # Check whether --with-c-include-dirs was given.
5561 if test "${with_c_include_dirs+set}" = set; then
5562   withval=$with_c_include_dirs;
5563 else
5564   withval=""
5565 fi
5566
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define C_INCLUDE_DIRS "$withval"
5570 _ACEOF
5571
5572
5573
5574 # Check whether --with-cxx-include-root was given.
5575 if test "${with_cxx_include_root+set}" = set; then
5576   withval=$with_cxx_include_root;
5577 else
5578   withval=""
5579 fi
5580
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define CXX_INCLUDE_ROOT "$withval"
5584 _ACEOF
5585
5586
5587
5588 # Check whether --with-cxx-include-arch was given.
5589 if test "${with_cxx_include_arch+set}" = set; then
5590   withval=$with_cxx_include_arch;
5591 else
5592   withval=""
5593 fi
5594
5595
5596 cat >>confdefs.h <<_ACEOF
5597 #define CXX_INCLUDE_ARCH "$withval"
5598 _ACEOF
5599
5600
5601
5602 # Check whether --with-cxx-include-32bit-dir was given.
5603 if test "${with_cxx_include_32bit_dir+set}" = set; then
5604   withval=$with_cxx_include_32bit_dir;
5605 else
5606   withval=""
5607 fi
5608
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define CXX_INCLUDE_32BIT_DIR "$withval"
5612 _ACEOF
5613
5614
5615
5616 # Check whether --with-cxx-include-64bit-dir was given.
5617 if test "${with_cxx_include_64bit_dir+set}" = set; then
5618   withval=$with_cxx_include_64bit_dir;
5619 else
5620   withval=""
5621 fi
5622
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define CXX_INCLUDE_64BIT_DIR "$withval"
5626 _ACEOF
5627
5628
5629
5630 # Check whether --with-binutils-include was given.
5631 if test "${with_binutils_include+set}" = set; then
5632   withval=$with_binutils_include;
5633 else
5634   withval=default
5635 fi
5636
5637 case "$withval" in
5638   default) WITH_BINUTILS_INCDIR=default ;;
5639   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5640   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5641 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5642    { (exit 1); exit 1; }; } ;;
5643 esac
5644 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5645   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5646
5647   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5648      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5649      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5650 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5651    { (exit 1); exit 1; }; };
5652   fi
5653 fi
5654
5655
5656 # Check whether --with-bug-report-url was given.
5657 if test "${with_bug_report_url+set}" = set; then
5658   withval=$with_bug_report_url;
5659 else
5660   withval="http://llvm.org/bugs/"
5661 fi
5662
5663
5664 cat >>confdefs.h <<_ACEOF
5665 #define BUG_REPORT_URL "$withval"
5666 _ACEOF
5667
5668
5669 # Check whether --enable-libffi was given.
5670 if test "${enable_libffi+set}" = set; then
5671   enableval=$enable_libffi; case "$enableval" in
5672     yes) llvm_cv_enable_libffi="yes" ;;
5673     no)  llvm_cv_enable_libffi="no"  ;;
5674     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5675 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677   esac
5678 else
5679   llvm_cv_enable_libffi=no
5680 fi
5681
5682
5683
5684 # Check whether --with-internal-prefix was given.
5685 if test "${with_internal_prefix+set}" = set; then
5686   withval=$with_internal_prefix;
5687 else
5688   withval=""
5689 fi
5690
5691 INTERNAL_PREFIX=$withval
5692
5693
5694
5695 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5696 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5697 if test "${lt_cv_path_NM+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   if test -n "$NM"; then
5701   # Let the user override the test.
5702   lt_cv_path_NM="$NM"
5703 else
5704   lt_nm_to_check="${ac_tool_prefix}nm"
5705   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5706     lt_nm_to_check="$lt_nm_to_check nm"
5707   fi
5708   for lt_tmp_nm in $lt_nm_to_check; do
5709     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5711       IFS="$lt_save_ifs"
5712       test -z "$ac_dir" && ac_dir=.
5713       tmp_nm="$ac_dir/$lt_tmp_nm"
5714       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5715         # Check to see if the nm accepts a BSD-compat flag.
5716         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5717         #   nm: unknown option "B" ignored
5718         # Tru64's nm complains that /dev/null is an invalid object file
5719         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5720         */dev/null* | *'Invalid file or object type'*)
5721           lt_cv_path_NM="$tmp_nm -B"
5722           break
5723           ;;
5724         *)
5725           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5726           */dev/null*)
5727             lt_cv_path_NM="$tmp_nm -p"
5728             break
5729             ;;
5730           *)
5731             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5732             continue # so that we can try to find one that supports BSD flags
5733             ;;
5734           esac
5735           ;;
5736         esac
5737       fi
5738     done
5739     IFS="$lt_save_ifs"
5740   done
5741   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5742 fi
5743 fi
5744 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5745 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5746 NM="$lt_cv_path_NM"
5747
5748
5749
5750 { echo "$as_me:$LINENO: checking for GNU make" >&5
5751 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5752 if test "${llvm_cv_gnu_make_command+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   llvm_cv_gnu_make_command=''
5756  for a in "$MAKE" make gmake gnumake ; do
5757   if test -z "$a" ; then continue ; fi ;
5758   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5759   then
5760    llvm_cv_gnu_make_command=$a ;
5761    break;
5762   fi
5763  done
5764 fi
5765 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5766 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5767  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5768    ifGNUmake='' ;
5769  else
5770    ifGNUmake='#' ;
5771    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5772 echo "${ECHO_T}\"Not found\"" >&6; };
5773  fi
5774
5775
5776 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5777 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5778 LN_S=$as_ln_s
5779 if test "$LN_S" = "ln -s"; then
5780   { echo "$as_me:$LINENO: result: yes" >&5
5781 echo "${ECHO_T}yes" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5784 echo "${ECHO_T}no, using $LN_S" >&6; }
5785 fi
5786
5787 # Extract the first word of "cmp", so it can be a program name with args.
5788 set dummy cmp; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_CMP+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   case $CMP in
5795   [\\/]* | ?:[\\/]*)
5796   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5797   ;;
5798   *)
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5815   ;;
5816 esac
5817 fi
5818 CMP=$ac_cv_path_CMP
5819 if test -n "$CMP"; then
5820   { echo "$as_me:$LINENO: result: $CMP" >&5
5821 echo "${ECHO_T}$CMP" >&6; }
5822 else
5823   { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827
5828 # Extract the first word of "cp", so it can be a program name with args.
5829 set dummy cp; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_CP+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   case $CP in
5836   [\\/]* | ?:[\\/]*)
5837   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5838   ;;
5839   *)
5840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5856   ;;
5857 esac
5858 fi
5859 CP=$ac_cv_path_CP
5860 if test -n "$CP"; then
5861   { echo "$as_me:$LINENO: result: $CP" >&5
5862 echo "${ECHO_T}$CP" >&6; }
5863 else
5864   { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5866 fi
5867
5868
5869 # Extract the first word of "date", so it can be a program name with args.
5870 set dummy date; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_DATE+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   case $DATE in
5877   [\\/]* | ?:[\\/]*)
5878   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5879   ;;
5880   *)
5881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5897   ;;
5898 esac
5899 fi
5900 DATE=$ac_cv_path_DATE
5901 if test -n "$DATE"; then
5902   { echo "$as_me:$LINENO: result: $DATE" >&5
5903 echo "${ECHO_T}$DATE" >&6; }
5904 else
5905   { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5907 fi
5908
5909
5910 # Extract the first word of "find", so it can be a program name with args.
5911 set dummy find; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_FIND+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $FIND in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5938   ;;
5939 esac
5940 fi
5941 FIND=$ac_cv_path_FIND
5942 if test -n "$FIND"; then
5943   { echo "$as_me:$LINENO: result: $FIND" >&5
5944 echo "${ECHO_T}$FIND" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 # Extract the first word of "grep", so it can be a program name with args.
5952 set dummy grep; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   case $GREP in
5959   [\\/]* | ?:[\\/]*)
5960   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5961   ;;
5962   *)
5963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5979   ;;
5980 esac
5981 fi
5982 GREP=$ac_cv_path_GREP
5983 if test -n "$GREP"; then
5984   { echo "$as_me:$LINENO: result: $GREP" >&5
5985 echo "${ECHO_T}$GREP" >&6; }
5986 else
5987   { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5990
5991
5992 # Extract the first word of "mkdir", so it can be a program name with args.
5993 set dummy mkdir; ac_word=$2
5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_MKDIR+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   case $MKDIR in
6000   [\\/]* | ?:[\\/]*)
6001   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6002   ;;
6003   *)
6004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009   for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6020   ;;
6021 esac
6022 fi
6023 MKDIR=$ac_cv_path_MKDIR
6024 if test -n "$MKDIR"; then
6025   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6026 echo "${ECHO_T}$MKDIR" >&6; }
6027 else
6028   { echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6; }
6030 fi
6031
6032
6033 # Extract the first word of "mv", so it can be a program name with args.
6034 set dummy mv; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_path_MV+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   case $MV in
6041   [\\/]* | ?:[\\/]*)
6042   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6043   ;;
6044   *)
6045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050   for ac_exec_ext in '' $ac_executable_extensions; do
6051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6052     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6061   ;;
6062 esac
6063 fi
6064 MV=$ac_cv_path_MV
6065 if test -n "$MV"; then
6066   { echo "$as_me:$LINENO: result: $MV" >&5
6067 echo "${ECHO_T}$MV" >&6; }
6068 else
6069   { echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6; }
6071 fi
6072
6073
6074 if test -n "$ac_tool_prefix"; then
6075   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   if test -n "$RANLIB"; then
6083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090   for ac_exec_ext in '' $ac_executable_extensions; do
6091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6092     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6; }
6106 else
6107   { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6109 fi
6110
6111
6112 fi
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114   ac_ct_RANLIB=$RANLIB
6115   # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120   echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122   if test -n "$ac_ct_RANLIB"; then
6123   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   test -z "$as_dir" && as_dir=.
6130   for ac_exec_ext in '' $ac_executable_extensions; do
6131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6132     ac_cv_prog_ac_ct_RANLIB="ranlib"
6133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134     break 2
6135   fi
6136 done
6137 done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6146 else
6147   { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6149 fi
6150
6151   if test "x$ac_ct_RANLIB" = x; then
6152     RANLIB=":"
6153   else
6154     case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157 whose name does not start with the host triplet.  If you think this
6158 configuration is useful to you, please write to autoconf@gnu.org." >&5
6159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160 whose name does not start with the host triplet.  If you think this
6161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164     RANLIB=$ac_ct_RANLIB
6165   fi
6166 else
6167   RANLIB="$ac_cv_prog_RANLIB"
6168 fi
6169
6170 if test -n "$ac_tool_prefix"; then
6171   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}ar; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_AR+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   if test -n "$AR"; then
6179   ac_cv_prog_AR="$AR" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_AR="${ac_tool_prefix}ar"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 AR=$ac_cv_prog_AR
6199 if test -n "$AR"; then
6200   { echo "$as_me:$LINENO: result: $AR" >&5
6201 echo "${ECHO_T}$AR" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206
6207
6208 fi
6209 if test -z "$ac_cv_prog_AR"; then
6210   ac_ct_AR=$AR
6211   # Extract the first word of "ar", so it can be a program name with args.
6212 set dummy ar; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216   echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218   if test -n "$ac_ct_AR"; then
6219   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_prog_ac_ct_AR="ar"
6229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239 if test -n "$ac_ct_AR"; then
6240   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241 echo "${ECHO_T}$ac_ct_AR" >&6; }
6242 else
6243   { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6245 fi
6246
6247   if test "x$ac_ct_AR" = x; then
6248     AR="false"
6249   else
6250     case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet.  If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet.  If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260     AR=$ac_ct_AR
6261   fi
6262 else
6263   AR="$ac_cv_prog_AR"
6264 fi
6265
6266 # Extract the first word of "rm", so it can be a program name with args.
6267 set dummy rm; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_RM+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   case $RM in
6274   [\\/]* | ?:[\\/]*)
6275   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6276   ;;
6277   *)
6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283   for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6294   ;;
6295 esac
6296 fi
6297 RM=$ac_cv_path_RM
6298 if test -n "$RM"; then
6299   { echo "$as_me:$LINENO: result: $RM" >&5
6300 echo "${ECHO_T}$RM" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 # Extract the first word of "sed", so it can be a program name with args.
6308 set dummy sed; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_SED+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $SED in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6335   ;;
6336 esac
6337 fi
6338 SED=$ac_cv_path_SED
6339 if test -n "$SED"; then
6340   { echo "$as_me:$LINENO: result: $SED" >&5
6341 echo "${ECHO_T}$SED" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348 # Extract the first word of "tar", so it can be a program name with args.
6349 set dummy tar; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_path_TAR+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   case $TAR in
6356   [\\/]* | ?:[\\/]*)
6357   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6358   ;;
6359   *)
6360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6376   ;;
6377 esac
6378 fi
6379 TAR=$ac_cv_path_TAR
6380 if test -n "$TAR"; then
6381   { echo "$as_me:$LINENO: result: $TAR" >&5
6382 echo "${ECHO_T}$TAR" >&6; }
6383 else
6384   { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386 fi
6387
6388
6389 # Extract the first word of "pwd", so it can be a program name with args.
6390 set dummy pwd; ac_word=$2
6391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6393 if test "${ac_cv_path_BINPWD+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   case $BINPWD in
6397   [\\/]* | ?:[\\/]*)
6398   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6399   ;;
6400   *)
6401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404   IFS=$as_save_IFS
6405   test -z "$as_dir" && as_dir=.
6406   for ac_exec_ext in '' $ac_executable_extensions; do
6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6408     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410     break 2
6411   fi
6412 done
6413 done
6414 IFS=$as_save_IFS
6415
6416   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6417   ;;
6418 esac
6419 fi
6420 BINPWD=$ac_cv_path_BINPWD
6421 if test -n "$BINPWD"; then
6422   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6423 echo "${ECHO_T}$BINPWD" >&6; }
6424 else
6425   { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427 fi
6428
6429
6430
6431 # Extract the first word of "Graphviz", so it can be a program name with args.
6432 set dummy Graphviz; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   case $GRAPHVIZ in
6439   [\\/]* | ?:[\\/]*)
6440   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6441   ;;
6442   *)
6443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448   for ac_exec_ext in '' $ac_executable_extensions; do
6449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6459   ;;
6460 esac
6461 fi
6462 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6463 if test -n "$GRAPHVIZ"; then
6464   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6465 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6466 else
6467   { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6469 fi
6470
6471
6472 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6473
6474 cat >>confdefs.h <<\_ACEOF
6475 #define HAVE_GRAPHVIZ 1
6476 _ACEOF
6477
6478     if test "$llvm_cv_os_type" = "MingW" ; then
6479     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6480   fi
6481
6482 cat >>confdefs.h <<_ACEOF
6483 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6484 _ACEOF
6485
6486 fi
6487 # Extract the first word of "dot", so it can be a program name with args.
6488 set dummy dot; ac_word=$2
6489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491 if test "${ac_cv_path_DOT+set}" = set; then
6492   echo $ECHO_N "(cached) $ECHO_C" >&6
6493 else
6494   case $DOT in
6495   [\\/]* | ?:[\\/]*)
6496   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6497   ;;
6498   *)
6499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504   for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511 done
6512 IFS=$as_save_IFS
6513
6514   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6515   ;;
6516 esac
6517 fi
6518 DOT=$ac_cv_path_DOT
6519 if test -n "$DOT"; then
6520   { echo "$as_me:$LINENO: result: $DOT" >&5
6521 echo "${ECHO_T}$DOT" >&6; }
6522 else
6523   { echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6; }
6525 fi
6526
6527
6528 if test "$DOT" != "echo dot" ; then
6529
6530 cat >>confdefs.h <<\_ACEOF
6531 #define HAVE_DOT 1
6532 _ACEOF
6533
6534     if test "$llvm_cv_os_type" = "MingW" ; then
6535     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6536   fi
6537
6538 cat >>confdefs.h <<_ACEOF
6539 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6540 _ACEOF
6541
6542 fi
6543 # Extract the first word of "fdp", so it can be a program name with args.
6544 set dummy fdp; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_FDP+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   case $FDP in
6551   [\\/]* | ?:[\\/]*)
6552   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6553   ;;
6554   *)
6555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560   for ac_exec_ext in '' $ac_executable_extensions; do
6561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6571   ;;
6572 esac
6573 fi
6574 FDP=$ac_cv_path_FDP
6575 if test -n "$FDP"; then
6576   { echo "$as_me:$LINENO: result: $FDP" >&5
6577 echo "${ECHO_T}$FDP" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583
6584 if test "$FDP" != "echo fdp" ; then
6585
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_FDP 1
6588 _ACEOF
6589
6590     if test "$llvm_cv_os_type" = "MingW" ; then
6591     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6592   fi
6593
6594 cat >>confdefs.h <<_ACEOF
6595 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6596 _ACEOF
6597
6598 fi
6599 # Extract the first word of "neato", so it can be a program name with args.
6600 set dummy neato; ac_word=$2
6601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6603 if test "${ac_cv_path_NEATO+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   case $NEATO in
6607   [\\/]* | ?:[\\/]*)
6608   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6609   ;;
6610   *)
6611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6627   ;;
6628 esac
6629 fi
6630 NEATO=$ac_cv_path_NEATO
6631 if test -n "$NEATO"; then
6632   { echo "$as_me:$LINENO: result: $NEATO" >&5
6633 echo "${ECHO_T}$NEATO" >&6; }
6634 else
6635   { echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6; }
6637 fi
6638
6639
6640 if test "$NEATO" != "echo neato" ; then
6641
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_NEATO 1
6644 _ACEOF
6645
6646     if test "$llvm_cv_os_type" = "MingW" ; then
6647     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6648   fi
6649
6650 cat >>confdefs.h <<_ACEOF
6651 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6652 _ACEOF
6653
6654 fi
6655 # Extract the first word of "twopi", so it can be a program name with args.
6656 set dummy twopi; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_TWOPI+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   case $TWOPI in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6683   ;;
6684 esac
6685 fi
6686 TWOPI=$ac_cv_path_TWOPI
6687 if test -n "$TWOPI"; then
6688   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6689 echo "${ECHO_T}$TWOPI" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6693 fi
6694
6695
6696 if test "$TWOPI" != "echo twopi" ; then
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_TWOPI 1
6700 _ACEOF
6701
6702     if test "$llvm_cv_os_type" = "MingW" ; then
6703     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6704   fi
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6708 _ACEOF
6709
6710 fi
6711 # Extract the first word of "circo", so it can be a program name with args.
6712 set dummy circo; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_path_CIRCO+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   case $CIRCO in
6719   [\\/]* | ?:[\\/]*)
6720   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6721   ;;
6722   *)
6723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6730     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6739   ;;
6740 esac
6741 fi
6742 CIRCO=$ac_cv_path_CIRCO
6743 if test -n "$CIRCO"; then
6744   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6745 echo "${ECHO_T}$CIRCO" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751
6752 if test "$CIRCO" != "echo circo" ; then
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_CIRCO 1
6756 _ACEOF
6757
6758     if test "$llvm_cv_os_type" = "MingW" ; then
6759     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760   fi
6761
6762 cat >>confdefs.h <<_ACEOF
6763 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6764 _ACEOF
6765
6766 fi
6767 for ac_prog in gv gsview32
6768 do
6769   # Extract the first word of "$ac_prog", so it can be a program name with args.
6770 set dummy $ac_prog; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_path_GV+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   case $GV in
6777   [\\/]* | ?:[\\/]*)
6778   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6779   ;;
6780   *)
6781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796   ;;
6797 esac
6798 fi
6799 GV=$ac_cv_path_GV
6800 if test -n "$GV"; then
6801   { echo "$as_me:$LINENO: result: $GV" >&5
6802 echo "${ECHO_T}$GV" >&6; }
6803 else
6804   { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6806 fi
6807
6808
6809   test -n "$GV" && break
6810 done
6811 test -n "$GV" || GV="echo gv"
6812
6813 if test "$GV" != "echo gv" ; then
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_GV 1
6817 _ACEOF
6818
6819     if test "$llvm_cv_os_type" = "MingW" ; then
6820     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821   fi
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_GV "$GV${EXEEXT}"
6825 _ACEOF
6826
6827 fi
6828 # Extract the first word of "dotty", so it can be a program name with args.
6829 set dummy dotty; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_DOTTY+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   case $DOTTY in
6836   [\\/]* | ?:[\\/]*)
6837   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6838   ;;
6839   *)
6840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845   for ac_exec_ext in '' $ac_executable_extensions; do
6846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6856   ;;
6857 esac
6858 fi
6859 DOTTY=$ac_cv_path_DOTTY
6860 if test -n "$DOTTY"; then
6861   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6862 echo "${ECHO_T}$DOTTY" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6866 fi
6867
6868
6869 if test "$DOTTY" != "echo dotty" ; then
6870
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_DOTTY 1
6873 _ACEOF
6874
6875     if test "$llvm_cv_os_type" = "MingW" ; then
6876     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6877   fi
6878
6879 cat >>confdefs.h <<_ACEOF
6880 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6881 _ACEOF
6882
6883 fi
6884 # Extract the first word of "xdot.py", so it can be a program name with args.
6885 set dummy xdot.py; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   case $XDOT_PY in
6892   [\\/]* | ?:[\\/]*)
6893   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6894   ;;
6895   *)
6896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901   for ac_exec_ext in '' $ac_executable_extensions; do
6902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6903     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6912   ;;
6913 esac
6914 fi
6915 XDOT_PY=$ac_cv_path_XDOT_PY
6916 if test -n "$XDOT_PY"; then
6917   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6918 echo "${ECHO_T}$XDOT_PY" >&6; }
6919 else
6920   { echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6; }
6922 fi
6923
6924
6925 if test "$XDOT_PY" != "echo xdot.py" ; then
6926
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_XDOT_PY 1
6929 _ACEOF
6930
6931     if test "$llvm_cv_os_type" = "MingW" ; then
6932     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6933   fi
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6937 _ACEOF
6938
6939 fi
6940
6941
6942 # Extract the first word of "perl", so it can be a program name with args.
6943 set dummy perl; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_path_PERL+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   case $PERL in
6950   [\\/]* | ?:[\\/]*)
6951   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6952   ;;
6953   *)
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6970   ;;
6971 esac
6972 fi
6973 PERL=$ac_cv_path_PERL
6974 if test -n "$PERL"; then
6975   { echo "$as_me:$LINENO: result: $PERL" >&5
6976 echo "${ECHO_T}$PERL" >&6; }
6977 else
6978   { echo "$as_me:$LINENO: result: no" >&5
6979 echo "${ECHO_T}no" >&6; }
6980 fi
6981
6982
6983 if test "$PERL" != "none"; then
6984   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6985 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6986   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6987     { echo "$as_me:$LINENO: result: yes" >&5
6988 echo "${ECHO_T}yes" >&6; }
6989   else
6990     PERL=none
6991     { echo "$as_me:$LINENO: result: not found" >&5
6992 echo "${ECHO_T}not found" >&6; }
6993   fi
6994 fi
6995
6996
6997 if test x"$PERL" = xnone; then
6998    HAVE_PERL=0
6999
7000    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7001 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7002    { (exit 1); exit 1; }; }
7003 else
7004    HAVE_PERL=1
7005
7006 fi
7007
7008 # Find a good install program.  We prefer a C program (faster),
7009 # so one script is as good as another.  But avoid the broken or
7010 # incompatible versions:
7011 # SysV /etc/install, /usr/sbin/install
7012 # SunOS /usr/etc/install
7013 # IRIX /sbin/install
7014 # AIX /bin/install
7015 # AmigaOS /C/install, which installs bootblocks on floppy discs
7016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019 # OS/2's system install, which has a completely different semantic
7020 # ./install, which can be erroneously created by make from ./install.sh.
7021 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7023 if test -z "$INSTALL"; then
7024 if test "${ac_cv_path_install+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   # Account for people who put trailing slashes in PATH elements.
7033 case $as_dir/ in
7034   ./ | .// | /cC/* | \
7035   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7036   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7037   /usr/ucb/* ) ;;
7038   *)
7039     # OSF1 and SCO ODT 3.0 have their own names for install.
7040     # Don't use installbsd from OSF since it installs stuff as root
7041     # by default.
7042     for ac_prog in ginstall scoinst install; do
7043       for ac_exec_ext in '' $ac_executable_extensions; do
7044         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7045           if test $ac_prog = install &&
7046             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047             # AIX install.  It has an incompatible calling convention.
7048             :
7049           elif test $ac_prog = install &&
7050             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051             # program-specific install script used by HP pwplus--don't use.
7052             :
7053           else
7054             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7055             break 3
7056           fi
7057         fi
7058       done
7059     done
7060     ;;
7061 esac
7062 done
7063 IFS=$as_save_IFS
7064
7065
7066 fi
7067   if test "${ac_cv_path_install+set}" = set; then
7068     INSTALL=$ac_cv_path_install
7069   else
7070     # As a last resort, use the slow shell script.  Don't cache a
7071     # value for INSTALL within a source directory, because that will
7072     # break other packages using the cache if that directory is
7073     # removed, or if the value is a relative name.
7074     INSTALL=$ac_install_sh
7075   fi
7076 fi
7077 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6; }
7079
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7083
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7085
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7087
7088 case "$INSTALL" in
7089  [\\/$]* | ?:[\\/]* ) ;;
7090  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7091 esac
7092
7093 # Extract the first word of "bzip2", so it can be a program name with args.
7094 set dummy bzip2; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_BZIP2+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   case $BZIP2 in
7101   [\\/]* | ?:[\\/]*)
7102   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7103   ;;
7104   *)
7105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110   for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120   ;;
7121 esac
7122 fi
7123 BZIP2=$ac_cv_path_BZIP2
7124 if test -n "$BZIP2"; then
7125   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126 echo "${ECHO_T}$BZIP2" >&6; }
7127 else
7128   { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7130 fi
7131
7132
7133 # Extract the first word of "cat", so it can be a program name with args.
7134 set dummy cat; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_CAT+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   case $CAT in
7141   [\\/]* | ?:[\\/]*)
7142   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7143   ;;
7144   *)
7145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150   for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160   ;;
7161 esac
7162 fi
7163 CAT=$ac_cv_path_CAT
7164 if test -n "$CAT"; then
7165   { echo "$as_me:$LINENO: result: $CAT" >&5
7166 echo "${ECHO_T}$CAT" >&6; }
7167 else
7168   { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7170 fi
7171
7172
7173 # Extract the first word of "doxygen", so it can be a program name with args.
7174 set dummy doxygen; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   case $DOXYGEN in
7181   [\\/]* | ?:[\\/]*)
7182   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7183   ;;
7184   *)
7185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190   for ac_exec_ext in '' $ac_executable_extensions; do
7191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200   ;;
7201 esac
7202 fi
7203 DOXYGEN=$ac_cv_path_DOXYGEN
7204 if test -n "$DOXYGEN"; then
7205   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206 echo "${ECHO_T}$DOXYGEN" >&6; }
7207 else
7208   { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7210 fi
7211
7212
7213 # Extract the first word of "groff", so it can be a program name with args.
7214 set dummy groff; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GROFF+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   case $GROFF in
7221   [\\/]* | ?:[\\/]*)
7222   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7223   ;;
7224   *)
7225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240   ;;
7241 esac
7242 fi
7243 GROFF=$ac_cv_path_GROFF
7244 if test -n "$GROFF"; then
7245   { echo "$as_me:$LINENO: result: $GROFF" >&5
7246 echo "${ECHO_T}$GROFF" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253 # Extract the first word of "gzip", so it can be a program name with args.
7254 set dummy gzip; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $GZIPBIN in
7261   [\\/]* | ?:[\\/]*)
7262   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7263   ;;
7264   *)
7265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280   ;;
7281 esac
7282 fi
7283 GZIPBIN=$ac_cv_path_GZIPBIN
7284 if test -n "$GZIPBIN"; then
7285   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286 echo "${ECHO_T}$GZIPBIN" >&6; }
7287 else
7288   { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7290 fi
7291
7292
7293 # Extract the first word of "pod2html", so it can be a program name with args.
7294 set dummy pod2html; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_POD2HTML+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   case $POD2HTML in
7301   [\\/]* | ?:[\\/]*)
7302   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7303   ;;
7304   *)
7305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310   for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320   ;;
7321 esac
7322 fi
7323 POD2HTML=$ac_cv_path_POD2HTML
7324 if test -n "$POD2HTML"; then
7325   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7326 echo "${ECHO_T}$POD2HTML" >&6; }
7327 else
7328   { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7330 fi
7331
7332
7333 # Extract the first word of "pod2man", so it can be a program name with args.
7334 set dummy pod2man; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_POD2MAN+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   case $POD2MAN in
7341   [\\/]* | ?:[\\/]*)
7342   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7343   ;;
7344   *)
7345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350   for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360   ;;
7361 esac
7362 fi
7363 POD2MAN=$ac_cv_path_POD2MAN
7364 if test -n "$POD2MAN"; then
7365   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7366 echo "${ECHO_T}$POD2MAN" >&6; }
7367 else
7368   { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7371
7372
7373 # Extract the first word of "pdfroff", so it can be a program name with args.
7374 set dummy pdfroff; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_PDFROFF+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380   case $PDFROFF in
7381   [\\/]* | ?:[\\/]*)
7382   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390   for ac_exec_ext in '' $ac_executable_extensions; do
7391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400   ;;
7401 esac
7402 fi
7403 PDFROFF=$ac_cv_path_PDFROFF
7404 if test -n "$PDFROFF"; then
7405   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7406 echo "${ECHO_T}$PDFROFF" >&6; }
7407 else
7408   { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7410 fi
7411
7412
7413 # Extract the first word of "runtest", so it can be a program name with args.
7414 set dummy runtest; ac_word=$2
7415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7417 if test "${ac_cv_path_RUNTEST+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   case $RUNTEST in
7421   [\\/]* | ?:[\\/]*)
7422   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7423   ;;
7424   *)
7425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430   for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440   ;;
7441 esac
7442 fi
7443 RUNTEST=$ac_cv_path_RUNTEST
7444 if test -n "$RUNTEST"; then
7445   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7446 echo "${ECHO_T}$RUNTEST" >&6; }
7447 else
7448   { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7450 fi
7451
7452
7453
7454 no_itcl=true
7455 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7456 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7457
7458 # Check whether --with-tclinclude was given.
7459 if test "${with_tclinclude+set}" = set; then
7460   withval=$with_tclinclude; with_tclinclude=${withval}
7461 else
7462   with_tclinclude=''
7463 fi
7464
7465 if test "${ac_cv_path_tclsh+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468
7469 if test x"${with_tclinclude}" != x ; then
7470   if test -f ${with_tclinclude}/tclsh ; then
7471     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7472   elif test -f ${with_tclinclude}/src/tclsh ; then
7473     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7474   else
7475     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7476 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7477    { (exit 1); exit 1; }; }
7478   fi
7479 fi
7480 fi
7481
7482
7483 if test x"${ac_cv_path_tclsh}" = x ; then
7484   { echo "$as_me:$LINENO: result: none" >&5
7485 echo "${ECHO_T}none" >&6; }
7486   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7487 do
7488   # Extract the first word of "$ac_prog", so it can be a program name with args.
7489 set dummy $ac_prog; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_TCLSH+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   case $TCLSH in
7496   [\\/]* | ?:[\\/]*)
7497   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7498   ;;
7499   *)
7500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505   for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512 done
7513 IFS=$as_save_IFS
7514
7515   ;;
7516 esac
7517 fi
7518 TCLSH=$ac_cv_path_TCLSH
7519 if test -n "$TCLSH"; then
7520   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7521 echo "${ECHO_T}$TCLSH" >&6; }
7522 else
7523   { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7525 fi
7526
7527
7528   test -n "$TCLSH" && break
7529 done
7530
7531   if test x"${TCLSH}" = x ; then
7532     ac_cv_path_tclsh='';
7533   else
7534     ac_cv_path_tclsh="${TCLSH}";
7535   fi
7536 else
7537   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7538 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7539   TCLSH="${ac_cv_path_tclsh}"
7540
7541 fi
7542
7543 # Extract the first word of "zip", so it can be a program name with args.
7544 set dummy zip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_ZIP+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   case $ZIP in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560   for ac_exec_ext in '' $ac_executable_extensions; do
7561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570   ;;
7571 esac
7572 fi
7573 ZIP=$ac_cv_path_ZIP
7574 if test -n "$ZIP"; then
7575   { echo "$as_me:$LINENO: result: $ZIP" >&5
7576 echo "${ECHO_T}$ZIP" >&6; }
7577 else
7578   { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7580 fi
7581
7582
7583 for ac_prog in ocamlc
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLC+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $OCAMLC in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 OCAMLC=$ac_cv_path_OCAMLC
7616 if test -n "$OCAMLC"; then
7617   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618 echo "${ECHO_T}$OCAMLC" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625   test -n "$OCAMLC" && break
7626 done
7627
7628 for ac_prog in ocamlopt
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $OCAMLOPT in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   ;;
7658 esac
7659 fi
7660 OCAMLOPT=$ac_cv_path_OCAMLOPT
7661 if test -n "$OCAMLOPT"; then
7662   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663 echo "${ECHO_T}$OCAMLOPT" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670   test -n "$OCAMLOPT" && break
7671 done
7672
7673 for ac_prog in ocamldep
7674 do
7675   # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   case $OCAMLDEP in
7683   [\\/]* | ?:[\\/]*)
7684   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7685   ;;
7686   *)
7687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690   IFS=$as_save_IFS
7691   test -z "$as_dir" && as_dir=.
7692   for ac_exec_ext in '' $ac_executable_extensions; do
7693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696     break 2
7697   fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702   ;;
7703 esac
7704 fi
7705 OCAMLDEP=$ac_cv_path_OCAMLDEP
7706 if test -n "$OCAMLDEP"; then
7707   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708 echo "${ECHO_T}$OCAMLDEP" >&6; }
7709 else
7710   { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7712 fi
7713
7714
7715   test -n "$OCAMLDEP" && break
7716 done
7717
7718 for ac_prog in ocamldoc
7719 do
7720   # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725   echo $ECHO_N "(cached) $ECHO_C" >&6
7726 else
7727   case $OCAMLDOC in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737   for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744 done
7745 IFS=$as_save_IFS
7746
7747   ;;
7748 esac
7749 fi
7750 OCAMLDOC=$ac_cv_path_OCAMLDOC
7751 if test -n "$OCAMLDOC"; then
7752   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753 echo "${ECHO_T}$OCAMLDOC" >&6; }
7754 else
7755   { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7757 fi
7758
7759
7760   test -n "$OCAMLDOC" && break
7761 done
7762
7763 for ac_prog in gas as
7764 do
7765   # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_GAS+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   case $GAS in
7773   [\\/]* | ?:[\\/]*)
7774   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7775   ;;
7776   *)
7777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780   IFS=$as_save_IFS
7781   test -z "$as_dir" && as_dir=.
7782   for ac_exec_ext in '' $ac_executable_extensions; do
7783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786     break 2
7787   fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792   ;;
7793 esac
7794 fi
7795 GAS=$ac_cv_path_GAS
7796 if test -n "$GAS"; then
7797   { echo "$as_me:$LINENO: result: $GAS" >&5
7798 echo "${ECHO_T}$GAS" >&6; }
7799 else
7800   { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7802 fi
7803
7804
7805   test -n "$GAS" && break
7806 done
7807
7808
7809 { echo "$as_me:$LINENO: checking for linker version" >&5
7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_version+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814
7815    version_string="$(ld -v 2>&1 | head -1)"
7816
7817    # Check for ld64.
7818    if (echo "$version_string" | grep -q "ld64"); then
7819      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7820    else
7821      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7822    fi
7823
7824 fi
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7827
7828 cat >>confdefs.h <<_ACEOF
7829 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7830 _ACEOF
7831
7832
7833
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_r+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839    ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845   oldcflags="$CFLAGS"
7846   CFLAGS="$CFLAGS -Wl,-R."
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853
7854 int
7855 main ()
7856 {
7857
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866   *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869   (eval "$ac_link") 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } &&
7876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877   { (case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_try") 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (case "(($ac_try" in
7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889   *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892   (eval "$ac_try") 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   llvm_cv_link_use_r=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901         llvm_cv_link_use_r=no
7902 fi
7903
7904 rm -f core conftest.err conftest.$ac_objext \
7905       conftest$ac_exeext conftest.$ac_ext
7906   CFLAGS="$oldcflags"
7907   ac_ext=c
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914 fi
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917 if test "$llvm_cv_link_use_r" = yes ; then
7918
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_R 1
7921 _ACEOF
7922
7923   fi
7924
7925
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929   echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931    ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937   oldcflags="$CFLAGS"
7938   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939   cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 int
7947 main ()
7948 {
7949
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7956 case "(($ac_try" in
7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958   *) ac_try_echo=$ac_try;;
7959 esac
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961   (eval "$ac_link") 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   llvm_cv_link_use_export_dynamic=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         llvm_cv_link_use_export_dynamic=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext \
7997       conftest$ac_exeext conftest.$ac_ext
7998   CFLAGS="$oldcflags"
7999   ac_ext=c
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005
8006 fi
8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8010
8011 cat >>confdefs.h <<\_ACEOF
8012 #define HAVE_LINK_EXPORT_DYNAMIC 1
8013 _ACEOF
8014
8015   fi
8016
8017
8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020 if test "${llvm_cv_link_use_version_script+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023    ac_ext=c
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029   oldcflags="$CFLAGS"
8030
8031   # The following code is from the autoconf manual,
8032   # "11.13: Limitations of Usual Tools".
8033   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034   # Use mktemp if possible; otherwise fall back on mkdir,
8035   # with $RANDOM to make collisions less likely.
8036   : ${TMPDIR=/tmp}
8037   {
8038     tmp=`
8039       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8040     ` &&
8041     test -n "$tmp" && test -d "$tmp"
8042   } || {
8043     tmp=$TMPDIR/foo$$-$RANDOM
8044     (umask 077 && mkdir "$tmp")
8045   } || exit $?
8046
8047   echo "{" > "$tmp/export.map"
8048   echo "  global: main;" >> "$tmp/export.map"
8049   echo "  local: *;" >> "$tmp/export.map"
8050   echo "};" >> "$tmp/export.map"
8051
8052   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053   cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h.  */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h.  */
8059
8060 int
8061 main ()
8062 {
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_link") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083   { (case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_try") 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; } &&
8092          { ac_try='test -s conftest$ac_exeext'
8093   { (case "(($ac_try" in
8094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095   *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098   (eval "$ac_try") 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; }; then
8102   llvm_cv_link_use_version_script=yes
8103 else
8104   echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107         llvm_cv_link_use_version_script=no
8108 fi
8109
8110 rm -f core conftest.err conftest.$ac_objext \
8111       conftest$ac_exeext conftest.$ac_ext
8112   rm "$tmp/export.map"
8113   rmdir "$tmp"
8114   CFLAGS="$oldcflags"
8115   ac_ext=c
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121
8122 fi
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125 if test "$llvm_cv_link_use_version_script" = yes ; then
8126   HAVE_LINK_VERSION_SCRIPT=1
8127
8128   fi
8129
8130
8131
8132
8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135 if test "${ac_cv_c_const+set}" = set; then
8136   echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138   cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144
8145 int
8146 main ()
8147 {
8148 /* FIXME: Include the comments suggested by Paul. */
8149 #ifndef __cplusplus
8150   /* Ultrix mips cc rejects this.  */
8151   typedef int charset[2];
8152   const charset x;
8153   /* SunOS 4.1.1 cc rejects this.  */
8154   char const *const *ccp;
8155   char **p;
8156   /* NEC SVR4.0.2 mips cc rejects this.  */
8157   struct point {int x, y;};
8158   static struct point const zero = {0,0};
8159   /* AIX XL C 1.02.0.0 rejects this.
8160      It does not let you subtract one const X* pointer from another in
8161      an arm of an if-expression whose if-part is not a constant
8162      expression */
8163   const char *g = "string";
8164   ccp = &g + (g ? g-g : 0);
8165   /* HPUX 7.0 cc rejects these. */
8166   ++ccp;
8167   p = (char**) ccp;
8168   ccp = (char const *const *) p;
8169   { /* SCO 3.2v4 cc rejects this.  */
8170     char *t;
8171     char const *s = 0 ? (char *) 0 : (char const *) 0;
8172
8173     *t++ = 0;
8174     if (s) return 0;
8175   }
8176   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8177     int x[] = {25, 17};
8178     const int *foo = &x[0];
8179     ++foo;
8180   }
8181   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182     typedef const int *iptr;
8183     iptr p = 0;
8184     ++p;
8185   }
8186   { /* AIX XL C 1.02.0.0 rejects this saying
8187        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188     struct s { int j; const int *ap[3]; };
8189     struct s *b; b->j = 5;
8190   }
8191   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8192     const int foo = 10;
8193     if (!foo) return 0;
8194   }
8195   return !x[0] && !zero.x;
8196 #endif
8197
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } &&
8216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217   { (case "(($ac_try" in
8218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219   *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222   (eval "$ac_try") 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; } &&
8226          { ac_try='test -s conftest.$ac_objext'
8227   { (case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_try") 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_c_const=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241         ac_cv_c_const=no
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 fi
8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248 if test $ac_cv_c_const = no; then
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define const
8252 _ACEOF
8253
8254 fi
8255
8256
8257
8258
8259
8260
8261 ac_header_dirent=no
8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267   echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269   cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275 #include <sys/types.h>
8276 #include <$ac_hdr>
8277
8278 int
8279 main ()
8280 {
8281 if ((DIR *) 0)
8282 return 0;
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8289 case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_compile") 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; } &&
8311          { ac_try='test -s conftest.$ac_objext'
8312   { (case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_try") 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   eval "$as_ac_Header=yes"
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         eval "$as_ac_Header=no"
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 fi
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332                { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335   cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8337 _ACEOF
8338
8339 ac_header_dirent=$ac_hdr; break
8340 fi
8341
8342 done
8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344 if test $ac_header_dirent = dirent.h; then
8345   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   ac_func_search_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h.  */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h.  */
8357
8358 /* Override any GCC internal prototype to avoid an error.
8359    Use char because int might match the return type of a GCC
8360    builtin and then its argument prototype would still apply.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 char opendir ();
8365 int
8366 main ()
8367 {
8368 return opendir ();
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 for ac_lib in '' dir; do
8374   if test -z "$ac_lib"; then
8375     ac_res="none required"
8376   else
8377     ac_res=-l$ac_lib
8378     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8379   fi
8380   rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8382 case "(($ac_try" in
8383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384   *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387   (eval "$ac_link") 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395   { (case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400   (eval "$ac_try") 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_try") 2>&5
8411   ac_status=$?
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); }; }; then
8414   ac_cv_search_opendir=$ac_res
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext \
8423       conftest$ac_exeext
8424   if test "${ac_cv_search_opendir+set}" = set; then
8425   break
8426 fi
8427 done
8428 if test "${ac_cv_search_opendir+set}" = set; then
8429   :
8430 else
8431   ac_cv_search_opendir=no
8432 fi
8433 rm conftest.$ac_ext
8434 LIBS=$ac_func_search_save_LIBS
8435 fi
8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438 ac_res=$ac_cv_search_opendir
8439 if test "$ac_res" != no; then
8440   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8441
8442 fi
8443
8444 else
8445   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448   echo $ECHO_N "(cached) $ECHO_C" >&6
8449 else
8450   ac_func_search_save_LIBS=$LIBS
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 /* Override any GCC internal prototype to avoid an error.
8459    Use char because int might match the return type of a GCC
8460    builtin and then its argument prototype would still apply.  */
8461 #ifdef __cplusplus
8462 extern "C"
8463 #endif
8464 char opendir ();
8465 int
8466 main ()
8467 {
8468 return opendir ();
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 for ac_lib in '' x; do
8474   if test -z "$ac_lib"; then
8475     ac_res="none required"
8476   else
8477     ac_res=-l$ac_lib
8478     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8479   fi
8480   rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484   *) ac_try_echo=$ac_try;;
8485 esac
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487   (eval "$ac_link") 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495   { (case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_try") 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; } &&
8504          { ac_try='test -s conftest$ac_exeext'
8505   { (case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_try") 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; }; then
8514   ac_cv_search_opendir=$ac_res
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext \
8523       conftest$ac_exeext
8524   if test "${ac_cv_search_opendir+set}" = set; then
8525   break
8526 fi
8527 done
8528 if test "${ac_cv_search_opendir+set}" = set; then
8529   :
8530 else
8531   ac_cv_search_opendir=no
8532 fi
8533 rm conftest.$ac_ext
8534 LIBS=$ac_func_search_save_LIBS
8535 fi
8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538 ac_res=$ac_cv_search_opendir
8539 if test "$ac_res" != no; then
8540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8541
8542 fi
8543
8544 fi
8545
8546
8547 for ac_header in dlfcn.h
8548 do
8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 fi
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557                { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8559 else
8560   # Is the header compilable?
8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8564 /* confdefs.h.  */
8565 _ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h.  */
8569 $ac_includes_default
8570 #include <$ac_header>
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8574 case "(($ac_try" in
8575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576   *) ac_try_echo=$ac_try;;
8577 esac
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579   (eval "$ac_compile") 2>conftest.er1
8580   ac_status=$?
8581   grep -v '^ *+' conftest.er1 >conftest.err
8582   rm -f conftest.er1
8583   cat conftest.err >&5
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); } &&
8586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587   { (case "(($ac_try" in
8588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589   *) ac_try_echo=$ac_try;;
8590 esac
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592   (eval "$ac_try") 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; } &&
8596          { ac_try='test -s conftest.$ac_objext'
8597   { (case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_try") 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_header_compiler=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611         ac_header_compiler=no
8612 fi
8613
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6; }
8617
8618 # Is the header present?
8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h.  */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h.  */
8627 #include <$ac_header>
8628 _ACEOF
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8630 case "(($ac_try" in
8631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632   *) ac_try_echo=$ac_try;;
8633 esac
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8636   ac_status=$?
8637   grep -v '^ *+' conftest.er1 >conftest.err
8638   rm -f conftest.er1
8639   cat conftest.err >&5
8640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641   (exit $ac_status); } >/dev/null; then
8642   if test -s conftest.err; then
8643     ac_cpp_err=$ac_c_preproc_warn_flag
8644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8645   else
8646     ac_cpp_err=
8647   fi
8648 else
8649   ac_cpp_err=yes
8650 fi
8651 if test -z "$ac_cpp_err"; then
8652   ac_header_preproc=yes
8653 else
8654   echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657   ac_header_preproc=no
8658 fi
8659
8660 rm -f conftest.err conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662 echo "${ECHO_T}$ac_header_preproc" >&6; }
8663
8664 # So?  What about this header?
8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8666   yes:no: )
8667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671     ac_header_preproc=yes
8672     ;;
8673   no:yes:* )
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8686     ( cat <<\_ASBOX
8687 ## ------------------------------------ ##
8688 ## Report this to http://llvm.org/bugs/ ##
8689 ## ------------------------------------ ##
8690 _ASBOX
8691      ) | sed "s/^/$as_me: WARNING:     /" >&2
8692     ;;
8693 esac
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699   eval "$as_ac_Header=\$ac_header_preproc"
8700 fi
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702                { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8704
8705 fi
8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707   cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8709 _ACEOF
8710
8711 fi
8712
8713 done
8714
8715 # Check whether --enable-ltdl-install was given.
8716 if test "${enable_ltdl_install+set}" = set; then
8717   enableval=$enable_ltdl_install;
8718 fi
8719
8720
8721
8722
8723 if test x"${enable_ltdl_install-no}" != xno; then
8724   INSTALL_LTDL_TRUE=
8725   INSTALL_LTDL_FALSE='#'
8726 else
8727   INSTALL_LTDL_TRUE='#'
8728   INSTALL_LTDL_FALSE=
8729 fi
8730
8731
8732
8733 if test x"${enable_ltdl_convenience-no}" != xno; then
8734   CONVENIENCE_LTDL_TRUE=
8735   CONVENIENCE_LTDL_FALSE='#'
8736 else
8737   CONVENIENCE_LTDL_TRUE='#'
8738   CONVENIENCE_LTDL_FALSE=
8739 fi
8740
8741
8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8744 library_names_spec=
8745 libname_spec='lib$name'
8746 soname_spec=
8747 shrext_cmds=".so"
8748 postinstall_cmds=
8749 postuninstall_cmds=
8750 finish_cmds=
8751 finish_eval=
8752 shlibpath_var=
8753 shlibpath_overrides_runpath=unknown
8754 version_type=none
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 if test "$GCC" = yes; then
8758   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760     # if the path contains ";" then we assume it to be the separator
8761     # otherwise default to the standard path separator (i.e. ":") - it is
8762     # assumed that no part of a normal pathname contains ";" but that should
8763     # okay in the real world where ";" in dirpaths is itself problematic.
8764     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8765   else
8766     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8767   fi
8768 else
8769   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8770 fi
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8773
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8777
8778 case $host_os in
8779 aix3*)
8780   version_type=linux
8781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782   shlibpath_var=LIBPATH
8783
8784   # AIX 3 has no versioning support, so we append a major version to the name.
8785   soname_spec='${libname}${release}${shared_ext}$major'
8786   ;;
8787
8788 aix4* | aix5*)
8789   version_type=linux
8790   need_lib_prefix=no
8791   need_version=no
8792   hardcode_into_libs=yes
8793   if test "$host_cpu" = ia64; then
8794     # AIX 5 supports IA64
8795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796     shlibpath_var=LD_LIBRARY_PATH
8797   else
8798     # With GCC up to 2.95.x, collect2 would create an import file
8799     # for dependence libraries.  The import file would start with
8800     # the line `#! .'.  This would cause the generated library to
8801     # depend on `.', always an invalid library.  This was fixed in
8802     # development snapshots of GCC prior to 3.0.
8803     case $host_os in
8804       aix4 | aix4.[01] | aix4.[01].*)
8805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806            echo ' yes '
8807            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8808         :
8809       else
8810         can_build_shared=no
8811       fi
8812       ;;
8813     esac
8814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815     # soname into executable. Probably we can add versioning support to
8816     # collect2, so additional links can be useful in future.
8817     if test "$aix_use_runtimelinking" = yes; then
8818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819       # instead of lib<name>.a to let people know that these are not
8820       # typical AIX shared libraries.
8821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822     else
8823       # We preserve .a as extension for shared libraries through AIX4.2
8824       # and later when we are not doing run time linking.
8825       library_names_spec='${libname}${release}.a $libname.a'
8826       soname_spec='${libname}${release}${shared_ext}$major'
8827     fi
8828     shlibpath_var=LIBPATH
8829   fi
8830   ;;
8831
8832 amigaos*)
8833   library_names_spec='$libname.ixlibrary $libname.a'
8834   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835   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'
8836   ;;
8837
8838 beos*)
8839   library_names_spec='${libname}${shared_ext}'
8840   dynamic_linker="$host_os ld.so"
8841   shlibpath_var=LIBRARY_PATH
8842   ;;
8843
8844 bsdi[45]*)
8845   version_type=linux
8846   need_version=no
8847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848   soname_spec='${libname}${release}${shared_ext}$major'
8849   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850   shlibpath_var=LD_LIBRARY_PATH
8851   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853   # the default ld.so.conf also contains /usr/contrib/lib and
8854   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855   # libtool to hard-code these into programs
8856   ;;
8857
8858 cygwin* | mingw* | pw32*)
8859   version_type=windows
8860   shrext_cmds=".dll"
8861   need_version=no
8862   need_lib_prefix=no
8863
8864   case $GCC,$host_os in
8865   yes,cygwin* | yes,mingw* | yes,pw32*)
8866     library_names_spec='$libname.dll.a'
8867     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868     postinstall_cmds='base_file=`basename \${file}`~
8869       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870       dldir=$destdir/`dirname \$dlpath`~
8871       test -d \$dldir || mkdir -p \$dldir~
8872       $install_prog $dir/$dlname \$dldir/$dlname~
8873       chmod a+x \$dldir/$dlname'
8874     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875       dlpath=$dir/\$dldll~
8876        $rm \$dlpath'
8877     shlibpath_overrides_runpath=yes
8878
8879     case $host_os in
8880     cygwin*)
8881       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8884       ;;
8885     mingw*)
8886       # MinGW DLLs use traditional 'lib' prefix
8887       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890         # It is most probably a Windows format PATH printed by
8891         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892         # path with ; separators, and with drive letters. We can handle the
8893         # drive letters (cygwin fileutils understands them), so leave them,
8894         # especially as we might pass files found there to a mingw objdump,
8895         # which wouldn't understand a cygwinified path. Ahh.
8896         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8897       else
8898         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8899       fi
8900       ;;
8901     pw32*)
8902       # pw32 DLLs use 'pw' prefix rather than 'lib'
8903       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8904       ;;
8905     esac
8906     ;;
8907
8908   *)
8909     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8910     ;;
8911   esac
8912   dynamic_linker='Win32 ld.exe'
8913   # FIXME: first we should search . and the directory the executable is in
8914   shlibpath_var=PATH
8915   ;;
8916
8917 darwin* | rhapsody*)
8918   dynamic_linker="$host_os dyld"
8919   version_type=darwin
8920   need_lib_prefix=no
8921   need_version=no
8922   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923   soname_spec='${libname}${release}${major}$shared_ext'
8924   shlibpath_overrides_runpath=yes
8925   shlibpath_var=DYLD_LIBRARY_PATH
8926   shrext_cmds='.dylib'
8927   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928   if test "$GCC" = yes; then
8929     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"`
8930   else
8931     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8932   fi
8933   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934   ;;
8935
8936 dgux*)
8937   version_type=linux
8938   need_lib_prefix=no
8939   need_version=no
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941   soname_spec='${libname}${release}${shared_ext}$major'
8942   shlibpath_var=LD_LIBRARY_PATH
8943   ;;
8944
8945 freebsd1.*)
8946   dynamic_linker=no
8947   ;;
8948
8949 kfreebsd*-gnu)
8950   version_type=linux
8951   need_lib_prefix=no
8952   need_version=no
8953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954   soname_spec='${libname}${release}${shared_ext}$major'
8955   shlibpath_var=LD_LIBRARY_PATH
8956   shlibpath_overrides_runpath=no
8957   hardcode_into_libs=yes
8958   dynamic_linker='GNU ld.so'
8959   ;;
8960
8961 freebsd* | dragonfly*)
8962   # DragonFly does not have aout.  When/if they implement a new
8963   # versioning mechanism, adjust this.
8964   if test -x /usr/bin/objformat; then
8965     objformat=`/usr/bin/objformat`
8966   else
8967     case $host_os in
8968     freebsd[123].*) objformat=aout ;;
8969     *) objformat=elf ;;
8970     esac
8971   fi
8972   version_type=freebsd-$objformat
8973   case $version_type in
8974     freebsd-elf*)
8975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8976       need_version=no
8977       need_lib_prefix=no
8978       ;;
8979     freebsd-*)
8980       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8981       need_version=yes
8982       ;;
8983   esac
8984   shlibpath_var=LD_LIBRARY_PATH
8985   case $host_os in
8986   freebsd2.*)
8987     shlibpath_overrides_runpath=yes
8988     ;;
8989   freebsd3.[01]* | freebsdelf3.[01]*)
8990     shlibpath_overrides_runpath=yes
8991     hardcode_into_libs=yes
8992     ;;
8993   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995     shlibpath_overrides_runpath=no
8996     hardcode_into_libs=yes
8997     ;;
8998   freebsd*) # from 4.6 on
8999     shlibpath_overrides_runpath=yes
9000     hardcode_into_libs=yes
9001     ;;
9002   esac
9003   ;;
9004
9005 gnu*)
9006   version_type=linux
9007   need_lib_prefix=no
9008   need_version=no
9009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010   soname_spec='${libname}${release}${shared_ext}$major'
9011   shlibpath_var=LD_LIBRARY_PATH
9012   hardcode_into_libs=yes
9013   ;;
9014
9015 hpux9* | hpux10* | hpux11*)
9016   # Give a soname corresponding to the major version so that dld.sl refuses to
9017   # link against other versions.
9018   version_type=sunos
9019   need_lib_prefix=no
9020   need_version=no
9021   case $host_cpu in
9022   ia64*)
9023     shrext_cmds='.so'
9024     hardcode_into_libs=yes
9025     dynamic_linker="$host_os dld.so"
9026     shlibpath_var=LD_LIBRARY_PATH
9027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029     soname_spec='${libname}${release}${shared_ext}$major'
9030     if test "X$HPUX_IA64_MODE" = X32; then
9031       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9032     else
9033       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9034     fi
9035     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9036     ;;
9037    hppa*64*)
9038      shrext_cmds='.sl'
9039      hardcode_into_libs=yes
9040      dynamic_linker="$host_os dld.sl"
9041      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044      soname_spec='${libname}${release}${shared_ext}$major'
9045      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9047      ;;
9048    *)
9049     shrext_cmds='.sl'
9050     dynamic_linker="$host_os dld.sl"
9051     shlibpath_var=SHLIB_PATH
9052     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054     soname_spec='${libname}${release}${shared_ext}$major'
9055     ;;
9056   esac
9057   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058   postinstall_cmds='chmod 555 $lib'
9059   ;;
9060
9061 interix3*)
9062   version_type=linux
9063   need_lib_prefix=no
9064   need_version=no
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   shlibpath_overrides_runpath=no
9070   hardcode_into_libs=yes
9071   ;;
9072
9073 irix5* | irix6* | nonstopux*)
9074   case $host_os in
9075     nonstopux*) version_type=nonstopux ;;
9076     *)
9077         if test "$lt_cv_prog_gnu_ld" = yes; then
9078                 version_type=linux
9079         else
9080                 version_type=irix
9081         fi ;;
9082   esac
9083   need_lib_prefix=no
9084   need_version=no
9085   soname_spec='${libname}${release}${shared_ext}$major'
9086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9087   case $host_os in
9088   irix5* | nonstopux*)
9089     libsuff= shlibsuff=
9090     ;;
9091   *)
9092     case $LD in # libtool.m4 will add one of these switches to LD
9093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094       libsuff= shlibsuff= libmagic=32-bit;;
9095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096       libsuff=32 shlibsuff=N32 libmagic=N32;;
9097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099     *) libsuff= shlibsuff= libmagic=never-match;;
9100     esac
9101     ;;
9102   esac
9103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104   shlibpath_overrides_runpath=no
9105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107   hardcode_into_libs=yes
9108   ;;
9109
9110 # No shared lib support for Linux oldld, aout, or coff.
9111 linux*oldld* | linux*aout* | linux*coff*)
9112   dynamic_linker=no
9113   ;;
9114
9115 # This must be Linux ELF.
9116 linux*)
9117   version_type=linux
9118   need_lib_prefix=no
9119   need_version=no
9120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121   soname_spec='${libname}${release}${shared_ext}$major'
9122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123   shlibpath_var=LD_LIBRARY_PATH
9124   shlibpath_overrides_runpath=no
9125   # This implies no fast_install, which is unacceptable.
9126   # Some rework will be needed to allow for fast_install
9127   # before this can be enabled.
9128   hardcode_into_libs=yes
9129
9130   # Append ld.so.conf contents to the search path
9131   if test -f /etc/ld.so.conf; then
9132     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' ' '`
9133     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9134   fi
9135
9136   # We used to test for /lib/ld.so.1 and disable shared libraries on
9137   # powerpc, because MkLinux only supported shared libraries with the
9138   # GNU dynamic linker.  Since this was broken with cross compilers,
9139   # most powerpc-linux boxes support dynamic linking these days and
9140   # people can always --disable-shared, the test was removed, and we
9141   # assume the GNU/Linux dynamic linker is in use.
9142   dynamic_linker='GNU/Linux ld.so'
9143   ;;
9144
9145 knetbsd*-gnu)
9146   version_type=linux
9147   need_lib_prefix=no
9148   need_version=no
9149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150   soname_spec='${libname}${release}${shared_ext}$major'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   shlibpath_overrides_runpath=no
9153   hardcode_into_libs=yes
9154   dynamic_linker='GNU ld.so'
9155   ;;
9156
9157 netbsd*)
9158   version_type=sunos
9159   need_lib_prefix=no
9160   need_version=no
9161   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164     dynamic_linker='NetBSD (a.out) ld.so'
9165   else
9166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167     soname_spec='${libname}${release}${shared_ext}$major'
9168     dynamic_linker='NetBSD ld.elf_so'
9169   fi
9170   shlibpath_var=LD_LIBRARY_PATH
9171   shlibpath_overrides_runpath=yes
9172   hardcode_into_libs=yes
9173   ;;
9174
9175 newsos6)
9176   version_type=linux
9177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   shlibpath_overrides_runpath=yes
9180   ;;
9181
9182 nto-qnx*)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   shlibpath_overrides_runpath=yes
9190   ;;
9191
9192 openbsd*)
9193   version_type=sunos
9194   sys_lib_dlsearch_path_spec="/usr/lib"
9195   need_lib_prefix=no
9196   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9197   case $host_os in
9198     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199     *)                         need_version=no  ;;
9200   esac
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9205     case $host_os in
9206       openbsd2.[89] | openbsd2.[89].*)
9207         shlibpath_overrides_runpath=no
9208         ;;
9209       *)
9210         shlibpath_overrides_runpath=yes
9211         ;;
9212       esac
9213   else
9214     shlibpath_overrides_runpath=yes
9215   fi
9216   ;;
9217
9218 os2*)
9219   libname_spec='$name'
9220   shrext_cmds=".dll"
9221   need_lib_prefix=no
9222   library_names_spec='$libname${shared_ext} $libname.a'
9223   dynamic_linker='OS/2 ld.exe'
9224   shlibpath_var=LIBPATH
9225   ;;
9226
9227 osf3* | osf4* | osf5*)
9228   version_type=osf
9229   need_lib_prefix=no
9230   need_version=no
9231   soname_spec='${libname}${release}${shared_ext}$major'
9232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9236   ;;
9237
9238 solaris*)
9239   version_type=linux
9240   need_lib_prefix=no
9241   need_version=no
9242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243   soname_spec='${libname}${release}${shared_ext}$major'
9244   shlibpath_var=LD_LIBRARY_PATH
9245   shlibpath_overrides_runpath=yes
9246   hardcode_into_libs=yes
9247   # ldd complains unless libraries are executable
9248   postinstall_cmds='chmod +x $lib'
9249   ;;
9250
9251 sunos4*)
9252   version_type=sunos
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   shlibpath_overrides_runpath=yes
9257   if test "$with_gnu_ld" = yes; then
9258     need_lib_prefix=no
9259   fi
9260   need_version=yes
9261   ;;
9262
9263 sysv4 | sysv4.3*)
9264   version_type=linux
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   case $host_vendor in
9269     sni)
9270       shlibpath_overrides_runpath=no
9271       need_lib_prefix=no
9272       export_dynamic_flag_spec='${wl}-Blargedynsym'
9273       runpath_var=LD_RUN_PATH
9274       ;;
9275     siemens)
9276       need_lib_prefix=no
9277       ;;
9278     motorola)
9279       need_lib_prefix=no
9280       need_version=no
9281       shlibpath_overrides_runpath=no
9282       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9283       ;;
9284   esac
9285   ;;
9286
9287 sysv4*MP*)
9288   if test -d /usr/nec ;then
9289     version_type=linux
9290     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291     soname_spec='$libname${shared_ext}.$major'
9292     shlibpath_var=LD_LIBRARY_PATH
9293   fi
9294   ;;
9295
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297   version_type=freebsd-elf
9298   need_lib_prefix=no
9299   need_version=no
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   hardcode_into_libs=yes
9304   if test "$with_gnu_ld" = yes; then
9305     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306     shlibpath_overrides_runpath=no
9307   else
9308     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309     shlibpath_overrides_runpath=yes
9310     case $host_os in
9311       sco3.2v5*)
9312         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9313         ;;
9314     esac
9315   fi
9316   sys_lib_dlsearch_path_spec='/usr/lib'
9317   ;;
9318
9319 uts4*)
9320   version_type=linux
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   shlibpath_var=LD_LIBRARY_PATH
9324   ;;
9325
9326 *)
9327   dynamic_linker=no
9328   ;;
9329 esac
9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331 echo "${ECHO_T}$dynamic_linker" >&6; }
9332 test "$dynamic_linker" = no && can_build_shared=no
9333
9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335 if test "$GCC" = yes; then
9336   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9337 fi
9338
9339
9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibext+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345
9346 module=yes
9347 eval libltdl_cv_shlibext=$shrext_cmds
9348
9349 fi
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352 if test -n "$libltdl_cv_shlibext"; then
9353
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9356 _ACEOF
9357
9358 fi
9359
9360
9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   libltdl_cv_shlibpath_var="$shlibpath_var"
9367 fi
9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370 if test -n "$libltdl_cv_shlibpath_var"; then
9371
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9374 _ACEOF
9375
9376 fi
9377
9378
9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_sys_search_path+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9385 fi
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388 if test -n "$libltdl_cv_sys_search_path"; then
9389   sys_search_path=
9390   for dir in $libltdl_cv_sys_search_path; do
9391     if test -z "$sys_search_path"; then
9392       sys_search_path="$dir"
9393     else
9394       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9395     fi
9396   done
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9400 _ACEOF
9401
9402 fi
9403
9404 { echo "$as_me:$LINENO: checking for objdir" >&5
9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406 if test "${libltdl_cv_objdir+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   libltdl_cv_objdir="$objdir"
9410   if test -n "$objdir"; then
9411     :
9412   else
9413     rm -f .libs 2>/dev/null
9414     mkdir .libs 2>/dev/null
9415     if test -d .libs; then
9416       libltdl_cv_objdir=.libs
9417     else
9418       # MS-DOS does not allow filenames that begin with a dot.
9419       libltdl_cv_objdir=_libs
9420     fi
9421   rmdir .libs 2>/dev/null
9422   fi
9423
9424 fi
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9427
9428 cat >>confdefs.h <<_ACEOF
9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9430 _ACEOF
9431
9432
9433
9434
9435
9436
9437 # Check for command to grab the raw symbol name followed by C symbol from nm.
9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443
9444 # These are sane defaults that work on at least a few old systems.
9445 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9446
9447 # Character class describing NM global symbol codes.
9448 symcode='[BCDEGRST]'
9449
9450 # Regexp to match symbols that can be accessed directly from C.
9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9452
9453 # Transform an extracted symbol line into a proper C declaration
9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9455
9456 # Transform an extracted symbol line into symbol name and symbol address
9457 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'"
9458
9459 # Define system-specific variables.
9460 case $host_os in
9461 aix*)
9462   symcode='[BCDT]'
9463   ;;
9464 cygwin* | mingw* | pw32*)
9465   symcode='[ABCDGISTW]'
9466   ;;
9467 hpux*) # Its linker distinguishes data from code symbols
9468   if test "$host_cpu" = ia64; then
9469     symcode='[ABCDEGRST]'
9470   fi
9471   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472   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'"
9473   ;;
9474 linux*)
9475   if test "$host_cpu" = ia64; then
9476     symcode='[ABCDGIRSTW]'
9477     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478     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'"
9479   fi
9480   ;;
9481 irix* | nonstopux*)
9482   symcode='[BCDEGRST]'
9483   ;;
9484 osf*)
9485   symcode='[BCDEGQRST]'
9486   ;;
9487 solaris*)
9488   symcode='[BDRT]'
9489   ;;
9490 sco3.2v5*)
9491   symcode='[DT]'
9492   ;;
9493 sysv4.2uw2*)
9494   symcode='[DT]'
9495   ;;
9496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9497   symcode='[ABDT]'
9498   ;;
9499 sysv4)
9500   symcode='[DFNSTU]'
9501   ;;
9502 esac
9503
9504 # Handle CRLF in mingw tool chain
9505 opt_cr=
9506 case $build_os in
9507 mingw*)
9508   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9509   ;;
9510 esac
9511
9512 # If we're using GNU nm, then use its standard symbol codes.
9513 case `$NM -V 2>&1` in
9514 *GNU* | *'with BFD'*)
9515   symcode='[ABCDGIRSTW]' ;;
9516 esac
9517
9518 # Try without a prefix undercore, then with it.
9519 for ac_symprfx in "" "_"; do
9520
9521   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522   symxfrm="\\1 $ac_symprfx\\2 \\2"
9523
9524   # Write the raw and C identifiers.
9525   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9526
9527   # Check to see that the pipe works correctly.
9528   pipe_works=no
9529
9530   rm -f conftest*
9531   cat > conftest.$ac_ext <<EOF
9532 #ifdef __cplusplus
9533 extern "C" {
9534 #endif
9535 char nm_test_var;
9536 void nm_test_func(){}
9537 #ifdef __cplusplus
9538 }
9539 #endif
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9541 EOF
9542
9543   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544   (eval $ac_compile) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; then
9548     # Now try to grab the symbols.
9549     nlist=conftest.nm
9550     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } && test -s "$nlist"; then
9555       # Try sorting and uniquifying the output.
9556       if sort "$nlist" | uniq > "$nlist"T; then
9557         mv -f "$nlist"T "$nlist"
9558       else
9559         rm -f "$nlist"T
9560       fi
9561
9562       # Make sure that we snagged all the symbols we need.
9563       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565           cat <<EOF > conftest.$ac_ext
9566 #ifdef __cplusplus
9567 extern "C" {
9568 #endif
9569
9570 EOF
9571           # Now generate the symbol file.
9572           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9573
9574           cat <<EOF >> conftest.$ac_ext
9575 #if defined (__STDC__) && __STDC__
9576 # define lt_ptr_t void *
9577 #else
9578 # define lt_ptr_t char *
9579 # define const
9580 #endif
9581
9582 /* The mapping between symbol names and symbols. */
9583 const struct {
9584   const char *name;
9585   lt_ptr_t address;
9586 }
9587 lt_preloaded_symbols[] =
9588 {
9589 EOF
9590           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591           cat <<\EOF >> conftest.$ac_ext
9592   {0, (lt_ptr_t) 0}
9593 };
9594
9595 #ifdef __cplusplus
9596 }
9597 #endif
9598 EOF
9599           # Now try linking the two files.
9600           mv conftest.$ac_objext conftstm.$ac_objext
9601           lt_save_LIBS="$LIBS"
9602           lt_save_CFLAGS="$CFLAGS"
9603           LIBS="conftstm.$ac_objext"
9604           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9610             pipe_works=yes
9611           fi
9612           LIBS="$lt_save_LIBS"
9613           CFLAGS="$lt_save_CFLAGS"
9614         else
9615           echo "cannot find nm_test_func in $nlist" >&5
9616         fi
9617       else
9618         echo "cannot find nm_test_var in $nlist" >&5
9619       fi
9620     else
9621       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9622     fi
9623   else
9624     echo "$progname: failed program was:" >&5
9625     cat conftest.$ac_ext >&5
9626   fi
9627   rm -f conftest* conftst*
9628
9629   # Do not use the global_symbol_pipe unless it works.
9630   if test "$pipe_works" = yes; then
9631     break
9632   else
9633     lt_cv_sys_global_symbol_pipe=
9634   fi
9635 done
9636
9637 fi
9638
9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640   lt_cv_sys_global_symbol_to_cdecl=
9641 fi
9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643   { echo "$as_me:$LINENO: result: failed" >&5
9644 echo "${ECHO_T}failed" >&6; }
9645 else
9646   { echo "$as_me:$LINENO: result: ok" >&5
9647 echo "${ECHO_T}ok" >&6; }
9648 fi
9649
9650
9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657     libltdl_cv_preloaded_symbols=yes
9658   else
9659     libltdl_cv_preloaded_symbols=no
9660   fi
9661
9662 fi
9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PRELOADED_SYMBOLS 1
9669 _ACEOF
9670
9671 fi
9672
9673 LIBADD_DL=
9674
9675 ac_ext=c
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9680
9681
9682 { echo "$as_me:$LINENO: checking for shl_load" >&5
9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_shl_load+set}" = set; then
9685   echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687   cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h.  */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h.  */
9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9695 #define shl_load innocuous_shl_load
9696
9697 /* System header to define __stub macros and hopefully few prototypes,
9698     which can conflict with char shl_load (); below.
9699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700     <limits.h> exists even on freestanding compilers.  */
9701
9702 #ifdef __STDC__
9703 # include <limits.h>
9704 #else
9705 # include <assert.h>
9706 #endif
9707
9708 #undef shl_load
9709
9710 /* Override any GCC internal prototype to avoid an error.
9711    Use char because int might match the return type of a GCC
9712    builtin and then its argument prototype would still apply.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char shl_load ();
9717 /* The GNU C library defines this for functions which it implements
9718     to always fail with ENOSYS.  Some functions are actually named
9719     something starting with __ and the normal name is an alias.  */
9720 #if defined __stub_shl_load || defined __stub___shl_load
9721 choke me
9722 #endif
9723
9724 int
9725 main ()
9726 {
9727 return shl_load ();
9728   ;
9729   return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736   *) ac_try_echo=$ac_try;;
9737 esac
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739   (eval "$ac_link") 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747   { (case "(($ac_try" in
9748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749   *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752   (eval "$ac_try") 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (case "(($ac_try" in
9758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759   *) ac_try_echo=$ac_try;;
9760 esac
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762   (eval "$ac_try") 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_cv_func_shl_load=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771         ac_cv_func_shl_load=no
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext \
9775       conftest$ac_exeext conftest.$ac_ext
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779 if test $ac_cv_func_shl_load = yes; then
9780
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_SHL_LOAD 1
9783 _ACEOF
9784
9785 else
9786   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   ac_check_lib_save_LIBS=$LIBS
9792 LIBS="-ldld  $LIBS"
9793 cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799
9800 /* Override any GCC internal prototype to avoid an error.
9801    Use char because int might match the return type of a GCC
9802    builtin and then its argument prototype would still apply.  */
9803 #ifdef __cplusplus
9804 extern "C"
9805 #endif
9806 char shl_load ();
9807 int
9808 main ()
9809 {
9810 return shl_load ();
9811   ;
9812   return 0;
9813 }
9814 _ACEOF
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9817 case "(($ac_try" in
9818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819   *) ac_try_echo=$ac_try;;
9820 esac
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822   (eval "$ac_link") 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830   { (case "(($ac_try" in
9831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832   *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835   (eval "$ac_try") 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; } &&
9839          { ac_try='test -s conftest$ac_exeext'
9840   { (case "(($ac_try" in
9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842   *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845   (eval "$ac_try") 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   ac_cv_lib_dld_shl_load=yes
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854         ac_cv_lib_dld_shl_load=no
9855 fi
9856
9857 rm -f core conftest.err conftest.$ac_objext \
9858       conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9860 fi
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9864
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_SHL_LOAD 1
9867 _ACEOF
9868
9869         LIBADD_DL="$LIBADD_DL -ldld"
9870 else
9871   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874   echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876   ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-ldl  $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any GCC internal prototype to avoid an error.
9886    Use char because int might match the return type of a GCC
9887    builtin and then its argument prototype would still apply.  */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char dlopen ();
9892 int
9893 main ()
9894 {
9895 return dlopen ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9902 case "(($ac_try" in
9903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904   *) ac_try_echo=$ac_try;;
9905 esac
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907   (eval "$ac_link") 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915   { (case "(($ac_try" in
9916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917   *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920   (eval "$ac_try") 2>&5
9921   ac_status=$?
9922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923   (exit $ac_status); }; } &&
9924          { ac_try='test -s conftest$ac_exeext'
9925   { (case "(($ac_try" in
9926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927   *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930   (eval "$ac_try") 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_cv_lib_dl_dlopen=yes
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939         ac_cv_lib_dl_dlopen=no
9940 fi
9941
9942 rm -f core conftest.err conftest.$ac_objext \
9943       conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9945 fi
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9949
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LIBDL 1
9952 _ACEOF
9953
9954                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9955 else
9956   cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h.  */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h.  */
9962 #if HAVE_DLFCN_H
9963 #  include <dlfcn.h>
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 dlopen(0, 0);
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; } &&
9998          { ac_try='test -s conftest$ac_exeext'
9999   { (case "(($ac_try" in
10000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001   *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004   (eval "$ac_try") 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; }; then
10008
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10011 _ACEOF
10012  libltdl_cv_func_dlopen="yes"
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld  $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char dlopen ();
10038 int
10039 main ()
10040 {
10041 return dlopen ();
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_link") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } &&
10060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061   { (case "(($ac_try" in
10062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063   *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066   (eval "$ac_try") 2>&5
10067   ac_status=$?
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); }; } &&
10070          { ac_try='test -s conftest$ac_exeext'
10071   { (case "(($ac_try" in
10072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073   *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076   (eval "$ac_try") 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   ac_cv_lib_svld_dlopen=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085         ac_cv_lib_svld_dlopen=no
10086 fi
10087
10088 rm -f core conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10091 fi
10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094 if test $ac_cv_lib_svld_dlopen = yes; then
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10098 _ACEOF
10099
10100                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10101 else
10102   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-ldld  $LIBS"
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115
10116 /* Override any GCC internal prototype to avoid an error.
10117    Use char because int might match the return type of a GCC
10118    builtin and then its argument prototype would still apply.  */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char dld_link ();
10123 int
10124 main ()
10125 {
10126 return dld_link ();
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138   (eval "$ac_link") 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } &&
10145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146   { (case "(($ac_try" in
10147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148   *) ac_try_echo=$ac_try;;
10149 esac
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151   (eval "$ac_try") 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; } &&
10155          { ac_try='test -s conftest$ac_exeext'
10156   { (case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_try") 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_lib_dld_dld_link=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170         ac_cv_lib_dld_dld_link=no
10171 fi
10172
10173 rm -f core conftest.err conftest.$ac_objext \
10174       conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS
10176 fi
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179 if test $ac_cv_lib_dld_dld_link = yes; then
10180
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_DLD 1
10183 _ACEOF
10184
10185                 LIBADD_DL="$LIBADD_DL -ldld"
10186 else
10187   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h.  */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h.  */
10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10200 #define _dyld_func_lookup innocuous__dyld_func_lookup
10201
10202 /* System header to define __stub macros and hopefully few prototypes,
10203     which can conflict with char _dyld_func_lookup (); below.
10204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205     <limits.h> exists even on freestanding compilers.  */
10206
10207 #ifdef __STDC__
10208 # include <limits.h>
10209 #else
10210 # include <assert.h>
10211 #endif
10212
10213 #undef _dyld_func_lookup
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216    Use char because int might match the return type of a GCC
10217    builtin and then its argument prototype would still apply.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char _dyld_func_lookup ();
10222 /* The GNU C library defines this for functions which it implements
10223     to always fail with ENOSYS.  Some functions are actually named
10224     something starting with __ and the normal name is an alias.  */
10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10226 choke me
10227 #endif
10228
10229 int
10230 main ()
10231 {
10232 return _dyld_func_lookup ();
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241   *) ac_try_echo=$ac_try;;
10242 esac
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244   (eval "$ac_link") 2>conftest.er1
10245   ac_status=$?
10246   grep -v '^ *+' conftest.er1 >conftest.err
10247   rm -f conftest.er1
10248   cat conftest.err >&5
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); } &&
10251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252   { (case "(($ac_try" in
10253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254   *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257   (eval "$ac_try") 2>&5
10258   ac_status=$?
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); }; } &&
10261          { ac_try='test -s conftest$ac_exeext'
10262   { (case "(($ac_try" in
10263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264   *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267   (eval "$ac_try") 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; }; then
10271   ac_cv_func__dyld_func_lookup=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276         ac_cv_func__dyld_func_lookup=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284 if test $ac_cv_func__dyld_func_lookup = yes; then
10285
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DYLD 1
10288 _ACEOF
10289
10290 fi
10291
10292
10293 fi
10294
10295
10296 fi
10297
10298
10299 fi
10300
10301 rm -f core conftest.err conftest.$ac_objext \
10302       conftest$ac_exeext conftest.$ac_ext
10303
10304 fi
10305
10306
10307 fi
10308
10309
10310 fi
10311
10312
10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10314 then
10315   lt_save_LIBS="$LIBS"
10316   LIBS="$LIBS $LIBADD_DL"
10317
10318 for ac_func in dlerror
10319 do
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10334 #define $ac_func innocuous_$ac_func
10335
10336 /* System header to define __stub macros and hopefully few prototypes,
10337     which can conflict with char $ac_func (); below.
10338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339     <limits.h> exists even on freestanding compilers.  */
10340
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10346
10347 #undef $ac_func
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char $ac_func ();
10356 /* The GNU C library defines this for functions which it implements
10357     to always fail with ENOSYS.  Some functions are actually named
10358     something starting with __ and the normal name is an alias.  */
10359 #if defined __stub_$ac_func || defined __stub___$ac_func
10360 choke me
10361 #endif
10362
10363 int
10364 main ()
10365 {
10366 return $ac_func ();
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_link") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } &&
10385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386   { (case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_try") 2>&5
10392   ac_status=$?
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); }; } &&
10395          { ac_try='test -s conftest$ac_exeext'
10396   { (case "(($ac_try" in
10397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398   *) ac_try_echo=$ac_try;;
10399 esac
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401   (eval "$ac_try") 2>&5
10402   ac_status=$?
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); }; }; then
10405   eval "$as_ac_var=yes"
10406 else
10407   echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10409
10410         eval "$as_ac_var=no"
10411 fi
10412
10413 rm -f core conftest.err conftest.$ac_objext \
10414       conftest$ac_exeext conftest.$ac_ext
10415 fi
10416 ac_res=`eval echo '${'$as_ac_var'}'`
10417                { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10420   cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10422 _ACEOF
10423
10424 fi
10425 done
10426
10427   LIBS="$lt_save_LIBS"
10428 fi
10429 ac_ext=c
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10434
10435
10436
10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440   echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442   ac_cv_sys_symbol_underscore=no
10443   cat > conftest.$ac_ext <<EOF
10444 void nm_test_func(){}
10445 int main(){nm_test_func;return 0;}
10446 EOF
10447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448   (eval $ac_compile) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; then
10452     # Now try to grab the symbols.
10453     ac_nlist=conftest.nm
10454     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && test -s "$ac_nlist"; then
10459       # See whether the symbols have a leading underscore.
10460       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461         ac_cv_sys_symbol_underscore=yes
10462       else
10463         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10464           :
10465         else
10466           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10467         fi
10468       fi
10469     else
10470       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10471     fi
10472   else
10473     echo "configure: failed program was:" >&5
10474     cat conftest.c >&5
10475   fi
10476   rm -rf conftest*
10477
10478 fi
10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10481
10482
10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484   if test x"$libltdl_cv_func_dlopen" = xyes ||
10485      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_need_uscore+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491   libltdl_cv_need_uscore=unknown
10492           save_LIBS="$LIBS"
10493           LIBS="$LIBS $LIBADD_DL"
10494           if test "$cross_compiling" = yes; then :
10495   libltdl_cv_need_uscore=cross
10496 else
10497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498   lt_status=$lt_dlunknown
10499   cat > conftest.$ac_ext <<EOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10502
10503 #if HAVE_DLFCN_H
10504 #include <dlfcn.h>
10505 #endif
10506
10507 #include <stdio.h>
10508
10509 #ifdef RTLD_GLOBAL
10510 #  define LT_DLGLOBAL           RTLD_GLOBAL
10511 #else
10512 #  ifdef DL_GLOBAL
10513 #    define LT_DLGLOBAL         DL_GLOBAL
10514 #  else
10515 #    define LT_DLGLOBAL         0
10516 #  endif
10517 #endif
10518
10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520    find out it does not work in some platform. */
10521 #ifndef LT_DLLAZY_OR_NOW
10522 #  ifdef RTLD_LAZY
10523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10524 #  else
10525 #    ifdef DL_LAZY
10526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10527 #    else
10528 #      ifdef RTLD_NOW
10529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10530 #      else
10531 #        ifdef DL_NOW
10532 #          define LT_DLLAZY_OR_NOW      DL_NOW
10533 #        else
10534 #          define LT_DLLAZY_OR_NOW      0
10535 #        endif
10536 #      endif
10537 #    endif
10538 #  endif
10539 #endif
10540
10541 #ifdef __cplusplus
10542 extern "C" void exit (int);
10543 #endif
10544
10545 void fnord() { int i=42;}
10546 int main ()
10547 {
10548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549   int status = $lt_dlunknown;
10550
10551   if (self)
10552     {
10553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555       /* dlclose (self); */
10556     }
10557   else
10558     puts (dlerror ());
10559
10560     exit (status);
10561 }
10562 EOF
10563   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564   (eval $ac_link) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568     (./conftest; exit; ) >&5 2>/dev/null
10569     lt_status=$?
10570     case x$lt_status in
10571       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573       x$lt_dlunknown|x*)  ;;
10574     esac
10575   else :
10576     # compilation failed
10577
10578   fi
10579 fi
10580 rm -fr conftest*
10581
10582           LIBS="$save_LIBS"
10583
10584 fi
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10587   fi
10588 fi
10589
10590 if test x"$libltdl_cv_need_uscore" = xyes; then
10591
10592 cat >>confdefs.h <<\_ACEOF
10593 #define NEED_USCORE 1
10594 _ACEOF
10595
10596 fi
10597
10598
10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   # PORTME does your system automatically load deplibs for dlopen?
10605   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606   # For now, we just catch OSes we know something about -- in the
10607   # future, we'll try test this programmatically.
10608   libltdl_cv_sys_dlopen_deplibs=unknown
10609   case "$host_os" in
10610   aix3*|aix4.1.*|aix4.2.*)
10611     # Unknown whether this is true for these versions of AIX, but
10612     # we want this `case' here to explicitly catch those versions.
10613     libltdl_cv_sys_dlopen_deplibs=unknown
10614     ;;
10615   aix[45]*)
10616     libltdl_cv_sys_dlopen_deplibs=yes
10617     ;;
10618   darwin*)
10619     # Assuming the user has installed a libdl from somewhere, this is true
10620     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621     libltdl_cv_sys_dlopen_deplibs=yes
10622     ;;
10623   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624     # GNU and its variants, using gnu ld.so (Glibc)
10625     libltdl_cv_sys_dlopen_deplibs=yes
10626     ;;
10627   hpux10*|hpux11*)
10628     libltdl_cv_sys_dlopen_deplibs=yes
10629     ;;
10630   interix*)
10631     libltdl_cv_sys_dlopen_deplibs=yes
10632     ;;
10633   irix[12345]*|irix6.[01]*)
10634     # Catch all versions of IRIX before 6.2, and indicate that we don't
10635     # know how it worked for any of those versions.
10636     libltdl_cv_sys_dlopen_deplibs=unknown
10637     ;;
10638   irix*)
10639     # The case above catches anything before 6.2, and it's known that
10640     # at 6.2 and later dlopen does load deplibs.
10641     libltdl_cv_sys_dlopen_deplibs=yes
10642     ;;
10643   netbsd*)
10644     libltdl_cv_sys_dlopen_deplibs=yes
10645     ;;
10646   openbsd*)
10647     libltdl_cv_sys_dlopen_deplibs=yes
10648     ;;
10649   osf[1234]*)
10650     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651     # it did *not* use an RPATH in a shared library to find objects the
10652     # library depends on, so we explicitly say `no'.
10653     libltdl_cv_sys_dlopen_deplibs=no
10654     ;;
10655   osf5.0|osf5.0a|osf5.1)
10656     # dlopen *does* load deplibs and with the right loader patch applied
10657     # it even uses RPATH in a shared library to search for shared objects
10658     # that the library depends on, but there's no easy way to know if that
10659     # patch is installed.  Since this is the case, all we can really
10660     # say is unknown -- it depends on the patch being installed.  If
10661     # it is, this changes to `yes'.  Without it, it would be `no'.
10662     libltdl_cv_sys_dlopen_deplibs=unknown
10663     ;;
10664   osf*)
10665     # the two cases above should catch all versions of osf <= 5.1.  Read
10666     # the comments above for what we know about them.
10667     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668     # is used to find them so we can finally say `yes'.
10669     libltdl_cv_sys_dlopen_deplibs=yes
10670     ;;
10671   solaris*)
10672     libltdl_cv_sys_dlopen_deplibs=yes
10673     ;;
10674   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675     libltdl_cv_sys_dlopen_deplibs=yes
10676     ;;
10677   esac
10678
10679 fi
10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10683
10684 cat >>confdefs.h <<\_ACEOF
10685 #define LTDL_DLOPEN_DEPLIBS 1
10686 _ACEOF
10687
10688 fi
10689
10690
10691 for ac_header in argz.h
10692 do
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 fi
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701                { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10703 else
10704   # Is the header compilable?
10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h.  */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h.  */
10713 $ac_includes_default
10714 #include <$ac_header>
10715 _ACEOF
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720   *) ac_try_echo=$ac_try;;
10721 esac
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723   (eval "$ac_compile") 2>conftest.er1
10724   ac_status=$?
10725   grep -v '^ *+' conftest.er1 >conftest.err
10726   rm -f conftest.er1
10727   cat conftest.err >&5
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); } &&
10730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731   { (case "(($ac_try" in
10732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733   *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736   (eval "$ac_try") 2>&5
10737   ac_status=$?
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); }; } &&
10740          { ac_try='test -s conftest.$ac_objext'
10741   { (case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_try") 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   ac_header_compiler=yes
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755         ac_header_compiler=no
10756 fi
10757
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6; }
10761
10762 # Is the header present?
10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h.  */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h.  */
10771 #include <$ac_header>
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803
10804 rm -f conftest.err conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806 echo "${ECHO_T}$ac_header_preproc" >&6; }
10807
10808 # So?  What about this header?
10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10810   yes:no: )
10811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815     ac_header_preproc=yes
10816     ;;
10817   no:yes:* )
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10830     ( cat <<\_ASBOX
10831 ## ------------------------------------ ##
10832 ## Report this to http://llvm.org/bugs/ ##
10833 ## ------------------------------------ ##
10834 _ASBOX
10835      ) | sed "s/^/$as_me: WARNING:     /" >&2
10836     ;;
10837 esac
10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   eval "$as_ac_Header=\$ac_header_preproc"
10844 fi
10845 ac_res=`eval echo '${'$as_ac_Header'}'`
10846                { echo "$as_me:$LINENO: result: $ac_res" >&5
10847 echo "${ECHO_T}$ac_res" >&6; }
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856
10857 done
10858
10859
10860 { echo "$as_me:$LINENO: checking for error_t" >&5
10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862 if test "${ac_cv_type_error_t+set}" = set; then
10863   echo $ECHO_N "(cached) $ECHO_C" >&6
10864 else
10865   cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 #if HAVE_ARGZ_H
10872 #  include <argz.h>
10873 #endif
10874
10875 typedef error_t ac__type_new_;
10876 int
10877 main ()
10878 {
10879 if ((ac__type_new_ *) 0)
10880   return 0;
10881 if (sizeof (ac__type_new_))
10882   return 0;
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_compile") 2>conftest.er1
10895   ac_status=$?
10896   grep -v '^ *+' conftest.er1 >conftest.err
10897   rm -f conftest.er1
10898   cat conftest.err >&5
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902   { (case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_try") 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }; } &&
10911          { ac_try='test -s conftest.$ac_objext'
10912   { (case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_try") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }; }; then
10921   ac_cv_type_error_t=yes
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926         ac_cv_type_error_t=no
10927 fi
10928
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 fi
10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933 if test $ac_cv_type_error_t = yes; then
10934
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_ERROR_T 1
10937 _ACEOF
10938
10939
10940 else
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define error_t int
10944 _ACEOF
10945
10946 fi
10947
10948
10949
10950
10951
10952
10953
10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10955 do
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10970 #define $ac_func innocuous_$ac_func
10971
10972 /* System header to define __stub macros and hopefully few prototypes,
10973     which can conflict with char $ac_func (); below.
10974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975     <limits.h> exists even on freestanding compilers.  */
10976
10977 #ifdef __STDC__
10978 # include <limits.h>
10979 #else
10980 # include <assert.h>
10981 #endif
10982
10983 #undef $ac_func
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986    Use char because int might match the return type of a GCC
10987    builtin and then its argument prototype would still apply.  */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char $ac_func ();
10992 /* The GNU C library defines this for functions which it implements
10993     to always fail with ENOSYS.  Some functions are actually named
10994     something starting with __ and the normal name is an alias.  */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
10996 choke me
10997 #endif
10998
10999 int
11000 main ()
11001 {
11002 return $ac_func ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_link") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; } &&
11031          { ac_try='test -s conftest$ac_exeext'
11032   { (case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_try") 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }; }; then
11041   eval "$as_ac_var=yes"
11042 else
11043   echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11045
11046         eval "$as_ac_var=no"
11047 fi
11048
11049 rm -f core conftest.err conftest.$ac_objext \
11050       conftest$ac_exeext conftest.$ac_ext
11051 fi
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053                { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056   cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11059
11060 fi
11061 done
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11091                   stdio.h unistd.h
11092 do
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 fi
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101                { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 else
11104   # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 $ac_includes_default
11114 #include <$ac_header>
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123   (eval "$ac_compile") 2>conftest.er1
11124   ac_status=$?
11125   grep -v '^ *+' conftest.er1 >conftest.err
11126   rm -f conftest.er1
11127   cat conftest.err >&5
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); } &&
11130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131   { (case "(($ac_try" in
11132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133   *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136   (eval "$ac_try") 2>&5
11137   ac_status=$?
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); }; } &&
11140          { ac_try='test -s conftest.$ac_objext'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   ac_header_compiler=yes
11151 else
11152   echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11154
11155         ac_header_compiler=no
11156 fi
11157
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <$ac_header>
11172 _ACEOF
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
11186   if test -s conftest.err; then
11187     ac_cpp_err=$ac_c_preproc_warn_flag
11188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11189   else
11190     ac_cpp_err=
11191   fi
11192 else
11193   ac_cpp_err=yes
11194 fi
11195 if test -z "$ac_cpp_err"; then
11196   ac_header_preproc=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   ac_header_preproc=no
11202 fi
11203
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207
11208 # So?  What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210   yes:no: )
11211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215     ac_header_preproc=yes
11216     ;;
11217   no:yes:* )
11218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230     ( cat <<\_ASBOX
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11234 _ASBOX
11235      ) | sed "s/^/$as_me: WARNING:     /" >&2
11236     ;;
11237 esac
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241   echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243   eval "$as_ac_Header=\$ac_header_preproc"
11244 fi
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246                { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11248
11249 fi
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251   cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11253 _ACEOF
11254
11255 fi
11256
11257 done
11258
11259
11260
11261
11262
11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11264 do
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273                { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11275 else
11276   # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_compile") 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } &&
11302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303   { (case "(($ac_try" in
11304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305   *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308   (eval "$ac_try") 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; } &&
11312          { ac_try='test -s conftest.$ac_objext'
11313   { (case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_try") 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; }; then
11322   ac_header_compiler=yes
11323 else
11324   echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327         ac_header_compiler=no
11328 fi
11329
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11333
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 #include <$ac_header>
11344 _ACEOF
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11352   ac_status=$?
11353   grep -v '^ *+' conftest.er1 >conftest.err
11354   rm -f conftest.er1
11355   cat conftest.err >&5
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); } >/dev/null; then
11358   if test -s conftest.err; then
11359     ac_cpp_err=$ac_c_preproc_warn_flag
11360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361   else
11362     ac_cpp_err=
11363   fi
11364 else
11365   ac_cpp_err=yes
11366 fi
11367 if test -z "$ac_cpp_err"; then
11368   ac_header_preproc=yes
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373   ac_header_preproc=no
11374 fi
11375
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11379
11380 # So?  What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382   yes:no: )
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387     ac_header_preproc=yes
11388     ;;
11389   no:yes:* )
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11402     ( cat <<\_ASBOX
11403 ## ------------------------------------ ##
11404 ## Report this to http://llvm.org/bugs/ ##
11405 ## ------------------------------------ ##
11406 _ASBOX
11407      ) | sed "s/^/$as_me: WARNING:     /" >&2
11408     ;;
11409 esac
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   eval "$as_ac_Header=\$ac_header_preproc"
11416 fi
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418                { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420
11421 fi
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423   cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425 _ACEOF
11426
11427 fi
11428
11429 done
11430
11431
11432
11433 for ac_header in string.h strings.h
11434 do
11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   echo $ECHO_N "(cached) $ECHO_C" >&6
11441 fi
11442 ac_res=`eval echo '${'$as_ac_Header'}'`
11443                { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 else
11446   # Is the header compilable?
11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455 $ac_includes_default
11456 #include <$ac_header>
11457 _ACEOF
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462   *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465   (eval "$ac_compile") 2>conftest.er1
11466   ac_status=$?
11467   grep -v '^ *+' conftest.er1 >conftest.err
11468   rm -f conftest.er1
11469   cat conftest.err >&5
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473   { (case "(($ac_try" in
11474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475   *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478   (eval "$ac_try") 2>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); }; } &&
11482          { ac_try='test -s conftest.$ac_objext'
11483   { (case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_try") 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_header_compiler=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         ac_header_compiler=no
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11503
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <$ac_header>
11514 _ACEOF
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } >/dev/null; then
11528   if test -s conftest.err; then
11529     ac_cpp_err=$ac_c_preproc_warn_flag
11530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11531   else
11532     ac_cpp_err=
11533   fi
11534 else
11535   ac_cpp_err=yes
11536 fi
11537 if test -z "$ac_cpp_err"; then
11538   ac_header_preproc=yes
11539 else
11540   echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543   ac_header_preproc=no
11544 fi
11545
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11549
11550 # So?  What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552   yes:no: )
11553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557     ac_header_preproc=yes
11558     ;;
11559   no:yes:* )
11560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572     ( cat <<\_ASBOX
11573 ## ------------------------------------ ##
11574 ## Report this to http://llvm.org/bugs/ ##
11575 ## ------------------------------------ ##
11576 _ASBOX
11577      ) | sed "s/^/$as_me: WARNING:     /" >&2
11578     ;;
11579 esac
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583   echo $ECHO_N "(cached) $ECHO_C" >&6
11584 else
11585   eval "$as_ac_Header=\$ac_header_preproc"
11586 fi
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588                { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590
11591 fi
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593   cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11595 _ACEOF
11596  break
11597 fi
11598
11599 done
11600
11601
11602
11603
11604 for ac_func in strchr index
11605 do
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612   cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11620 #define $ac_func innocuous_$ac_func
11621
11622 /* System header to define __stub macros and hopefully few prototypes,
11623     which can conflict with char $ac_func (); below.
11624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625     <limits.h> exists even on freestanding compilers.  */
11626
11627 #ifdef __STDC__
11628 # include <limits.h>
11629 #else
11630 # include <assert.h>
11631 #endif
11632
11633 #undef $ac_func
11634
11635 /* Override any GCC internal prototype to avoid an error.
11636    Use char because int might match the return type of a GCC
11637    builtin and then its argument prototype would still apply.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char $ac_func ();
11642 /* The GNU C library defines this for functions which it implements
11643     to always fail with ENOSYS.  Some functions are actually named
11644     something starting with __ and the normal name is an alias.  */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11646 choke me
11647 #endif
11648
11649 int
11650 main ()
11651 {
11652 return $ac_func ();
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664   (eval "$ac_link") 2>conftest.er1
11665   ac_status=$?
11666   grep -v '^ *+' conftest.er1 >conftest.err
11667   rm -f conftest.er1
11668   cat conftest.err >&5
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672   { (case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_try") 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; } &&
11681          { ac_try='test -s conftest$ac_exeext'
11682   { (case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_try") 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   eval "$as_ac_var=yes"
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696         eval "$as_ac_var=no"
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext \
11700       conftest$ac_exeext conftest.$ac_ext
11701 fi
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703                { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706   cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11708 _ACEOF
11709  break
11710 fi
11711 done
11712
11713
11714
11715 for ac_func in strrchr rindex
11716 do
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11731 #define $ac_func innocuous_$ac_func
11732
11733 /* System header to define __stub macros and hopefully few prototypes,
11734     which can conflict with char $ac_func (); below.
11735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736     <limits.h> exists even on freestanding compilers.  */
11737
11738 #ifdef __STDC__
11739 # include <limits.h>
11740 #else
11741 # include <assert.h>
11742 #endif
11743
11744 #undef $ac_func
11745
11746 /* Override any GCC internal prototype to avoid an error.
11747    Use char because int might match the return type of a GCC
11748    builtin and then its argument prototype would still apply.  */
11749 #ifdef __cplusplus
11750 extern "C"
11751 #endif
11752 char $ac_func ();
11753 /* The GNU C library defines this for functions which it implements
11754     to always fail with ENOSYS.  Some functions are actually named
11755     something starting with __ and the normal name is an alias.  */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11757 choke me
11758 #endif
11759
11760 int
11761 main ()
11762 {
11763 return $ac_func ();
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_link") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783   { (case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_try") 2>&5
11789   ac_status=$?
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); }; } &&
11792          { ac_try='test -s conftest$ac_exeext'
11793   { (case "(($ac_try" in
11794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795   *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798   (eval "$ac_try") 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   eval "$as_ac_var=yes"
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807         eval "$as_ac_var=no"
11808 fi
11809
11810 rm -f core conftest.err conftest.$ac_objext \
11811       conftest$ac_exeext conftest.$ac_ext
11812 fi
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814                { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817   cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11819 _ACEOF
11820  break
11821 fi
11822 done
11823
11824
11825
11826 for ac_func in memcpy bcopy
11827 do
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11842 #define $ac_func innocuous_$ac_func
11843
11844 /* System header to define __stub macros and hopefully few prototypes,
11845     which can conflict with char $ac_func (); below.
11846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847     <limits.h> exists even on freestanding compilers.  */
11848
11849 #ifdef __STDC__
11850 # include <limits.h>
11851 #else
11852 # include <assert.h>
11853 #endif
11854
11855 #undef $ac_func
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char $ac_func ();
11864 /* The GNU C library defines this for functions which it implements
11865     to always fail with ENOSYS.  Some functions are actually named
11866     something starting with __ and the normal name is an alias.  */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11868 choke me
11869 #endif
11870
11871 int
11872 main ()
11873 {
11874 return $ac_func ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883   *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886   (eval "$ac_link") 2>conftest.er1
11887   ac_status=$?
11888   grep -v '^ *+' conftest.er1 >conftest.err
11889   rm -f conftest.er1
11890   cat conftest.err >&5
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } &&
11893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894   { (case "(($ac_try" in
11895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896   *) ac_try_echo=$ac_try;;
11897 esac
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899   (eval "$ac_try") 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; } &&
11903          { ac_try='test -s conftest$ac_exeext'
11904   { (case "(($ac_try" in
11905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906   *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909   (eval "$ac_try") 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; }; then
11913   eval "$as_ac_var=yes"
11914 else
11915   echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11917
11918         eval "$as_ac_var=no"
11919 fi
11920
11921 rm -f core conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 fi
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925                { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928   cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11930 _ACEOF
11931  break
11932 fi
11933 done
11934
11935
11936
11937 for ac_func in memmove strcmp
11938 do
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11953 #define $ac_func innocuous_$ac_func
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956     which can conflict with char $ac_func (); below.
11957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958     <limits.h> exists even on freestanding compilers.  */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef $ac_func
11967
11968 /* Override any GCC internal prototype to avoid an error.
11969    Use char because int might match the return type of a GCC
11970    builtin and then its argument prototype would still apply.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char $ac_func ();
11975 /* The GNU C library defines this for functions which it implements
11976     to always fail with ENOSYS.  Some functions are actually named
11977     something starting with __ and the normal name is an alias.  */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11979 choke me
11980 #endif
11981
11982 int
11983 main ()
11984 {
11985 return $ac_func ();
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_link") 2>conftest.er1
11998   ac_status=$?
11999   grep -v '^ *+' conftest.er1 >conftest.err
12000   rm -f conftest.er1
12001   cat conftest.err >&5
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); } &&
12004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005   { (case "(($ac_try" in
12006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007   *) ac_try_echo=$ac_try;;
12008 esac
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010   (eval "$ac_try") 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_try") 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; }; then
12024   eval "$as_ac_var=yes"
12025 else
12026   echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029         eval "$as_ac_var=no"
12030 fi
12031
12032 rm -f core conftest.err conftest.$ac_objext \
12033       conftest$ac_exeext conftest.$ac_ext
12034 fi
12035 ac_res=`eval echo '${'$as_ac_var'}'`
12036                { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039   cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 _ACEOF
12042
12043 fi
12044 done
12045
12046
12047
12048
12049 for ac_func in closedir opendir readdir
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12065 #define $ac_func innocuous_$ac_func
12066
12067 /* System header to define __stub macros and hopefully few prototypes,
12068     which can conflict with char $ac_func (); below.
12069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070     <limits.h> exists even on freestanding compilers.  */
12071
12072 #ifdef __STDC__
12073 # include <limits.h>
12074 #else
12075 # include <assert.h>
12076 #endif
12077
12078 #undef $ac_func
12079
12080 /* Override any GCC internal prototype to avoid an error.
12081    Use char because int might match the return type of a GCC
12082    builtin and then its argument prototype would still apply.  */
12083 #ifdef __cplusplus
12084 extern "C"
12085 #endif
12086 char $ac_func ();
12087 /* The GNU C library defines this for functions which it implements
12088     to always fail with ENOSYS.  Some functions are actually named
12089     something starting with __ and the normal name is an alias.  */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12091 choke me
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097 return $ac_func ();
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106   *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109   (eval "$ac_link") 2>conftest.er1
12110   ac_status=$?
12111   grep -v '^ *+' conftest.er1 >conftest.err
12112   rm -f conftest.er1
12113   cat conftest.err >&5
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); } &&
12116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117   { (case "(($ac_try" in
12118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119   *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122   (eval "$ac_try") 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; } &&
12126          { ac_try='test -s conftest$ac_exeext'
12127   { (case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_try") 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136   eval "$as_ac_var=yes"
12137 else
12138   echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141         eval "$as_ac_var=no"
12142 fi
12143
12144 rm -f core conftest.err conftest.$ac_objext \
12145       conftest$ac_exeext conftest.$ac_ext
12146 fi
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148                { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151   cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153 _ACEOF
12154
12155 fi
12156 done
12157
12158
12159
12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12162
12163 ICC=no
12164 IXX=no
12165 case $CC in
12166   icc*|icpc*)
12167     ICC=yes
12168     IXX=yes
12169     ;;
12170    *)
12171     ;;
12172 esac
12173
12174 if test "$GCC" != "yes" && test "$ICC" != "yes"
12175 then
12176   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177 echo "$as_me: error: gcc|icc required but not found" >&2;}
12178    { (exit 1); exit 1; }; }
12179 fi
12180
12181 if test "$GXX" != "yes" && test "$IXX" != "yes"
12182 then
12183   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185    { (exit 1); exit 1; }; }
12186 fi
12187
12188 if test "$GCC" = "yes"
12189 then
12190   cat >conftest.$ac_ext <<_ACEOF
12191 #if !defined(__GNUC__) || __GNUC__ < 3
12192 #error Unsupported GCC version
12193 #endif
12194
12195 _ACEOF
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200   *) ac_try_echo=$ac_try;;
12201 esac
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203   (eval "$ac_compile") 2>conftest.er1
12204   ac_status=$?
12205   grep -v '^ *+' conftest.er1 >conftest.err
12206   rm -f conftest.er1
12207   cat conftest.err >&5
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); } &&
12210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12211   { (case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_try") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; } &&
12220          { ac_try='test -s conftest.$ac_objext'
12221   { (case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_try") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   :
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12236 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12237    { (exit 1); exit 1; }; }
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 fi
12242
12243 if test -z "$llvm_cv_gnu_make_command"
12244 then
12245   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12246 echo "$as_me: error: GNU Make required but not found" >&2;}
12247    { (exit 1); exit 1; }; }
12248 fi
12249
12250 { echo "$as_me:$LINENO: result: ok" >&5
12251 echo "${ECHO_T}ok" >&6; }
12252
12253 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12254 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12255 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12256
12257 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12258
12259 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12260 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12261
12262
12263
12264 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12265 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12266 if test "${ac_cv_lib_m_sin+set}" = set; then
12267   echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269   ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-lm  $LIBS"
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h.  */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h.  */
12277
12278 /* Override any GCC internal prototype to avoid an error.
12279    Use char because int might match the return type of a GCC
12280    builtin and then its argument prototype would still apply.  */
12281 #ifdef __cplusplus
12282 extern "C"
12283 #endif
12284 char sin ();
12285 int
12286 main ()
12287 {
12288 return sin ();
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_link") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308   { (case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_try") 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; } &&
12317          { ac_try='test -s conftest$ac_exeext'
12318   { (case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323   (eval "$ac_try") 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; }; then
12327   ac_cv_lib_m_sin=yes
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332         ac_cv_lib_m_sin=no
12333 fi
12334
12335 rm -f core conftest.err conftest.$ac_objext \
12336       conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12338 fi
12339 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12340 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12341 if test $ac_cv_lib_m_sin = yes; then
12342   cat >>confdefs.h <<_ACEOF
12343 #define HAVE_LIBM 1
12344 _ACEOF
12345
12346   LIBS="-lm $LIBS"
12347
12348 fi
12349
12350 if test "$llvm_cv_os_type" = "MingW" ; then
12351
12352 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12353 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12354 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-limagehlp  $LIBS"
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365
12366
12367 int
12368 main ()
12369 {
12370 return main ();
12371   ;
12372   return 0;
12373 }
12374 _ACEOF
12375 rm -f conftest.$ac_objext conftest$ac_exeext
12376 if { (ac_try="$ac_link"
12377 case "(($ac_try" in
12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379   *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382   (eval "$ac_link") 2>conftest.er1
12383   ac_status=$?
12384   grep -v '^ *+' conftest.er1 >conftest.err
12385   rm -f conftest.er1
12386   cat conftest.err >&5
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); } &&
12389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12390   { (case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_try") 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; } &&
12399          { ac_try='test -s conftest$ac_exeext'
12400   { (case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_try") 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); }; }; then
12409   ac_cv_lib_imagehlp_main=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414         ac_cv_lib_imagehlp_main=no
12415 fi
12416
12417 rm -f core conftest.err conftest.$ac_objext \
12418       conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_lib_save_LIBS
12420 fi
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12422 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12423 if test $ac_cv_lib_imagehlp_main = yes; then
12424   cat >>confdefs.h <<_ACEOF
12425 #define HAVE_LIBIMAGEHLP 1
12426 _ACEOF
12427
12428   LIBS="-limagehlp $LIBS"
12429
12430 fi
12431
12432
12433 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12434 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12435 if test "${ac_cv_lib_psapi_main+set}" = set; then
12436   echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438   ac_check_lib_save_LIBS=$LIBS
12439 LIBS="-lpsapi  $LIBS"
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446
12447
12448 int
12449 main ()
12450 {
12451 return main ();
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 rm -f conftest.$ac_objext conftest$ac_exeext
12457 if { (ac_try="$ac_link"
12458 case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_link") 2>conftest.er1
12464   ac_status=$?
12465   grep -v '^ *+' conftest.er1 >conftest.err
12466   rm -f conftest.er1
12467   cat conftest.err >&5
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471   { (case "(($ac_try" in
12472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473   *) ac_try_echo=$ac_try;;
12474 esac
12475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12476   (eval "$ac_try") 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; } &&
12480          { ac_try='test -s conftest$ac_exeext'
12481   { (case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486   (eval "$ac_try") 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; }; then
12490   ac_cv_lib_psapi_main=yes
12491 else
12492   echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495         ac_cv_lib_psapi_main=no
12496 fi
12497
12498 rm -f core conftest.err conftest.$ac_objext \
12499       conftest$ac_exeext conftest.$ac_ext
12500 LIBS=$ac_check_lib_save_LIBS
12501 fi
12502 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12503 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12504 if test $ac_cv_lib_psapi_main = yes; then
12505   cat >>confdefs.h <<_ACEOF
12506 #define HAVE_LIBPSAPI 1
12507 _ACEOF
12508
12509   LIBS="-lpsapi $LIBS"
12510
12511 fi
12512
12513 fi
12514
12515 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12516 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12517 if test "${ac_cv_search_dlopen+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   ac_func_search_save_LIBS=$LIBS
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527
12528 /* Override any GCC internal prototype to avoid an error.
12529    Use char because int might match the return type of a GCC
12530    builtin and then its argument prototype would still apply.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 char dlopen ();
12535 int
12536 main ()
12537 {
12538 return dlopen ();
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 for ac_lib in '' dl; do
12544   if test -z "$ac_lib"; then
12545     ac_res="none required"
12546   else
12547     ac_res=-l$ac_lib
12548     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12549   fi
12550   rm -f conftest.$ac_objext conftest$ac_exeext
12551 if { (ac_try="$ac_link"
12552 case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557   (eval "$ac_link") 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12565   { (case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_try") 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (case "(($ac_try" in
12576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12577   *) ac_try_echo=$ac_try;;
12578 esac
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580   (eval "$ac_try") 2>&5
12581   ac_status=$?
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); }; }; then
12584   ac_cv_search_dlopen=$ac_res
12585 else
12586   echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589
12590 fi
12591
12592 rm -f core conftest.err conftest.$ac_objext \
12593       conftest$ac_exeext
12594   if test "${ac_cv_search_dlopen+set}" = set; then
12595   break
12596 fi
12597 done
12598 if test "${ac_cv_search_dlopen+set}" = set; then
12599   :
12600 else
12601   ac_cv_search_dlopen=no
12602 fi
12603 rm conftest.$ac_ext
12604 LIBS=$ac_func_search_save_LIBS
12605 fi
12606 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12607 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12608 ac_res=$ac_cv_search_dlopen
12609 if test "$ac_res" != no; then
12610   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12611
12612 cat >>confdefs.h <<\_ACEOF
12613 #define HAVE_DLOPEN 1
12614 _ACEOF
12615
12616 else
12617   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12618 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12619 fi
12620
12621
12622 if test "$llvm_cv_enable_libffi" = "yes" ; then
12623   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12624 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_ffi_call+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 /* Override any GCC internal prototype to avoid an error.
12637    Use char because int might match the return type of a GCC
12638    builtin and then its argument prototype would still apply.  */
12639 #ifdef __cplusplus
12640 extern "C"
12641 #endif
12642 char ffi_call ();
12643 int
12644 main ()
12645 {
12646 return ffi_call ();
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 for ac_lib in '' ffi; do
12652   if test -z "$ac_lib"; then
12653     ac_res="none required"
12654   else
12655     ac_res=-l$ac_lib
12656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12657   fi
12658   rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662   *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665   (eval "$ac_link") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } &&
12672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673   { (case "(($ac_try" in
12674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675   *) ac_try_echo=$ac_try;;
12676 esac
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678   (eval "$ac_try") 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; } &&
12682          { ac_try='test -s conftest$ac_exeext'
12683   { (case "(($ac_try" in
12684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685   *) ac_try_echo=$ac_try;;
12686 esac
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688   (eval "$ac_try") 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; }; then
12692   ac_cv_search_ffi_call=$ac_res
12693 else
12694   echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext \
12701       conftest$ac_exeext
12702   if test "${ac_cv_search_ffi_call+set}" = set; then
12703   break
12704 fi
12705 done
12706 if test "${ac_cv_search_ffi_call+set}" = set; then
12707   :
12708 else
12709   ac_cv_search_ffi_call=no
12710 fi
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12713 fi
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12715 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12716 ac_res=$ac_cv_search_ffi_call
12717 if test "$ac_res" != no; then
12718   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12719
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_FFI_CALL 1
12722 _ACEOF
12723
12724 else
12725   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12726 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12727    { (exit 1); exit 1; }; }
12728 fi
12729
12730 fi
12731
12732 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12733 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12734 if test "${ac_cv_search_mallinfo+set}" = set; then
12735   echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737   ac_func_search_save_LIBS=$LIBS
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744
12745 /* Override any GCC internal prototype to avoid an error.
12746    Use char because int might match the return type of a GCC
12747    builtin and then its argument prototype would still apply.  */
12748 #ifdef __cplusplus
12749 extern "C"
12750 #endif
12751 char mallinfo ();
12752 int
12753 main ()
12754 {
12755 return mallinfo ();
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 for ac_lib in '' malloc; do
12761   if test -z "$ac_lib"; then
12762     ac_res="none required"
12763   else
12764     ac_res=-l$ac_lib
12765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12766   fi
12767   rm -f conftest.$ac_objext conftest$ac_exeext
12768 if { (ac_try="$ac_link"
12769 case "(($ac_try" in
12770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771   *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774   (eval "$ac_link") 2>conftest.er1
12775   ac_status=$?
12776   grep -v '^ *+' conftest.er1 >conftest.err
12777   rm -f conftest.er1
12778   cat conftest.err >&5
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } &&
12781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782   { (case "(($ac_try" in
12783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784   *) ac_try_echo=$ac_try;;
12785 esac
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787   (eval "$ac_try") 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); }; } &&
12791          { ac_try='test -s conftest$ac_exeext'
12792   { (case "(($ac_try" in
12793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794   *) ac_try_echo=$ac_try;;
12795 esac
12796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797   (eval "$ac_try") 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801   ac_cv_search_mallinfo=$ac_res
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806
12807 fi
12808
12809 rm -f core conftest.err conftest.$ac_objext \
12810       conftest$ac_exeext
12811   if test "${ac_cv_search_mallinfo+set}" = set; then
12812   break
12813 fi
12814 done
12815 if test "${ac_cv_search_mallinfo+set}" = set; then
12816   :
12817 else
12818   ac_cv_search_mallinfo=no
12819 fi
12820 rm conftest.$ac_ext
12821 LIBS=$ac_func_search_save_LIBS
12822 fi
12823 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12824 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12825 ac_res=$ac_cv_search_mallinfo
12826 if test "$ac_res" != no; then
12827   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12828
12829 cat >>confdefs.h <<\_ACEOF
12830 #define HAVE_MALLINFO 1
12831 _ACEOF
12832
12833 fi
12834
12835
12836 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12837
12838 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12839 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12841   echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843   ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lpthread  $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853    Use char because int might match the return type of a GCC
12854    builtin and then its argument prototype would still apply.  */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char pthread_mutex_init ();
12859 int
12860 main ()
12861 {
12862 return pthread_mutex_init ();
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_link") 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest$ac_exeext'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_cv_lib_pthread_pthread_mutex_init=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906         ac_cv_lib_pthread_pthread_mutex_init=no
12907 fi
12908
12909 rm -f core conftest.err conftest.$ac_objext \
12910       conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12912 fi
12913 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12914 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12915 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12916   cat >>confdefs.h <<_ACEOF
12917 #define HAVE_LIBPTHREAD 1
12918 _ACEOF
12919
12920   LIBS="-lpthread $LIBS"
12921
12922 fi
12923
12924   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12925 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   ac_func_search_save_LIBS=$LIBS
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936
12937 /* Override any GCC internal prototype to avoid an error.
12938    Use char because int might match the return type of a GCC
12939    builtin and then its argument prototype would still apply.  */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char pthread_mutex_lock ();
12944 int
12945 main ()
12946 {
12947 return pthread_mutex_lock ();
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 for ac_lib in '' pthread; do
12953   if test -z "$ac_lib"; then
12954     ac_res="none required"
12955   else
12956     ac_res=-l$ac_lib
12957     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12958   fi
12959   rm -f conftest.$ac_objext conftest$ac_exeext
12960 if { (ac_try="$ac_link"
12961 case "(($ac_try" in
12962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963   *) ac_try_echo=$ac_try;;
12964 esac
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966   (eval "$ac_link") 2>conftest.er1
12967   ac_status=$?
12968   grep -v '^ *+' conftest.er1 >conftest.err
12969   rm -f conftest.er1
12970   cat conftest.err >&5
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } &&
12973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12974   { (case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_try") 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; } &&
12983          { ac_try='test -s conftest$ac_exeext'
12984   { (case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_try") 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; }; then
12993   ac_cv_search_pthread_mutex_lock=$ac_res
12994 else
12995   echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998
12999 fi
13000
13001 rm -f core conftest.err conftest.$ac_objext \
13002       conftest$ac_exeext
13003   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13004   break
13005 fi
13006 done
13007 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13008   :
13009 else
13010   ac_cv_search_pthread_mutex_lock=no
13011 fi
13012 rm conftest.$ac_ext
13013 LIBS=$ac_func_search_save_LIBS
13014 fi
13015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13016 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13017 ac_res=$ac_cv_search_pthread_mutex_lock
13018 if test "$ac_res" != no; then
13019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_PTHREAD_MUTEX_LOCK 1
13023 _ACEOF
13024
13025 fi
13026
13027   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13028 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   ac_func_search_save_LIBS=$LIBS
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h.  */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h.  */
13039
13040 /* Override any GCC internal prototype to avoid an error.
13041    Use char because int might match the return type of a GCC
13042    builtin and then its argument prototype would still apply.  */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char pthread_rwlock_init ();
13047 int
13048 main ()
13049 {
13050 return pthread_rwlock_init ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 for ac_lib in '' pthread; do
13056   if test -z "$ac_lib"; then
13057     ac_res="none required"
13058   else
13059     ac_res=-l$ac_lib
13060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13061   fi
13062   rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (ac_try="$ac_link"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest$ac_exeext'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_search_pthread_rwlock_init=$ac_res
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101
13102 fi
13103
13104 rm -f core conftest.err conftest.$ac_objext \
13105       conftest$ac_exeext
13106   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13107   break
13108 fi
13109 done
13110 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13111   :
13112 else
13113   ac_cv_search_pthread_rwlock_init=no
13114 fi
13115 rm conftest.$ac_ext
13116 LIBS=$ac_func_search_save_LIBS
13117 fi
13118 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13119 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13120 ac_res=$ac_cv_search_pthread_rwlock_init
13121 if test "$ac_res" != no; then
13122   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_PTHREAD_RWLOCK_INIT 1
13126 _ACEOF
13127
13128 fi
13129
13130   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13131 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   ac_func_search_save_LIBS=$LIBS
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142
13143 /* Override any GCC internal prototype to avoid an error.
13144    Use char because int might match the return type of a GCC
13145    builtin and then its argument prototype would still apply.  */
13146 #ifdef __cplusplus
13147 extern "C"
13148 #endif
13149 char pthread_getspecific ();
13150 int
13151 main ()
13152 {
13153 return pthread_getspecific ();
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 for ac_lib in '' pthread; do
13159   if test -z "$ac_lib"; then
13160     ac_res="none required"
13161   else
13162     ac_res=-l$ac_lib
13163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13164   fi
13165   rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (ac_try="$ac_link"
13167 case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_link") 2>conftest.er1
13173   ac_status=$?
13174   grep -v '^ *+' conftest.er1 >conftest.err
13175   rm -f conftest.er1
13176   cat conftest.err >&5
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); } &&
13179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13180   { (case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_try") 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; } &&
13189          { ac_try='test -s conftest$ac_exeext'
13190   { (case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_try") 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   ac_cv_search_pthread_getspecific=$ac_res
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext \
13208       conftest$ac_exeext
13209   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13210   break
13211 fi
13212 done
13213 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13214   :
13215 else
13216   ac_cv_search_pthread_getspecific=no
13217 fi
13218 rm conftest.$ac_ext
13219 LIBS=$ac_func_search_save_LIBS
13220 fi
13221 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13222 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13223 ac_res=$ac_cv_search_pthread_getspecific
13224 if test "$ac_res" != no; then
13225   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13226
13227 cat >>confdefs.h <<\_ACEOF
13228 #define HAVE_PTHREAD_GETSPECIFIC 1
13229 _ACEOF
13230
13231 fi
13232
13233 fi
13234
13235
13236 # Check whether --with-udis86 was given.
13237 if test "${with_udis86+set}" = set; then
13238   withval=$with_udis86;
13239       USE_UDIS86=1
13240
13241       case "$withval" in
13242         /usr/lib|yes) ;;
13243         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13244       esac
13245
13246 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13247 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13248 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251   ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ludis86  $LIBS"
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259
13260 /* Override any GCC internal prototype to avoid an error.
13261    Use char because int might match the return type of a GCC
13262    builtin and then its argument prototype would still apply.  */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 char ud_init ();
13267 int
13268 main ()
13269 {
13270 return ud_init ();
13271   ;
13272   return 0;
13273 }
13274 _ACEOF
13275 rm -f conftest.$ac_objext conftest$ac_exeext
13276 if { (ac_try="$ac_link"
13277 case "(($ac_try" in
13278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279   *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282   (eval "$ac_link") 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13290   { (case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_try") 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; } &&
13299          { ac_try='test -s conftest$ac_exeext'
13300   { (case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305   (eval "$ac_try") 2>&5
13306   ac_status=$?
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; }; then
13309   ac_cv_lib_udis86_ud_init=yes
13310 else
13311   echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13313
13314         ac_cv_lib_udis86_ud_init=no
13315 fi
13316
13317 rm -f core conftest.err conftest.$ac_objext \
13318       conftest$ac_exeext conftest.$ac_ext
13319 LIBS=$ac_check_lib_save_LIBS
13320 fi
13321 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13322 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13323 if test $ac_cv_lib_udis86_ud_init = yes; then
13324   cat >>confdefs.h <<_ACEOF
13325 #define HAVE_LIBUDIS86 1
13326 _ACEOF
13327
13328   LIBS="-ludis86 $LIBS"
13329
13330 else
13331
13332         echo "Error! You need to have libudis86 around."
13333         exit -1
13334
13335 fi
13336
13337
13338 else
13339   USE_UDIS86=0
13340
13341 fi
13342
13343
13344 cat >>confdefs.h <<_ACEOF
13345 #define USE_UDIS86 $USE_UDIS86
13346 _ACEOF
13347
13348
13349
13350 # Check whether --with-oprofile was given.
13351 if test "${with_oprofile+set}" = set; then
13352   withval=$with_oprofile;
13353       USE_OPROFILE=1
13354
13355       case "$withval" in
13356         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13357         no) llvm_cv_oppath=
13358             USE_OPROFILE=0
13359  ;;
13360         *) llvm_cv_oppath="${withval}/lib/oprofile"
13361            CPPFLAGS="-I${withval}/include";;
13362       esac
13363       if test -n "$llvm_cv_oppath" ; then
13364         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13365                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13366 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13367 if test "${ac_cv_search_bfd_init+set}" = set; then
13368   echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370   ac_func_search_save_LIBS=$LIBS
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377
13378 /* Override any GCC internal prototype to avoid an error.
13379    Use char because int might match the return type of a GCC
13380    builtin and then its argument prototype would still apply.  */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char bfd_init ();
13385 int
13386 main ()
13387 {
13388 return bfd_init ();
13389   ;
13390   return 0;
13391 }
13392 _ACEOF
13393 for ac_lib in '' bfd; do
13394   if test -z "$ac_lib"; then
13395     ac_res="none required"
13396   else
13397     ac_res=-l$ac_lib
13398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13399   fi
13400   rm -f conftest.$ac_objext conftest$ac_exeext
13401 if { (ac_try="$ac_link"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_link") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } &&
13414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415   { (case "(($ac_try" in
13416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417   *) ac_try_echo=$ac_try;;
13418 esac
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420   (eval "$ac_try") 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest$ac_exeext'
13425   { (case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_try") 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; }; then
13434   ac_cv_search_bfd_init=$ac_res
13435 else
13436   echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.$ac_ext >&5
13438
13439
13440 fi
13441
13442 rm -f core conftest.err conftest.$ac_objext \
13443       conftest$ac_exeext
13444   if test "${ac_cv_search_bfd_init+set}" = set; then
13445   break
13446 fi
13447 done
13448 if test "${ac_cv_search_bfd_init+set}" = set; then
13449   :
13450 else
13451   ac_cv_search_bfd_init=no
13452 fi
13453 rm conftest.$ac_ext
13454 LIBS=$ac_func_search_save_LIBS
13455 fi
13456 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13457 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13458 ac_res=$ac_cv_search_bfd_init
13459 if test "$ac_res" != no; then
13460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13461
13462 fi
13463
13464         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13465 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13466 if test "${ac_cv_search_op_open_agent+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   ac_func_search_save_LIBS=$LIBS
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476
13477 /* Override any GCC internal prototype to avoid an error.
13478    Use char because int might match the return type of a GCC
13479    builtin and then its argument prototype would still apply.  */
13480 #ifdef __cplusplus
13481 extern "C"
13482 #endif
13483 char op_open_agent ();
13484 int
13485 main ()
13486 {
13487 return op_open_agent ();
13488   ;
13489   return 0;
13490 }
13491 _ACEOF
13492 for ac_lib in '' opagent; do
13493   if test -z "$ac_lib"; then
13494     ac_res="none required"
13495   else
13496     ac_res=-l$ac_lib
13497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13498   fi
13499   rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (ac_try="$ac_link"
13501 case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_link") 2>conftest.er1
13507   ac_status=$?
13508   grep -v '^ *+' conftest.er1 >conftest.err
13509   rm -f conftest.er1
13510   cat conftest.err >&5
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } &&
13513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13514   { (case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_try") 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest$ac_exeext'
13524   { (case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_try") 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; }; then
13533   ac_cv_search_op_open_agent=$ac_res
13534 else
13535   echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538
13539 fi
13540
13541 rm -f core conftest.err conftest.$ac_objext \
13542       conftest$ac_exeext
13543   if test "${ac_cv_search_op_open_agent+set}" = set; then
13544   break
13545 fi
13546 done
13547 if test "${ac_cv_search_op_open_agent+set}" = set; then
13548   :
13549 else
13550   ac_cv_search_op_open_agent=no
13551 fi
13552 rm conftest.$ac_ext
13553 LIBS=$ac_func_search_save_LIBS
13554 fi
13555 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13556 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13557 ac_res=$ac_cv_search_op_open_agent
13558 if test "$ac_res" != no; then
13559   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13560
13561 else
13562
13563           echo "Error! You need to have libopagent around."
13564           exit -1
13565
13566 fi
13567
13568         if test "${ac_cv_header_opagent_h+set}" = set; then
13569   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13570 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13571 if test "${ac_cv_header_opagent_h+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 fi
13574 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13575 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13576 else
13577   # Is the header compilable?
13578 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13579 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 #include <opagent.h>
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596   (eval "$ac_compile") 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604   { (case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_try") 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; } &&
13613          { ac_try='test -s conftest.$ac_objext'
13614   { (case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_try") 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_header_compiler=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628         ac_header_compiler=no
13629 fi
13630
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6; }
13634
13635 # Is the header present?
13636 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13637 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <opagent.h>
13645 _ACEOF
13646 if { (ac_try="$ac_cpp conftest.$ac_ext"
13647 case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } >/dev/null; then
13659   if test -s conftest.err; then
13660     ac_cpp_err=$ac_c_preproc_warn_flag
13661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13662   else
13663     ac_cpp_err=
13664   fi
13665 else
13666   ac_cpp_err=yes
13667 fi
13668 if test -z "$ac_cpp_err"; then
13669   ac_header_preproc=yes
13670 else
13671   echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13673
13674   ac_header_preproc=no
13675 fi
13676
13677 rm -f conftest.err conftest.$ac_ext
13678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6; }
13680
13681 # So?  What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683   yes:no: )
13684     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13688     ac_header_preproc=yes
13689     ;;
13690   no:yes:* )
13691     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13697     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13699     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13701     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13703     ( cat <<\_ASBOX
13704 ## ------------------------------------ ##
13705 ## Report this to http://llvm.org/bugs/ ##
13706 ## ------------------------------------ ##
13707 _ASBOX
13708      ) | sed "s/^/$as_me: WARNING:     /" >&2
13709     ;;
13710 esac
13711 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13712 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13713 if test "${ac_cv_header_opagent_h+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   ac_cv_header_opagent_h=$ac_header_preproc
13717 fi
13718 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13719 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13720
13721 fi
13722 if test $ac_cv_header_opagent_h = yes; then
13723   :
13724 else
13725
13726           echo "Error! You need to have opagent.h around."
13727           exit -1
13728
13729 fi
13730
13731
13732       fi
13733
13734 else
13735
13736       USE_OPROFILE=0
13737
13738
13739 fi
13740
13741
13742 cat >>confdefs.h <<_ACEOF
13743 #define USE_OPROFILE $USE_OPROFILE
13744 _ACEOF
13745
13746
13747
13748
13749
13750
13751
13752
13753 ac_header_dirent=no
13754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13755   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 #include <sys/types.h>
13768 #include <$ac_hdr>
13769
13770 int
13771 main ()
13772 {
13773 if ((DIR *) 0)
13774 return 0;
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (ac_try="$ac_compile"
13781 case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_compile") 2>conftest.er1
13787   ac_status=$?
13788   grep -v '^ *+' conftest.er1 >conftest.err
13789   rm -f conftest.er1
13790   cat conftest.err >&5
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } &&
13793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794   { (case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_try") 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; } &&
13803          { ac_try='test -s conftest.$ac_objext'
13804   { (case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_try") 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   eval "$as_ac_Header=yes"
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13817
13818         eval "$as_ac_Header=no"
13819 fi
13820
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822 fi
13823 ac_res=`eval echo '${'$as_ac_Header'}'`
13824                { echo "$as_me:$LINENO: result: $ac_res" >&5
13825 echo "${ECHO_T}$ac_res" >&6; }
13826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13827   cat >>confdefs.h <<_ACEOF
13828 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13829 _ACEOF
13830
13831 ac_header_dirent=$ac_hdr; break
13832 fi
13833
13834 done
13835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13836 if test $ac_header_dirent = dirent.h; then
13837   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13838 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13839 if test "${ac_cv_search_opendir+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   ac_func_search_save_LIBS=$LIBS
13843 cat >conftest.$ac_ext <<_ACEOF
13844 /* confdefs.h.  */
13845 _ACEOF
13846 cat confdefs.h >>conftest.$ac_ext
13847 cat >>conftest.$ac_ext <<_ACEOF
13848 /* end confdefs.h.  */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851    Use char because int might match the return type of a GCC
13852    builtin and then its argument prototype would still apply.  */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char opendir ();
13857 int
13858 main ()
13859 {
13860 return opendir ();
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 for ac_lib in '' dir; do
13866   if test -z "$ac_lib"; then
13867     ac_res="none required"
13868   else
13869     ac_res=-l$ac_lib
13870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13871   fi
13872   rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (ac_try="$ac_link"
13874 case "(($ac_try" in
13875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13876   *) ac_try_echo=$ac_try;;
13877 esac
13878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13879   (eval "$ac_link") 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13887   { (case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892   (eval "$ac_try") 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (case "(($ac_try" in
13898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899   *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902   (eval "$ac_try") 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; }; then
13906   ac_cv_search_opendir=$ac_res
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
13912 fi
13913
13914 rm -f core conftest.err conftest.$ac_objext \
13915       conftest$ac_exeext
13916   if test "${ac_cv_search_opendir+set}" = set; then
13917   break
13918 fi
13919 done
13920 if test "${ac_cv_search_opendir+set}" = set; then
13921   :
13922 else
13923   ac_cv_search_opendir=no
13924 fi
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13930 ac_res=$ac_cv_search_opendir
13931 if test "$ac_res" != no; then
13932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933
13934 fi
13935
13936 else
13937   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13939 if test "${ac_cv_search_opendir+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   ac_func_search_save_LIBS=$LIBS
13943 cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949
13950 /* Override any GCC internal prototype to avoid an error.
13951    Use char because int might match the return type of a GCC
13952    builtin and then its argument prototype would still apply.  */
13953 #ifdef __cplusplus
13954 extern "C"
13955 #endif
13956 char opendir ();
13957 int
13958 main ()
13959 {
13960 return opendir ();
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 for ac_lib in '' x; do
13966   if test -z "$ac_lib"; then
13967     ac_res="none required"
13968   else
13969     ac_res=-l$ac_lib
13970     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13971   fi
13972   rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (ac_try="$ac_link"
13974 case "(($ac_try" in
13975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976   *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979   (eval "$ac_link") 2>conftest.er1
13980   ac_status=$?
13981   grep -v '^ *+' conftest.er1 >conftest.err
13982   rm -f conftest.er1
13983   cat conftest.err >&5
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); } &&
13986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13987   { (case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_try") 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; } &&
13996          { ac_try='test -s conftest$ac_exeext'
13997   { (case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_try") 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006   ac_cv_search_opendir=$ac_res
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011
14012 fi
14013
14014 rm -f core conftest.err conftest.$ac_objext \
14015       conftest$ac_exeext
14016   if test "${ac_cv_search_opendir+set}" = set; then
14017   break
14018 fi
14019 done
14020 if test "${ac_cv_search_opendir+set}" = set; then
14021   :
14022 else
14023   ac_cv_search_opendir=no
14024 fi
14025 rm conftest.$ac_ext
14026 LIBS=$ac_func_search_save_LIBS
14027 fi
14028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14030 ac_res=$ac_cv_search_opendir
14031 if test "$ac_res" != no; then
14032   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033
14034 fi
14035
14036 fi
14037
14038 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14039 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14040 if test "${ac_cv_header_mmap_anon+set}" = set; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043    ac_ext=c
14044 ac_cpp='$CPP $CPPFLAGS'
14045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14048
14049   cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 #include <sys/mman.h>
14056 #include <unistd.h>
14057 #include <fcntl.h>
14058 int
14059 main ()
14060 {
14061 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_compile") 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } &&
14080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081   { (case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_try") 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; } &&
14090          { ac_try='test -s conftest.$ac_objext'
14091   { (case "(($ac_try" in
14092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093   *) ac_try_echo=$ac_try;;
14094 esac
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096   (eval "$ac_try") 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; }; then
14100   ac_cv_header_mmap_anon=yes
14101 else
14102   echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105         ac_cv_header_mmap_anon=no
14106 fi
14107
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109   ac_ext=c
14110 ac_cpp='$CPP $CPPFLAGS'
14111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14114
14115
14116 fi
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14118 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14119 if test "$ac_cv_header_mmap_anon" = yes; then
14120
14121 cat >>confdefs.h <<\_ACEOF
14122 #define HAVE_MMAP_ANONYMOUS 1
14123 _ACEOF
14124
14125 fi
14126
14127 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14128 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14129 if test "${ac_cv_header_stat_broken+set}" = set; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138 #include <sys/types.h>
14139 #include <sys/stat.h>
14140
14141 #if defined S_ISBLK && defined S_IFDIR
14142 # if S_ISBLK (S_IFDIR)
14143 You lose.
14144 # endif
14145 #endif
14146
14147 #if defined S_ISBLK && defined S_IFCHR
14148 # if S_ISBLK (S_IFCHR)
14149 You lose.
14150 # endif
14151 #endif
14152
14153 #if defined S_ISLNK && defined S_IFREG
14154 # if S_ISLNK (S_IFREG)
14155 You lose.
14156 # endif
14157 #endif
14158
14159 #if defined S_ISSOCK && defined S_IFREG
14160 # if S_ISSOCK (S_IFREG)
14161 You lose.
14162 # endif
14163 #endif
14164
14165 _ACEOF
14166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14167   $EGREP "You lose" >/dev/null 2>&1; then
14168   ac_cv_header_stat_broken=yes
14169 else
14170   ac_cv_header_stat_broken=no
14171 fi
14172 rm -f conftest*
14173
14174 fi
14175 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14176 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14177 if test $ac_cv_header_stat_broken = yes; then
14178
14179 cat >>confdefs.h <<\_ACEOF
14180 #define STAT_MACROS_BROKEN 1
14181 _ACEOF
14182
14183 fi
14184
14185 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14186 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14187 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14188   echo $ECHO_N "(cached) $ECHO_C" >&6
14189 else
14190   cat >conftest.$ac_ext <<_ACEOF
14191 /* confdefs.h.  */
14192 _ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h.  */
14196 #include <sys/types.h>
14197 #include <sys/wait.h>
14198 #ifndef WEXITSTATUS
14199 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14200 #endif
14201 #ifndef WIFEXITED
14202 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14203 #endif
14204
14205 int
14206 main ()
14207 {
14208   int s;
14209   wait (&s);
14210   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222   (eval "$ac_compile") 2>conftest.er1
14223   ac_status=$?
14224   grep -v '^ *+' conftest.er1 >conftest.err
14225   rm -f conftest.er1
14226   cat conftest.err >&5
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); } &&
14229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14230   { (case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_try") 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; } &&
14239          { ac_try='test -s conftest.$ac_objext'
14240   { (case "(($ac_try" in
14241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242   *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245   (eval "$ac_try") 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }; }; then
14249   ac_cv_header_sys_wait_h=yes
14250 else
14251   echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14253
14254         ac_cv_header_sys_wait_h=no
14255 fi
14256
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 fi
14259 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14260 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14261 if test $ac_cv_header_sys_wait_h = yes; then
14262
14263 cat >>confdefs.h <<\_ACEOF
14264 #define HAVE_SYS_WAIT_H 1
14265 _ACEOF
14266
14267 fi
14268
14269 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14271 if test "${ac_cv_header_time+set}" = set; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 #include <sys/types.h>
14281 #include <sys/time.h>
14282 #include <time.h>
14283
14284 int
14285 main ()
14286 {
14287 if ((struct tm *) 0)
14288 return 0;
14289   ;
14290   return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297   *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300   (eval "$ac_compile") 2>conftest.er1
14301   ac_status=$?
14302   grep -v '^ *+' conftest.er1 >conftest.err
14303   rm -f conftest.er1
14304   cat conftest.err >&5
14305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306   (exit $ac_status); } &&
14307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308   { (case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_try") 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (case "(($ac_try" in
14319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320   *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323   (eval "$ac_try") 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   ac_cv_header_time=yes
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332         ac_cv_header_time=no
14333 fi
14334
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 fi
14337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14339 if test $ac_cv_header_time = yes; then
14340
14341 cat >>confdefs.h <<\_ACEOF
14342 #define TIME_WITH_SYS_TIME 1
14343 _ACEOF
14344
14345 fi
14346
14347
14348
14349
14350
14351
14352
14353
14354 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14355 do
14356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14358   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361   echo $ECHO_N "(cached) $ECHO_C" >&6
14362 fi
14363 ac_res=`eval echo '${'$as_ac_Header'}'`
14364                { echo "$as_me:$LINENO: result: $ac_res" >&5
14365 echo "${ECHO_T}$ac_res" >&6; }
14366 else
14367   # Is the header compilable?
14368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14370 cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 $ac_includes_default
14377 #include <$ac_header>
14378 _ACEOF
14379 rm -f conftest.$ac_objext
14380 if { (ac_try="$ac_compile"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_compile") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394   { (case "(($ac_try" in
14395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396   *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399   (eval "$ac_try") 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest.$ac_objext'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; }; then
14413   ac_header_compiler=yes
14414 else
14415   echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418         ac_header_compiler=no
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14423 echo "${ECHO_T}$ac_header_compiler" >&6; }
14424
14425 # Is the header present?
14426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 #include <$ac_header>
14435 _ACEOF
14436 if { (ac_try="$ac_cpp conftest.$ac_ext"
14437 case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } >/dev/null; then
14449   if test -s conftest.err; then
14450     ac_cpp_err=$ac_c_preproc_warn_flag
14451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14452   else
14453     ac_cpp_err=
14454   fi
14455 else
14456   ac_cpp_err=yes
14457 fi
14458 if test -z "$ac_cpp_err"; then
14459   ac_header_preproc=yes
14460 else
14461   echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14463
14464   ac_header_preproc=no
14465 fi
14466
14467 rm -f conftest.err conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14469 echo "${ECHO_T}$ac_header_preproc" >&6; }
14470
14471 # So?  What about this header?
14472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14473   yes:no: )
14474     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14478     ac_header_preproc=yes
14479     ;;
14480   no:yes:* )
14481     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14483     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14484 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14485     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14487     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14488 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14491     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14493     ( cat <<\_ASBOX
14494 ## ------------------------------------ ##
14495 ## Report this to http://llvm.org/bugs/ ##
14496 ## ------------------------------------ ##
14497 _ASBOX
14498      ) | sed "s/^/$as_me: WARNING:     /" >&2
14499     ;;
14500 esac
14501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   eval "$as_ac_Header=\$ac_header_preproc"
14507 fi
14508 ac_res=`eval echo '${'$as_ac_Header'}'`
14509                { echo "$as_me:$LINENO: result: $ac_res" >&5
14510 echo "${ECHO_T}$ac_res" >&6; }
14511
14512 fi
14513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14514   cat >>confdefs.h <<_ACEOF
14515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14516 _ACEOF
14517
14518 fi
14519
14520 done
14521
14522
14523
14524
14525
14526
14527
14528 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14529 do
14530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535   echo $ECHO_N "(cached) $ECHO_C" >&6
14536 fi
14537 ac_res=`eval echo '${'$as_ac_Header'}'`
14538                { echo "$as_me:$LINENO: result: $ac_res" >&5
14539 echo "${ECHO_T}$ac_res" >&6; }
14540 else
14541   # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h.  */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h.  */
14550 $ac_includes_default
14551 #include <$ac_header>
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (ac_try="$ac_compile"
14555 case "(($ac_try" in
14556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557   *) ac_try_echo=$ac_try;;
14558 esac
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560   (eval "$ac_compile") 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568   { (case "(($ac_try" in
14569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570   *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573   (eval "$ac_try") 2>&5
14574   ac_status=$?
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; } &&
14577          { ac_try='test -s conftest.$ac_objext'
14578   { (case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_try") 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); }; }; then
14587   ac_header_compiler=yes
14588 else
14589   echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592         ac_header_compiler=no
14593 fi
14594
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597 echo "${ECHO_T}$ac_header_compiler" >&6; }
14598
14599 # Is the header present?
14600 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 #include <$ac_header>
14609 _ACEOF
14610 if { (ac_try="$ac_cpp conftest.$ac_ext"
14611 case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } >/dev/null; then
14623   if test -s conftest.err; then
14624     ac_cpp_err=$ac_c_preproc_warn_flag
14625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14626   else
14627     ac_cpp_err=
14628   fi
14629 else
14630   ac_cpp_err=yes
14631 fi
14632 if test -z "$ac_cpp_err"; then
14633   ac_header_preproc=yes
14634 else
14635   echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638   ac_header_preproc=no
14639 fi
14640
14641 rm -f conftest.err conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14643 echo "${ECHO_T}$ac_header_preproc" >&6; }
14644
14645 # So?  What about this header?
14646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14647   yes:no: )
14648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14652     ac_header_preproc=yes
14653     ;;
14654   no:yes:* )
14655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14667     ( cat <<\_ASBOX
14668 ## ------------------------------------ ##
14669 ## Report this to http://llvm.org/bugs/ ##
14670 ## ------------------------------------ ##
14671 _ASBOX
14672      ) | sed "s/^/$as_me: WARNING:     /" >&2
14673     ;;
14674 esac
14675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   eval "$as_ac_Header=\$ac_header_preproc"
14681 fi
14682 ac_res=`eval echo '${'$as_ac_Header'}'`
14683                { echo "$as_me:$LINENO: result: $ac_res" >&5
14684 echo "${ECHO_T}$ac_res" >&6; }
14685
14686 fi
14687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14688   cat >>confdefs.h <<_ACEOF
14689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14690 _ACEOF
14691
14692 fi
14693
14694 done
14695
14696
14697
14698 for ac_header in utime.h windows.h
14699 do
14700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 fi
14707 ac_res=`eval echo '${'$as_ac_Header'}'`
14708                { echo "$as_me:$LINENO: result: $ac_res" >&5
14709 echo "${ECHO_T}$ac_res" >&6; }
14710 else
14711   # Is the header compilable?
14712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14714 cat >conftest.$ac_ext <<_ACEOF
14715 /* confdefs.h.  */
14716 _ACEOF
14717 cat confdefs.h >>conftest.$ac_ext
14718 cat >>conftest.$ac_ext <<_ACEOF
14719 /* end confdefs.h.  */
14720 $ac_includes_default
14721 #include <$ac_header>
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727   *) ac_try_echo=$ac_try;;
14728 esac
14729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14730   (eval "$ac_compile") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } &&
14737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738   { (case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_try") 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest.$ac_objext'
14748   { (case "(($ac_try" in
14749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750   *) ac_try_echo=$ac_try;;
14751 esac
14752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753   (eval "$ac_try") 2>&5
14754   ac_status=$?
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); }; }; then
14757   ac_header_compiler=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762         ac_header_compiler=no
14763 fi
14764
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14767 echo "${ECHO_T}$ac_header_compiler" >&6; }
14768
14769 # Is the header present?
14770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 #include <$ac_header>
14779 _ACEOF
14780 if { (ac_try="$ac_cpp conftest.$ac_ext"
14781 case "(($ac_try" in
14782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783   *) ac_try_echo=$ac_try;;
14784 esac
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14787   ac_status=$?
14788   grep -v '^ *+' conftest.er1 >conftest.err
14789   rm -f conftest.er1
14790   cat conftest.err >&5
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } >/dev/null; then
14793   if test -s conftest.err; then
14794     ac_cpp_err=$ac_c_preproc_warn_flag
14795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14796   else
14797     ac_cpp_err=
14798   fi
14799 else
14800   ac_cpp_err=yes
14801 fi
14802 if test -z "$ac_cpp_err"; then
14803   ac_header_preproc=yes
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808   ac_header_preproc=no
14809 fi
14810
14811 rm -f conftest.err conftest.$ac_ext
14812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6; }
14814
14815 # So?  What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817   yes:no: )
14818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822     ac_header_preproc=yes
14823     ;;
14824   no:yes:* )
14825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837     ( cat <<\_ASBOX
14838 ## ------------------------------------ ##
14839 ## Report this to http://llvm.org/bugs/ ##
14840 ## ------------------------------------ ##
14841 _ASBOX
14842      ) | sed "s/^/$as_me: WARNING:     /" >&2
14843     ;;
14844 esac
14845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   eval "$as_ac_Header=\$ac_header_preproc"
14851 fi
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853                { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14855
14856 fi
14857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14858   cat >>confdefs.h <<_ACEOF
14859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14860 _ACEOF
14861
14862 fi
14863
14864 done
14865
14866
14867
14868
14869
14870
14871 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14872 do
14873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 fi
14880 ac_res=`eval echo '${'$as_ac_Header'}'`
14881                { echo "$as_me:$LINENO: result: $ac_res" >&5
14882 echo "${ECHO_T}$ac_res" >&6; }
14883 else
14884   # Is the header compilable?
14885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14887 cat >conftest.$ac_ext <<_ACEOF
14888 /* confdefs.h.  */
14889 _ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h.  */
14893 $ac_includes_default
14894 #include <$ac_header>
14895 _ACEOF
14896 rm -f conftest.$ac_objext
14897 if { (ac_try="$ac_compile"
14898 case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903   (eval "$ac_compile") 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14911   { (case "(($ac_try" in
14912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913   *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916   (eval "$ac_try") 2>&5
14917   ac_status=$?
14918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919   (exit $ac_status); }; } &&
14920          { ac_try='test -s conftest.$ac_objext'
14921   { (case "(($ac_try" in
14922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923   *) ac_try_echo=$ac_try;;
14924 esac
14925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14926   (eval "$ac_try") 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_header_compiler=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935         ac_header_compiler=no
14936 fi
14937
14938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14940 echo "${ECHO_T}$ac_header_compiler" >&6; }
14941
14942 # Is the header present?
14943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951 #include <$ac_header>
14952 _ACEOF
14953 if { (ac_try="$ac_cpp conftest.$ac_ext"
14954 case "(($ac_try" in
14955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956   *) ac_try_echo=$ac_try;;
14957 esac
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14960   ac_status=$?
14961   grep -v '^ *+' conftest.er1 >conftest.err
14962   rm -f conftest.er1
14963   cat conftest.err >&5
14964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965   (exit $ac_status); } >/dev/null; then
14966   if test -s conftest.err; then
14967     ac_cpp_err=$ac_c_preproc_warn_flag
14968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14969   else
14970     ac_cpp_err=
14971   fi
14972 else
14973   ac_cpp_err=yes
14974 fi
14975 if test -z "$ac_cpp_err"; then
14976   ac_header_preproc=yes
14977 else
14978   echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981   ac_header_preproc=no
14982 fi
14983
14984 rm -f conftest.err conftest.$ac_ext
14985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14986 echo "${ECHO_T}$ac_header_preproc" >&6; }
14987
14988 # So?  What about this header?
14989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14990   yes:no: )
14991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14995     ac_header_preproc=yes
14996     ;;
14997   no:yes:* )
14998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15010     ( cat <<\_ASBOX
15011 ## ------------------------------------ ##
15012 ## Report this to http://llvm.org/bugs/ ##
15013 ## ------------------------------------ ##
15014 _ASBOX
15015      ) | sed "s/^/$as_me: WARNING:     /" >&2
15016     ;;
15017 esac
15018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15021   echo $ECHO_N "(cached) $ECHO_C" >&6
15022 else
15023   eval "$as_ac_Header=\$ac_header_preproc"
15024 fi
15025 ac_res=`eval echo '${'$as_ac_Header'}'`
15026                { echo "$as_me:$LINENO: result: $ac_res" >&5
15027 echo "${ECHO_T}$ac_res" >&6; }
15028
15029 fi
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031   cat >>confdefs.h <<_ACEOF
15032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15033 _ACEOF
15034
15035 fi
15036
15037 done
15038
15039
15040
15041
15042
15043 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15044 do
15045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15047   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 fi
15052 ac_res=`eval echo '${'$as_ac_Header'}'`
15053                { echo "$as_me:$LINENO: result: $ac_res" >&5
15054 echo "${ECHO_T}$ac_res" >&6; }
15055 else
15056   # Is the header compilable?
15057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h.  */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h.  */
15065 $ac_includes_default
15066 #include <$ac_header>
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (ac_try="$ac_compile"
15070 case "(($ac_try" in
15071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072   *) ac_try_echo=$ac_try;;
15073 esac
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075   (eval "$ac_compile") 2>conftest.er1
15076   ac_status=$?
15077   grep -v '^ *+' conftest.er1 >conftest.err
15078   rm -f conftest.er1
15079   cat conftest.err >&5
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } &&
15082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15083   { (case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15088   (eval "$ac_try") 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest.$ac_objext'
15093   { (case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_try") 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_header_compiler=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107         ac_header_compiler=no
15108 fi
15109
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15112 echo "${ECHO_T}$ac_header_compiler" >&6; }
15113
15114 # Is the header present?
15115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15117 cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 #include <$ac_header>
15124 _ACEOF
15125 if { (ac_try="$ac_cpp conftest.$ac_ext"
15126 case "(($ac_try" in
15127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128   *) ac_try_echo=$ac_try;;
15129 esac
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } >/dev/null; then
15138   if test -s conftest.err; then
15139     ac_cpp_err=$ac_c_preproc_warn_flag
15140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15141   else
15142     ac_cpp_err=
15143   fi
15144 else
15145   ac_cpp_err=yes
15146 fi
15147 if test -z "$ac_cpp_err"; then
15148   ac_header_preproc=yes
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153   ac_header_preproc=no
15154 fi
15155
15156 rm -f conftest.err conftest.$ac_ext
15157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15158 echo "${ECHO_T}$ac_header_preproc" >&6; }
15159
15160 # So?  What about this header?
15161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15162   yes:no: )
15163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15167     ac_header_preproc=yes
15168     ;;
15169   no:yes:* )
15170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15182     ( cat <<\_ASBOX
15183 ## ------------------------------------ ##
15184 ## Report this to http://llvm.org/bugs/ ##
15185 ## ------------------------------------ ##
15186 _ASBOX
15187      ) | sed "s/^/$as_me: WARNING:     /" >&2
15188     ;;
15189 esac
15190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15193   echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195   eval "$as_ac_Header=\$ac_header_preproc"
15196 fi
15197 ac_res=`eval echo '${'$as_ac_Header'}'`
15198                { echo "$as_me:$LINENO: result: $ac_res" >&5
15199 echo "${ECHO_T}$ac_res" >&6; }
15200
15201 fi
15202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15203   cat >>confdefs.h <<_ACEOF
15204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15205 _ACEOF
15206
15207 fi
15208
15209 done
15210
15211
15212 for ac_header in valgrind/valgrind.h
15213 do
15214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15216   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219   echo $ECHO_N "(cached) $ECHO_C" >&6
15220 fi
15221 ac_res=`eval echo '${'$as_ac_Header'}'`
15222                { echo "$as_me:$LINENO: result: $ac_res" >&5
15223 echo "${ECHO_T}$ac_res" >&6; }
15224 else
15225   # Is the header compilable?
15226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15229 /* confdefs.h.  */
15230 _ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h.  */
15234 $ac_includes_default
15235 #include <$ac_header>
15236 _ACEOF
15237 rm -f conftest.$ac_objext
15238 if { (ac_try="$ac_compile"
15239 case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_compile") 2>conftest.er1
15245   ac_status=$?
15246   grep -v '^ *+' conftest.er1 >conftest.err
15247   rm -f conftest.er1
15248   cat conftest.err >&5
15249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250   (exit $ac_status); } &&
15251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252   { (case "(($ac_try" in
15253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254   *) ac_try_echo=$ac_try;;
15255 esac
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257   (eval "$ac_try") 2>&5
15258   ac_status=$?
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; } &&
15261          { ac_try='test -s conftest.$ac_objext'
15262   { (case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_try") 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; }; then
15271   ac_header_compiler=yes
15272 else
15273   echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276         ac_header_compiler=no
15277 fi
15278
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15281 echo "${ECHO_T}$ac_header_compiler" >&6; }
15282
15283 # Is the header present?
15284 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 #include <$ac_header>
15293 _ACEOF
15294 if { (ac_try="$ac_cpp conftest.$ac_ext"
15295 case "(($ac_try" in
15296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297   *) ac_try_echo=$ac_try;;
15298 esac
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } >/dev/null; then
15307   if test -s conftest.err; then
15308     ac_cpp_err=$ac_c_preproc_warn_flag
15309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15310   else
15311     ac_cpp_err=
15312   fi
15313 else
15314   ac_cpp_err=yes
15315 fi
15316 if test -z "$ac_cpp_err"; then
15317   ac_header_preproc=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322   ac_header_preproc=no
15323 fi
15324
15325 rm -f conftest.err conftest.$ac_ext
15326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327 echo "${ECHO_T}$ac_header_preproc" >&6; }
15328
15329 # So?  What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331   yes:no: )
15332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336     ac_header_preproc=yes
15337     ;;
15338   no:yes:* )
15339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351     ( cat <<\_ASBOX
15352 ## ------------------------------------ ##
15353 ## Report this to http://llvm.org/bugs/ ##
15354 ## ------------------------------------ ##
15355 _ASBOX
15356      ) | sed "s/^/$as_me: WARNING:     /" >&2
15357     ;;
15358 esac
15359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   eval "$as_ac_Header=\$ac_header_preproc"
15365 fi
15366 ac_res=`eval echo '${'$as_ac_Header'}'`
15367                { echo "$as_me:$LINENO: result: $ac_res" >&5
15368 echo "${ECHO_T}$ac_res" >&6; }
15369
15370 fi
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372   cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 _ACEOF
15375
15376 fi
15377
15378 done
15379
15380
15381 for ac_header in fenv.h
15382 do
15383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 fi
15390 ac_res=`eval echo '${'$as_ac_Header'}'`
15391                { echo "$as_me:$LINENO: result: $ac_res" >&5
15392 echo "${ECHO_T}$ac_res" >&6; }
15393 else
15394   # Is the header compilable?
15395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 $ac_includes_default
15404 #include <$ac_header>
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (ac_try="$ac_compile"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_compile") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421   { (case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_try") 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   ac_header_compiler=yes
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445         ac_header_compiler=no
15446 fi
15447
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15450 echo "${ECHO_T}$ac_header_compiler" >&6; }
15451
15452 # Is the header present?
15453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15455 cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h.  */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h.  */
15461 #include <$ac_header>
15462 _ACEOF
15463 if { (ac_try="$ac_cpp conftest.$ac_ext"
15464 case "(($ac_try" in
15465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466   *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15470   ac_status=$?
15471   grep -v '^ *+' conftest.er1 >conftest.err
15472   rm -f conftest.er1
15473   cat conftest.err >&5
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } >/dev/null; then
15476   if test -s conftest.err; then
15477     ac_cpp_err=$ac_c_preproc_warn_flag
15478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15479   else
15480     ac_cpp_err=
15481   fi
15482 else
15483   ac_cpp_err=yes
15484 fi
15485 if test -z "$ac_cpp_err"; then
15486   ac_header_preproc=yes
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491   ac_header_preproc=no
15492 fi
15493
15494 rm -f conftest.err conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15496 echo "${ECHO_T}$ac_header_preproc" >&6; }
15497
15498 # So?  What about this header?
15499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500   yes:no: )
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15505     ac_header_preproc=yes
15506     ;;
15507   no:yes:* )
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15520     ( cat <<\_ASBOX
15521 ## ------------------------------------ ##
15522 ## Report this to http://llvm.org/bugs/ ##
15523 ## ------------------------------------ ##
15524 _ASBOX
15525      ) | sed "s/^/$as_me: WARNING:     /" >&2
15526     ;;
15527 esac
15528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15531   echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533   eval "$as_ac_Header=\$ac_header_preproc"
15534 fi
15535 ac_res=`eval echo '${'$as_ac_Header'}'`
15536                { echo "$as_me:$LINENO: result: $ac_res" >&5
15537 echo "${ECHO_T}$ac_res" >&6; }
15538
15539 fi
15540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15541   cat >>confdefs.h <<_ACEOF
15542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15543 _ACEOF
15544
15545 fi
15546
15547 done
15548
15549 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15550
15551 for ac_header in pthread.h
15552 do
15553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558   echo $ECHO_N "(cached) $ECHO_C" >&6
15559 fi
15560 ac_res=`eval echo '${'$as_ac_Header'}'`
15561                { echo "$as_me:$LINENO: result: $ac_res" >&5
15562 echo "${ECHO_T}$ac_res" >&6; }
15563 else
15564   # Is the header compilable?
15565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h.  */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h.  */
15573 $ac_includes_default
15574 #include <$ac_header>
15575 _ACEOF
15576 rm -f conftest.$ac_objext
15577 if { (ac_try="$ac_compile"
15578 case "(($ac_try" in
15579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580   *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583   (eval "$ac_compile") 2>conftest.er1
15584   ac_status=$?
15585   grep -v '^ *+' conftest.er1 >conftest.err
15586   rm -f conftest.er1
15587   cat conftest.err >&5
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); } &&
15590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15591   { (case "(($ac_try" in
15592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593   *) ac_try_echo=$ac_try;;
15594 esac
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596   (eval "$ac_try") 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); }; } &&
15600          { ac_try='test -s conftest.$ac_objext'
15601   { (case "(($ac_try" in
15602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603   *) ac_try_echo=$ac_try;;
15604 esac
15605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15606   (eval "$ac_try") 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; }; then
15610   ac_header_compiler=yes
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615         ac_header_compiler=no
15616 fi
15617
15618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15619 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620 echo "${ECHO_T}$ac_header_compiler" >&6; }
15621
15622 # Is the header present?
15623 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631 #include <$ac_header>
15632 _ACEOF
15633 if { (ac_try="$ac_cpp conftest.$ac_ext"
15634 case "(($ac_try" in
15635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636   *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15640   ac_status=$?
15641   grep -v '^ *+' conftest.er1 >conftest.err
15642   rm -f conftest.er1
15643   cat conftest.err >&5
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } >/dev/null; then
15646   if test -s conftest.err; then
15647     ac_cpp_err=$ac_c_preproc_warn_flag
15648     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15649   else
15650     ac_cpp_err=
15651   fi
15652 else
15653   ac_cpp_err=yes
15654 fi
15655 if test -z "$ac_cpp_err"; then
15656   ac_header_preproc=yes
15657 else
15658   echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661   ac_header_preproc=no
15662 fi
15663
15664 rm -f conftest.err conftest.$ac_ext
15665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15666 echo "${ECHO_T}$ac_header_preproc" >&6; }
15667
15668 # So?  What about this header?
15669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15670   yes:no: )
15671     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15675     ac_header_preproc=yes
15676     ;;
15677   no:yes:* )
15678     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15680     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15681 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15685 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15688     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15690     ( cat <<\_ASBOX
15691 ## ------------------------------------ ##
15692 ## Report this to http://llvm.org/bugs/ ##
15693 ## ------------------------------------ ##
15694 _ASBOX
15695      ) | sed "s/^/$as_me: WARNING:     /" >&2
15696     ;;
15697 esac
15698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   eval "$as_ac_Header=\$ac_header_preproc"
15704 fi
15705 ac_res=`eval echo '${'$as_ac_Header'}'`
15706                { echo "$as_me:$LINENO: result: $ac_res" >&5
15707 echo "${ECHO_T}$ac_res" >&6; }
15708
15709 fi
15710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15711   cat >>confdefs.h <<_ACEOF
15712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15713 _ACEOF
15714  HAVE_PTHREAD=1
15715
15716 else
15717   HAVE_PTHREAD=0
15718
15719 fi
15720
15721 done
15722
15723 else
15724   HAVE_PTHREAD=0
15725
15726 fi
15727
15728 if test "$llvm_cv_enable_libffi" = "yes" ; then
15729
15730
15731 for ac_header in ffi.h ffi/ffi.h
15732 do
15733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15735   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   echo $ECHO_N "(cached) $ECHO_C" >&6
15739 fi
15740 ac_res=`eval echo '${'$as_ac_Header'}'`
15741                { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15743 else
15744   # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h.  */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h.  */
15753 $ac_includes_default
15754 #include <$ac_header>
15755 _ACEOF
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_compile") 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771   { (case "(($ac_try" in
15772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773   *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776   (eval "$ac_try") 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; } &&
15780          { ac_try='test -s conftest.$ac_objext'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790   ac_header_compiler=yes
15791 else
15792   echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15794
15795         ac_header_compiler=no
15796 fi
15797
15798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15800 echo "${ECHO_T}$ac_header_compiler" >&6; }
15801
15802 # Is the header present?
15803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <$ac_header>
15812 _ACEOF
15813 if { (ac_try="$ac_cpp conftest.$ac_ext"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } >/dev/null; then
15826   if test -s conftest.err; then
15827     ac_cpp_err=$ac_c_preproc_warn_flag
15828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829   else
15830     ac_cpp_err=
15831   fi
15832 else
15833   ac_cpp_err=yes
15834 fi
15835 if test -z "$ac_cpp_err"; then
15836   ac_header_preproc=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841   ac_header_preproc=no
15842 fi
15843
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15847
15848 # So?  What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15850   yes:no: )
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15855     ac_header_preproc=yes
15856     ;;
15857   no:yes:* )
15858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15870     ( cat <<\_ASBOX
15871 ## ------------------------------------ ##
15872 ## Report this to http://llvm.org/bugs/ ##
15873 ## ------------------------------------ ##
15874 _ASBOX
15875      ) | sed "s/^/$as_me: WARNING:     /" >&2
15876     ;;
15877 esac
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883   eval "$as_ac_Header=\$ac_header_preproc"
15884 fi
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886                { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888
15889 fi
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891   cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899 fi
15900
15901
15902 for ac_header in CrashReporterClient.h
15903 do
15904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909   echo $ECHO_N "(cached) $ECHO_C" >&6
15910 fi
15911 ac_res=`eval echo '${'$as_ac_Header'}'`
15912                { echo "$as_me:$LINENO: result: $ac_res" >&5
15913 echo "${ECHO_T}$ac_res" >&6; }
15914 else
15915   # Is the header compilable?
15916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h.  */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h.  */
15924 $ac_includes_default
15925 #include <$ac_header>
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_compile") 2>conftest.er1
15935   ac_status=$?
15936   grep -v '^ *+' conftest.er1 >conftest.err
15937   rm -f conftest.er1
15938   cat conftest.err >&5
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); } &&
15941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15942   { (case "(($ac_try" in
15943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944   *) ac_try_echo=$ac_try;;
15945 esac
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947   (eval "$ac_try") 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; } &&
15951          { ac_try='test -s conftest.$ac_objext'
15952   { (case "(($ac_try" in
15953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954   *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957   (eval "$ac_try") 2>&5
15958   ac_status=$?
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); }; }; then
15961   ac_header_compiler=yes
15962 else
15963   echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966         ac_header_compiler=no
15967 fi
15968
15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15971 echo "${ECHO_T}$ac_header_compiler" >&6; }
15972
15973 # Is the header present?
15974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15976 cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982 #include <$ac_header>
15983 _ACEOF
15984 if { (ac_try="$ac_cpp conftest.$ac_ext"
15985 case "(($ac_try" in
15986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987   *) ac_try_echo=$ac_try;;
15988 esac
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } >/dev/null; then
15997   if test -s conftest.err; then
15998     ac_cpp_err=$ac_c_preproc_warn_flag
15999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16000   else
16001     ac_cpp_err=
16002   fi
16003 else
16004   ac_cpp_err=yes
16005 fi
16006 if test -z "$ac_cpp_err"; then
16007   ac_header_preproc=yes
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012   ac_header_preproc=no
16013 fi
16014
16015 rm -f conftest.err conftest.$ac_ext
16016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16017 echo "${ECHO_T}$ac_header_preproc" >&6; }
16018
16019 # So?  What about this header?
16020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021   yes:no: )
16022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16026     ac_header_preproc=yes
16027     ;;
16028   no:yes:* )
16029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16041     ( cat <<\_ASBOX
16042 ## ------------------------------------ ##
16043 ## Report this to http://llvm.org/bugs/ ##
16044 ## ------------------------------------ ##
16045 _ASBOX
16046      ) | sed "s/^/$as_me: WARNING:     /" >&2
16047     ;;
16048 esac
16049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052   echo $ECHO_N "(cached) $ECHO_C" >&6
16053 else
16054   eval "$as_ac_Header=\$ac_header_preproc"
16055 fi
16056 ac_res=`eval echo '${'$as_ac_Header'}'`
16057                { echo "$as_me:$LINENO: result: $ac_res" >&5
16058 echo "${ECHO_T}$ac_res" >&6; }
16059
16060 fi
16061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16062   cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16064 _ACEOF
16065
16066 fi
16067
16068 done
16069
16070
16071 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16072 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 extern const char *__crashreporter_info__;
16080       int main() {
16081         __crashreporter_info__ = "test";
16082         return 0;
16083       }
16084
16085 _ACEOF
16086 rm -f conftest.$ac_objext conftest$ac_exeext
16087 if { (ac_try="$ac_link"
16088 case "(($ac_try" in
16089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090   *) ac_try_echo=$ac_try;;
16091 esac
16092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093   (eval "$ac_link") 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16101   { (case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_try") 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116   (eval "$ac_try") 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120   { echo "$as_me:$LINENO: result: yes" >&5
16121 echo "${ECHO_T}yes" >&6; }
16122
16123 cat >>confdefs.h <<\_ACEOF
16124 #define HAVE_CRASHREPORTER_INFO 1
16125 _ACEOF
16126
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131         { echo "$as_me:$LINENO: result: no" >&5
16132 echo "${ECHO_T}no" >&6; }
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_CRASHREPORTER_INFO 0
16136 _ACEOF
16137
16138 fi
16139
16140 rm -f core conftest.err conftest.$ac_objext \
16141       conftest$ac_exeext conftest.$ac_ext
16142
16143
16144
16145
16146   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16147 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16148 if test "${ac_cv_huge_val_sanity+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151
16152     ac_ext=cpp
16153 ac_cpp='$CXXCPP $CPPFLAGS'
16154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16157
16158     ac_save_CXXFLAGS=$CXXFLAGS
16159     CXXFLAGS=-pedantic
16160     if test "$cross_compiling" = yes; then
16161   ac_cv_huge_val_sanity=yes
16162 else
16163   cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169 #include <math.h>
16170 int
16171 main ()
16172 {
16173 double x = HUGE_VAL; return x != x;
16174   ;
16175   return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest$ac_exeext
16179 if { (ac_try="$ac_link"
16180 case "(($ac_try" in
16181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182   *) ac_try_echo=$ac_try;;
16183 esac
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185   (eval "$ac_link") 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16189   { (case "(($ac_try" in
16190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191   *) ac_try_echo=$ac_try;;
16192 esac
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194   (eval "$ac_try") 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ac_cv_huge_val_sanity=yes
16199 else
16200   echo "$as_me: program exited with status $ac_status" >&5
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ( exit $ac_status )
16205 ac_cv_huge_val_sanity=no
16206 fi
16207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16208 fi
16209
16210
16211     CXXFLAGS=$ac_save_CXXFLAGS
16212     ac_ext=c
16213 ac_cpp='$CPP $CPPFLAGS'
16214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16217
16218
16219 fi
16220 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16221 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16222   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16223
16224
16225 { echo "$as_me:$LINENO: checking for pid_t" >&5
16226 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16227 if test "${ac_cv_type_pid_t+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230   cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236 $ac_includes_default
16237 typedef pid_t ac__type_new_;
16238 int
16239 main ()
16240 {
16241 if ((ac__type_new_ *) 0)
16242   return 0;
16243 if (sizeof (ac__type_new_))
16244   return 0;
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_compile") 2>conftest.er1
16257   ac_status=$?
16258   grep -v '^ *+' conftest.er1 >conftest.err
16259   rm -f conftest.er1
16260   cat conftest.err >&5
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); } &&
16263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264   { (case "(($ac_try" in
16265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266   *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269   (eval "$ac_try") 2>&5
16270   ac_status=$?
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); }; } &&
16273          { ac_try='test -s conftest.$ac_objext'
16274   { (case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_try") 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_cv_type_pid_t=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288         ac_cv_type_pid_t=no
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 fi
16293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16295 if test $ac_cv_type_pid_t = yes; then
16296   :
16297 else
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define pid_t int
16301 _ACEOF
16302
16303 fi
16304
16305 { echo "$as_me:$LINENO: checking for size_t" >&5
16306 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16307 if test "${ac_cv_type_size_t+set}" = set; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 $ac_includes_default
16317 typedef size_t ac__type_new_;
16318 int
16319 main ()
16320 {
16321 if ((ac__type_new_ *) 0)
16322   return 0;
16323 if (sizeof (ac__type_new_))
16324   return 0;
16325   ;
16326   return 0;
16327 }
16328 _ACEOF
16329 rm -f conftest.$ac_objext
16330 if { (ac_try="$ac_compile"
16331 case "(($ac_try" in
16332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333   *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336   (eval "$ac_compile") 2>conftest.er1
16337   ac_status=$?
16338   grep -v '^ *+' conftest.er1 >conftest.err
16339   rm -f conftest.er1
16340   cat conftest.err >&5
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344   { (case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349   (eval "$ac_try") 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; } &&
16353          { ac_try='test -s conftest.$ac_objext'
16354   { (case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_try") 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363   ac_cv_type_size_t=yes
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368         ac_cv_type_size_t=no
16369 fi
16370
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16374 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16375 if test $ac_cv_type_size_t = yes; then
16376   :
16377 else
16378
16379 cat >>confdefs.h <<_ACEOF
16380 #define size_t unsigned int
16381 _ACEOF
16382
16383 fi
16384
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define RETSIGTYPE void
16388 _ACEOF
16389
16390 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16392 if test "${ac_cv_struct_tm+set}" = set; then
16393   echo $ECHO_N "(cached) $ECHO_C" >&6
16394 else
16395   cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 #include <sys/types.h>
16402 #include <time.h>
16403
16404 int
16405 main ()
16406 {
16407 struct tm *tp; tp->tm_sec;
16408   ;
16409   return 0;
16410 }
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416   *) ac_try_echo=$ac_try;;
16417 esac
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419   (eval "$ac_compile") 2>conftest.er1
16420   ac_status=$?
16421   grep -v '^ *+' conftest.er1 >conftest.err
16422   rm -f conftest.er1
16423   cat conftest.err >&5
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } &&
16426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16427   { (case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_try") 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; } &&
16436          { ac_try='test -s conftest.$ac_objext'
16437   { (case "(($ac_try" in
16438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439   *) ac_try_echo=$ac_try;;
16440 esac
16441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442   (eval "$ac_try") 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   ac_cv_struct_tm=time.h
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451         ac_cv_struct_tm=sys/time.h
16452 fi
16453
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455 fi
16456 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16457 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16458 if test $ac_cv_struct_tm = sys/time.h; then
16459
16460 cat >>confdefs.h <<\_ACEOF
16461 #define TM_IN_SYS_TIME 1
16462 _ACEOF
16463
16464 fi
16465
16466 { echo "$as_me:$LINENO: checking for int64_t" >&5
16467 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16468 if test "${ac_cv_type_int64_t+set}" = set; then
16469   echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471   cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h.  */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h.  */
16477 $ac_includes_default
16478 typedef int64_t ac__type_new_;
16479 int
16480 main ()
16481 {
16482 if ((ac__type_new_ *) 0)
16483   return 0;
16484 if (sizeof (ac__type_new_))
16485   return 0;
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext
16491 if { (ac_try="$ac_compile"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_compile") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } &&
16504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505   { (case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_try") 2>&5
16511   ac_status=$?
16512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513   (exit $ac_status); }; } &&
16514          { ac_try='test -s conftest.$ac_objext'
16515   { (case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_try") 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; }; then
16524   ac_cv_type_int64_t=yes
16525 else
16526   echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16528
16529         ac_cv_type_int64_t=no
16530 fi
16531
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16533 fi
16534 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16535 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16536 if test $ac_cv_type_int64_t = yes; then
16537
16538 cat >>confdefs.h <<_ACEOF
16539 #define HAVE_INT64_T 1
16540 _ACEOF
16541
16542
16543 else
16544   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16545 echo "$as_me: error: Type int64_t required but not found" >&2;}
16546    { (exit 1); exit 1; }; }
16547 fi
16548
16549 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16550 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16551 if test "${ac_cv_type_uint64_t+set}" = set; then
16552   echo $ECHO_N "(cached) $ECHO_C" >&6
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 $ac_includes_default
16561 typedef uint64_t ac__type_new_;
16562 int
16563 main ()
16564 {
16565 if ((ac__type_new_ *) 0)
16566   return 0;
16567 if (sizeof (ac__type_new_))
16568   return 0;
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext
16574 if { (ac_try="$ac_compile"
16575 case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_compile") 2>conftest.er1
16581   ac_status=$?
16582   grep -v '^ *+' conftest.er1 >conftest.err
16583   rm -f conftest.er1
16584   cat conftest.err >&5
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); } &&
16587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16588   { (case "(($ac_try" in
16589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590   *) ac_try_echo=$ac_try;;
16591 esac
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593   (eval "$ac_try") 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); }; } &&
16597          { ac_try='test -s conftest.$ac_objext'
16598   { (case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_try") 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; }; then
16607   ac_cv_type_uint64_t=yes
16608 else
16609   echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16611
16612         ac_cv_type_uint64_t=no
16613 fi
16614
16615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16616 fi
16617 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16618 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16619 if test $ac_cv_type_uint64_t = yes; then
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_UINT64_T 1
16623 _ACEOF
16624
16625
16626 else
16627   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16628 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16629 if test "${ac_cv_type_u_int64_t+set}" = set; then
16630   echo $ECHO_N "(cached) $ECHO_C" >&6
16631 else
16632   cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 $ac_includes_default
16639 typedef u_int64_t ac__type_new_;
16640 int
16641 main ()
16642 {
16643 if ((ac__type_new_ *) 0)
16644   return 0;
16645 if (sizeof (ac__type_new_))
16646   return 0;
16647   ;
16648   return 0;
16649 }
16650 _ACEOF
16651 rm -f conftest.$ac_objext
16652 if { (ac_try="$ac_compile"
16653 case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_compile") 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666   { (case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_try") 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; } &&
16675          { ac_try='test -s conftest.$ac_objext'
16676   { (case "(($ac_try" in
16677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678   *) ac_try_echo=$ac_try;;
16679 esac
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681   (eval "$ac_try") 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_type_u_int64_t=yes
16686 else
16687   echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690         ac_cv_type_u_int64_t=no
16691 fi
16692
16693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16694 fi
16695 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16696 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16697 if test $ac_cv_type_u_int64_t = yes; then
16698
16699 cat >>confdefs.h <<_ACEOF
16700 #define HAVE_U_INT64_T 1
16701 _ACEOF
16702
16703
16704 else
16705   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16706 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16707    { (exit 1); exit 1; }; }
16708 fi
16709
16710 fi
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16722 do
16723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16727   echo $ECHO_N "(cached) $ECHO_C" >&6
16728 else
16729   cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16737 #define $ac_func innocuous_$ac_func
16738
16739 /* System header to define __stub macros and hopefully few prototypes,
16740     which can conflict with char $ac_func (); below.
16741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16742     <limits.h> exists even on freestanding compilers.  */
16743
16744 #ifdef __STDC__
16745 # include <limits.h>
16746 #else
16747 # include <assert.h>
16748 #endif
16749
16750 #undef $ac_func
16751
16752 /* Override any GCC internal prototype to avoid an error.
16753    Use char because int might match the return type of a GCC
16754    builtin and then its argument prototype would still apply.  */
16755 #ifdef __cplusplus
16756 extern "C"
16757 #endif
16758 char $ac_func ();
16759 /* The GNU C library defines this for functions which it implements
16760     to always fail with ENOSYS.  Some functions are actually named
16761     something starting with __ and the normal name is an alias.  */
16762 #if defined __stub_$ac_func || defined __stub___$ac_func
16763 choke me
16764 #endif
16765
16766 int
16767 main ()
16768 {
16769 return $ac_func ();
16770   ;
16771   return 0;
16772 }
16773 _ACEOF
16774 rm -f conftest.$ac_objext conftest$ac_exeext
16775 if { (ac_try="$ac_link"
16776 case "(($ac_try" in
16777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16778   *) ac_try_echo=$ac_try;;
16779 esac
16780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16781   (eval "$ac_link") 2>conftest.er1
16782   ac_status=$?
16783   grep -v '^ *+' conftest.er1 >conftest.err
16784   rm -f conftest.er1
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); } &&
16788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16789   { (case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_try") 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; } &&
16798          { ac_try='test -s conftest$ac_exeext'
16799   { (case "(($ac_try" in
16800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801   *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804   (eval "$ac_try") 2>&5
16805   ac_status=$?
16806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); }; }; then
16808   eval "$as_ac_var=yes"
16809 else
16810   echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16812
16813         eval "$as_ac_var=no"
16814 fi
16815
16816 rm -f core conftest.err conftest.$ac_objext \
16817       conftest$ac_exeext conftest.$ac_ext
16818 fi
16819 ac_res=`eval echo '${'$as_ac_var'}'`
16820                { echo "$as_me:$LINENO: result: $ac_res" >&5
16821 echo "${ECHO_T}$ac_res" >&6; }
16822 if test `eval echo '${'$as_ac_var'}'` = yes; then
16823   cat >>confdefs.h <<_ACEOF
16824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16825 _ACEOF
16826
16827 fi
16828 done
16829
16830
16831
16832
16833
16834 for ac_func in powf fmodf strtof round
16835 do
16836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h.  */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h.  */
16848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16850 #define $ac_func innocuous_$ac_func
16851
16852 /* System header to define __stub macros and hopefully few prototypes,
16853     which can conflict with char $ac_func (); below.
16854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855     <limits.h> exists even on freestanding compilers.  */
16856
16857 #ifdef __STDC__
16858 # include <limits.h>
16859 #else
16860 # include <assert.h>
16861 #endif
16862
16863 #undef $ac_func
16864
16865 /* Override any GCC internal prototype to avoid an error.
16866    Use char because int might match the return type of a GCC
16867    builtin and then its argument prototype would still apply.  */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char $ac_func ();
16872 /* The GNU C library defines this for functions which it implements
16873     to always fail with ENOSYS.  Some functions are actually named
16874     something starting with __ and the normal name is an alias.  */
16875 #if defined __stub_$ac_func || defined __stub___$ac_func
16876 choke me
16877 #endif
16878
16879 int
16880 main ()
16881 {
16882 return $ac_func ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (ac_try="$ac_link"
16889 case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_link") 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902   { (case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_try") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }; } &&
16911          { ac_try='test -s conftest$ac_exeext'
16912   { (case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_try") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   eval "$as_ac_var=yes"
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926         eval "$as_ac_var=no"
16927 fi
16928
16929 rm -f core conftest.err conftest.$ac_objext \
16930       conftest$ac_exeext conftest.$ac_ext
16931 fi
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933                { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936   cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938 _ACEOF
16939
16940 fi
16941 done
16942
16943
16944
16945
16946
16947
16948 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16949 do
16950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   cat >conftest.$ac_ext <<_ACEOF
16957 /* confdefs.h.  */
16958 _ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h.  */
16962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16964 #define $ac_func innocuous_$ac_func
16965
16966 /* System header to define __stub macros and hopefully few prototypes,
16967     which can conflict with char $ac_func (); below.
16968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16969     <limits.h> exists even on freestanding compilers.  */
16970
16971 #ifdef __STDC__
16972 # include <limits.h>
16973 #else
16974 # include <assert.h>
16975 #endif
16976
16977 #undef $ac_func
16978
16979 /* Override any GCC internal prototype to avoid an error.
16980    Use char because int might match the return type of a GCC
16981    builtin and then its argument prototype would still apply.  */
16982 #ifdef __cplusplus
16983 extern "C"
16984 #endif
16985 char $ac_func ();
16986 /* The GNU C library defines this for functions which it implements
16987     to always fail with ENOSYS.  Some functions are actually named
16988     something starting with __ and the normal name is an alias.  */
16989 #if defined __stub_$ac_func || defined __stub___$ac_func
16990 choke me
16991 #endif
16992
16993 int
16994 main ()
16995 {
16996 return $ac_func ();
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (ac_try="$ac_link"
17003 case "(($ac_try" in
17004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005   *) ac_try_echo=$ac_try;;
17006 esac
17007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008   (eval "$ac_link") 2>conftest.er1
17009   ac_status=$?
17010   grep -v '^ *+' conftest.er1 >conftest.err
17011   rm -f conftest.er1
17012   cat conftest.err >&5
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); } &&
17015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016   { (case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_try") 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; } &&
17025          { ac_try='test -s conftest$ac_exeext'
17026   { (case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_try") 2>&5
17032   ac_status=$?
17033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034   (exit $ac_status); }; }; then
17035   eval "$as_ac_var=yes"
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040         eval "$as_ac_var=no"
17041 fi
17042
17043 rm -f core conftest.err conftest.$ac_objext \
17044       conftest$ac_exeext conftest.$ac_ext
17045 fi
17046 ac_res=`eval echo '${'$as_ac_var'}'`
17047                { echo "$as_me:$LINENO: result: $ac_res" >&5
17048 echo "${ECHO_T}$ac_res" >&6; }
17049 if test `eval echo '${'$as_ac_var'}'` = yes; then
17050   cat >>confdefs.h <<_ACEOF
17051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17052 _ACEOF
17053
17054 fi
17055 done
17056
17057
17058
17059
17060 for ac_func in isatty mkdtemp mkstemp
17061 do
17062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17066   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068   cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17076 #define $ac_func innocuous_$ac_func
17077
17078 /* System header to define __stub macros and hopefully few prototypes,
17079     which can conflict with char $ac_func (); below.
17080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17081     <limits.h> exists even on freestanding compilers.  */
17082
17083 #ifdef __STDC__
17084 # include <limits.h>
17085 #else
17086 # include <assert.h>
17087 #endif
17088
17089 #undef $ac_func
17090
17091 /* Override any GCC internal prototype to avoid an error.
17092    Use char because int might match the return type of a GCC
17093    builtin and then its argument prototype would still apply.  */
17094 #ifdef __cplusplus
17095 extern "C"
17096 #endif
17097 char $ac_func ();
17098 /* The GNU C library defines this for functions which it implements
17099     to always fail with ENOSYS.  Some functions are actually named
17100     something starting with __ and the normal name is an alias.  */
17101 #if defined __stub_$ac_func || defined __stub___$ac_func
17102 choke me
17103 #endif
17104
17105 int
17106 main ()
17107 {
17108 return $ac_func ();
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120   (eval "$ac_link") 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128   { (case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_try") 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest$ac_exeext'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   eval "$as_ac_var=yes"
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152         eval "$as_ac_var=no"
17153 fi
17154
17155 rm -f core conftest.err conftest.$ac_objext \
17156       conftest$ac_exeext conftest.$ac_ext
17157 fi
17158 ac_res=`eval echo '${'$as_ac_var'}'`
17159                { echo "$as_me:$LINENO: result: $ac_res" >&5
17160 echo "${ECHO_T}$ac_res" >&6; }
17161 if test `eval echo '${'$as_ac_var'}'` = yes; then
17162   cat >>confdefs.h <<_ACEOF
17163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17164 _ACEOF
17165
17166 fi
17167 done
17168
17169
17170
17171
17172
17173
17174
17175
17176 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17177 do
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17192 #define $ac_func innocuous_$ac_func
17193
17194 /* System header to define __stub macros and hopefully few prototypes,
17195     which can conflict with char $ac_func (); below.
17196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197     <limits.h> exists even on freestanding compilers.  */
17198
17199 #ifdef __STDC__
17200 # include <limits.h>
17201 #else
17202 # include <assert.h>
17203 #endif
17204
17205 #undef $ac_func
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208    Use char because int might match the return type of a GCC
17209    builtin and then its argument prototype would still apply.  */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char $ac_func ();
17214 /* The GNU C library defines this for functions which it implements
17215     to always fail with ENOSYS.  Some functions are actually named
17216     something starting with __ and the normal name is an alias.  */
17217 #if defined __stub_$ac_func || defined __stub___$ac_func
17218 choke me
17219 #endif
17220
17221 int
17222 main ()
17223 {
17224 return $ac_func ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_link") 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244   { (case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_try") 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   eval "$as_ac_var=yes"
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         eval "$as_ac_var=no"
17269 fi
17270
17271 rm -f core conftest.err conftest.$ac_objext \
17272       conftest$ac_exeext conftest.$ac_ext
17273 fi
17274 ac_res=`eval echo '${'$as_ac_var'}'`
17275                { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 if test `eval echo '${'$as_ac_var'}'` = yes; then
17278   cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280 _ACEOF
17281
17282 fi
17283 done
17284
17285
17286
17287
17288 for ac_func in strerror strerror_r setenv
17289 do
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17304 #define $ac_func innocuous_$ac_func
17305
17306 /* System header to define __stub macros and hopefully few prototypes,
17307     which can conflict with char $ac_func (); below.
17308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309     <limits.h> exists even on freestanding compilers.  */
17310
17311 #ifdef __STDC__
17312 # include <limits.h>
17313 #else
17314 # include <assert.h>
17315 #endif
17316
17317 #undef $ac_func
17318
17319 /* Override any GCC internal prototype to avoid an error.
17320    Use char because int might match the return type of a GCC
17321    builtin and then its argument prototype would still apply.  */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char $ac_func ();
17326 /* The GNU C library defines this for functions which it implements
17327     to always fail with ENOSYS.  Some functions are actually named
17328     something starting with __ and the normal name is an alias.  */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17330 choke me
17331 #endif
17332
17333 int
17334 main ()
17335 {
17336 return $ac_func ();
17337   ;
17338   return 0;
17339 }
17340 _ACEOF
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348   (eval "$ac_link") 2>conftest.er1
17349   ac_status=$?
17350   grep -v '^ *+' conftest.er1 >conftest.err
17351   rm -f conftest.er1
17352   cat conftest.err >&5
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); } &&
17355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356   { (case "(($ac_try" in
17357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358   *) ac_try_echo=$ac_try;;
17359 esac
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361   (eval "$ac_try") 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_try") 2>&5
17372   ac_status=$?
17373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374   (exit $ac_status); }; }; then
17375   eval "$as_ac_var=yes"
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         eval "$as_ac_var=no"
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387                { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390   cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392 _ACEOF
17393
17394 fi
17395 done
17396
17397
17398
17399
17400
17401 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17402 do
17403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17417 #define $ac_func innocuous_$ac_func
17418
17419 /* System header to define __stub macros and hopefully few prototypes,
17420     which can conflict with char $ac_func (); below.
17421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422     <limits.h> exists even on freestanding compilers.  */
17423
17424 #ifdef __STDC__
17425 # include <limits.h>
17426 #else
17427 # include <assert.h>
17428 #endif
17429
17430 #undef $ac_func
17431
17432 /* Override any GCC internal prototype to avoid an error.
17433    Use char because int might match the return type of a GCC
17434    builtin and then its argument prototype would still apply.  */
17435 #ifdef __cplusplus
17436 extern "C"
17437 #endif
17438 char $ac_func ();
17439 /* The GNU C library defines this for functions which it implements
17440     to always fail with ENOSYS.  Some functions are actually named
17441     something starting with __ and the normal name is an alias.  */
17442 #if defined __stub_$ac_func || defined __stub___$ac_func
17443 choke me
17444 #endif
17445
17446 int
17447 main ()
17448 {
17449 return $ac_func ();
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext conftest$ac_exeext
17455 if { (ac_try="$ac_link"
17456 case "(($ac_try" in
17457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458   *) ac_try_echo=$ac_try;;
17459 esac
17460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461   (eval "$ac_link") 2>conftest.er1
17462   ac_status=$?
17463   grep -v '^ *+' conftest.er1 >conftest.err
17464   rm -f conftest.er1
17465   cat conftest.err >&5
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); } &&
17468          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17469   { (case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_try") 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); }; } &&
17478          { ac_try='test -s conftest$ac_exeext'
17479   { (case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_try") 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); }; }; then
17488   eval "$as_ac_var=yes"
17489 else
17490   echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493         eval "$as_ac_var=no"
17494 fi
17495
17496 rm -f core conftest.err conftest.$ac_objext \
17497       conftest$ac_exeext conftest.$ac_ext
17498 fi
17499 ac_res=`eval echo '${'$as_ac_var'}'`
17500                { echo "$as_me:$LINENO: result: $ac_res" >&5
17501 echo "${ECHO_T}$ac_res" >&6; }
17502 if test `eval echo '${'$as_ac_var'}'` = yes; then
17503   cat >>confdefs.h <<_ACEOF
17504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17505 _ACEOF
17506
17507 fi
17508 done
17509
17510
17511
17512
17513
17514
17515 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17516 do
17517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17518 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17531 #define $ac_func innocuous_$ac_func
17532
17533 /* System header to define __stub macros and hopefully few prototypes,
17534     which can conflict with char $ac_func (); below.
17535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17536     <limits.h> exists even on freestanding compilers.  */
17537
17538 #ifdef __STDC__
17539 # include <limits.h>
17540 #else
17541 # include <assert.h>
17542 #endif
17543
17544 #undef $ac_func
17545
17546 /* Override any GCC internal prototype to avoid an error.
17547    Use char because int might match the return type of a GCC
17548    builtin and then its argument prototype would still apply.  */
17549 #ifdef __cplusplus
17550 extern "C"
17551 #endif
17552 char $ac_func ();
17553 /* The GNU C library defines this for functions which it implements
17554     to always fail with ENOSYS.  Some functions are actually named
17555     something starting with __ and the normal name is an alias.  */
17556 #if defined __stub_$ac_func || defined __stub___$ac_func
17557 choke me
17558 #endif
17559
17560 int
17561 main ()
17562 {
17563 return $ac_func ();
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 rm -f conftest.$ac_objext conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_link") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } &&
17582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17583   { (case "(($ac_try" in
17584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585   *) ac_try_echo=$ac_try;;
17586 esac
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588   (eval "$ac_try") 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_try") 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; }; then
17602   eval "$as_ac_var=yes"
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607         eval "$as_ac_var=no"
17608 fi
17609
17610 rm -f core conftest.err conftest.$ac_objext \
17611       conftest$ac_exeext conftest.$ac_ext
17612 fi
17613 ac_res=`eval echo '${'$as_ac_var'}'`
17614                { echo "$as_me:$LINENO: result: $ac_res" >&5
17615 echo "${ECHO_T}$ac_res" >&6; }
17616 if test `eval echo '${'$as_ac_var'}'` = yes; then
17617   cat >>confdefs.h <<_ACEOF
17618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17619 _ACEOF
17620
17621 fi
17622 done
17623
17624 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17625 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17626 if test "${llvm_cv_c_printf_a+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629   ac_ext=c
17630 ac_cpp='$CPP $CPPFLAGS'
17631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17634
17635  if test "$cross_compiling" = yes; then
17636   llvmac_cv_c_printf_a=no
17637 else
17638   cat >conftest.$ac_ext <<_ACEOF
17639
17640   /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645
17646 #include <stdio.h>
17647 #include <stdlib.h>
17648
17649 int
17650 main ()
17651 {
17652
17653 volatile double A, B;
17654 char Buffer[100];
17655 A = 1;
17656 A /= 10.0;
17657 sprintf(Buffer, "%a", A);
17658 B = atof(Buffer);
17659 if (A != B)
17660   return (1);
17661 if (A != 0x1.999999999999ap-4)
17662   return (1);
17663 return (0);
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672   *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675   (eval "$ac_link") 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679   { (case "(($ac_try" in
17680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17681   *) ac_try_echo=$ac_try;;
17682 esac
17683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17684   (eval "$ac_try") 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); }; }; then
17688   llvm_cv_c_printf_a=yes
17689 else
17690   echo "$as_me: program exited with status $ac_status" >&5
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ( exit $ac_status )
17695 llvmac_cv_c_printf_a=no
17696 fi
17697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17698 fi
17699
17700
17701  ac_ext=c
17702 ac_cpp='$CPP $CPPFLAGS'
17703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17706
17707 fi
17708 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17709 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17710  if test "$llvm_cv_c_printf_a" = "yes"; then
17711
17712 cat >>confdefs.h <<\_ACEOF
17713 #define HAVE_PRINTF_A 1
17714 _ACEOF
17715
17716  fi
17717
17718
17719 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17720 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17721 if test "${ac_cv_func_rand48+set}" = set; then
17722   echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724   ac_ext=cpp
17725 ac_cpp='$CXXCPP $CPPFLAGS'
17726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17729
17730    cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736 #include <stdlib.h>
17737 int
17738 main ()
17739 {
17740 srand48(0);lrand48();drand48();
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (ac_try="$ac_compile"
17747 case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_compile") 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17760   { (case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765   (eval "$ac_try") 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } &&
17769          { ac_try='test -s conftest.$ac_objext'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_try") 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   ac_cv_func_rand48=yes
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784         ac_cv_func_rand48=no
17785 fi
17786
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788   ac_ext=c
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793
17794 fi
17795 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17796 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17797
17798 if test "$ac_cv_func_rand48" = "yes" ; then
17799
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_RAND48 1
17802 _ACEOF
17803
17804 fi
17805
17806
17807 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17808 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17809 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17810   echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812   cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h.  */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h.  */
17818 $ac_includes_default
17819 int
17820 main ()
17821 {
17822 #ifndef strerror_s
17823   char *p = (char *) strerror_s;
17824   return !p;
17825 #endif
17826
17827   ;
17828   return 0;
17829 }
17830 _ACEOF
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835   *) ac_try_echo=$ac_try;;
17836 esac
17837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838   (eval "$ac_compile") 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846   { (case "(($ac_try" in
17847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848   *) ac_try_echo=$ac_try;;
17849 esac
17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851   (eval "$ac_try") 2>&5
17852   ac_status=$?
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); }; } &&
17855          { ac_try='test -s conftest.$ac_objext'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; }; then
17865   ac_cv_have_decl_strerror_s=yes
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         ac_cv_have_decl_strerror_s=no
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 fi
17875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17876 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17877 if test $ac_cv_have_decl_strerror_s = yes; then
17878
17879 cat >>confdefs.h <<_ACEOF
17880 #define HAVE_DECL_STRERROR_S 1
17881 _ACEOF
17882
17883
17884 else
17885   cat >>confdefs.h <<_ACEOF
17886 #define HAVE_DECL_STRERROR_S 0
17887 _ACEOF
17888
17889
17890 fi
17891
17892
17893
17894 if test "$llvm_cv_os_type" = "MingW" ; then
17895   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17896 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17897 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17898   echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900   ac_check_lib_save_LIBS=$LIBS
17901 LIBS="-lgcc  $LIBS"
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908
17909 /* Override any GCC internal prototype to avoid an error.
17910    Use char because int might match the return type of a GCC
17911    builtin and then its argument prototype would still apply.  */
17912 #ifdef __cplusplus
17913 extern "C"
17914 #endif
17915 char _alloca ();
17916 int
17917 main ()
17918 {
17919 return _alloca ();
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest.$ac_objext conftest$ac_exeext
17925 if { (ac_try="$ac_link"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_link") 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17939   { (case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_try") 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest$ac_exeext'
17949   { (case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_try") 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; }; then
17958   ac_cv_lib_gcc__alloca=yes
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963         ac_cv_lib_gcc__alloca=no
17964 fi
17965
17966 rm -f core conftest.err conftest.$ac_objext \
17967       conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17969 fi
17970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17971 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17972 if test $ac_cv_lib_gcc__alloca = yes; then
17973
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE__ALLOCA 1
17976 _ACEOF
17977
17978 fi
17979
17980   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17981 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17982 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17983   echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985   ac_check_lib_save_LIBS=$LIBS
17986 LIBS="-lgcc  $LIBS"
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993
17994 /* Override any GCC internal prototype to avoid an error.
17995    Use char because int might match the return type of a GCC
17996    builtin and then its argument prototype would still apply.  */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char __alloca ();
18001 int
18002 main ()
18003 {
18004 return __alloca ();
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_link") 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024   { (case "(($ac_try" in
18025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026   *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029   (eval "$ac_try") 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest$ac_exeext'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; }; then
18043   ac_cv_lib_gcc___alloca=yes
18044 else
18045   echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048         ac_cv_lib_gcc___alloca=no
18049 fi
18050
18051 rm -f core conftest.err conftest.$ac_objext \
18052       conftest$ac_exeext conftest.$ac_ext
18053 LIBS=$ac_check_lib_save_LIBS
18054 fi
18055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18056 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18057 if test $ac_cv_lib_gcc___alloca = yes; then
18058
18059 cat >>confdefs.h <<\_ACEOF
18060 #define HAVE___ALLOCA 1
18061 _ACEOF
18062
18063 fi
18064
18065   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18066 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18067 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   ac_check_lib_save_LIBS=$LIBS
18071 LIBS="-lgcc  $LIBS"
18072 cat >conftest.$ac_ext <<_ACEOF
18073 /* confdefs.h.  */
18074 _ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h.  */
18078
18079 /* Override any GCC internal prototype to avoid an error.
18080    Use char because int might match the return type of a GCC
18081    builtin and then its argument prototype would still apply.  */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char __chkstk ();
18086 int
18087 main ()
18088 {
18089 return __chkstk ();
18090   ;
18091   return 0;
18092 }
18093 _ACEOF
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098   *) ac_try_echo=$ac_try;;
18099 esac
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101   (eval "$ac_link") 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } &&
18108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109   { (case "(($ac_try" in
18110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111   *) ac_try_echo=$ac_try;;
18112 esac
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114   (eval "$ac_try") 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); }; } &&
18118          { ac_try='test -s conftest$ac_exeext'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; }; then
18128   ac_cv_lib_gcc___chkstk=yes
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133         ac_cv_lib_gcc___chkstk=no
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext \
18137       conftest$ac_exeext conftest.$ac_ext
18138 LIBS=$ac_check_lib_save_LIBS
18139 fi
18140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18141 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18142 if test $ac_cv_lib_gcc___chkstk = yes; then
18143
18144 cat >>confdefs.h <<\_ACEOF
18145 #define HAVE___CHKSTK 1
18146 _ACEOF
18147
18148 fi
18149
18150   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18151 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18152 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18153   echo $ECHO_N "(cached) $ECHO_C" >&6
18154 else
18155   ac_check_lib_save_LIBS=$LIBS
18156 LIBS="-lgcc  $LIBS"
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h.  */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h.  */
18163
18164 /* Override any GCC internal prototype to avoid an error.
18165    Use char because int might match the return type of a GCC
18166    builtin and then its argument prototype would still apply.  */
18167 #ifdef __cplusplus
18168 extern "C"
18169 #endif
18170 char ___chkstk ();
18171 int
18172 main ()
18173 {
18174 return ___chkstk ();
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183   *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186   (eval "$ac_link") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } &&
18193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18194   { (case "(($ac_try" in
18195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196   *) ac_try_echo=$ac_try;;
18197 esac
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199   (eval "$ac_try") 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; } &&
18203          { ac_try='test -s conftest$ac_exeext'
18204   { (case "(($ac_try" in
18205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206   *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209   (eval "$ac_try") 2>&5
18210   ac_status=$?
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); }; }; then
18213   ac_cv_lib_gcc____chkstk=yes
18214 else
18215   echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218         ac_cv_lib_gcc____chkstk=no
18219 fi
18220
18221 rm -f core conftest.err conftest.$ac_objext \
18222       conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18224 fi
18225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18226 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18227 if test $ac_cv_lib_gcc____chkstk = yes; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE____CHKSTK 1
18231 _ACEOF
18232
18233 fi
18234
18235
18236   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18237 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18238 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241   ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-lgcc  $LIBS"
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h.  */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h.  */
18249
18250 /* Override any GCC internal prototype to avoid an error.
18251    Use char because int might match the return type of a GCC
18252    builtin and then its argument prototype would still apply.  */
18253 #ifdef __cplusplus
18254 extern "C"
18255 #endif
18256 char __ashldi3 ();
18257 int
18258 main ()
18259 {
18260 return __ashldi3 ();
18261   ;
18262   return 0;
18263 }
18264 _ACEOF
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_link") 2>conftest.er1
18273   ac_status=$?
18274   grep -v '^ *+' conftest.er1 >conftest.err
18275   rm -f conftest.er1
18276   cat conftest.err >&5
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; } &&
18289          { ac_try='test -s conftest$ac_exeext'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299   ac_cv_lib_gcc___ashldi3=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304         ac_cv_lib_gcc___ashldi3=no
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext \
18308       conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18310 fi
18311 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18312 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18313 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18314
18315 cat >>confdefs.h <<\_ACEOF
18316 #define HAVE___ASHLDI3 1
18317 _ACEOF
18318
18319 fi
18320
18321   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18322 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18323 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18324   echo $ECHO_N "(cached) $ECHO_C" >&6
18325 else
18326   ac_check_lib_save_LIBS=$LIBS
18327 LIBS="-lgcc  $LIBS"
18328 cat >conftest.$ac_ext <<_ACEOF
18329 /* confdefs.h.  */
18330 _ACEOF
18331 cat confdefs.h >>conftest.$ac_ext
18332 cat >>conftest.$ac_ext <<_ACEOF
18333 /* end confdefs.h.  */
18334
18335 /* Override any GCC internal prototype to avoid an error.
18336    Use char because int might match the return type of a GCC
18337    builtin and then its argument prototype would still apply.  */
18338 #ifdef __cplusplus
18339 extern "C"
18340 #endif
18341 char __ashrdi3 ();
18342 int
18343 main ()
18344 {
18345 return __ashrdi3 ();
18346   ;
18347   return 0;
18348 }
18349 _ACEOF
18350 rm -f conftest.$ac_objext conftest$ac_exeext
18351 if { (ac_try="$ac_link"
18352 case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_link") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } &&
18364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18365   { (case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_try") 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; } &&
18374          { ac_try='test -s conftest$ac_exeext'
18375   { (case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_try") 2>&5
18381   ac_status=$?
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); }; }; then
18384   ac_cv_lib_gcc___ashrdi3=yes
18385 else
18386   echo "$as_me: failed program was:" >&5
18387 sed 's/^/| /' conftest.$ac_ext >&5
18388
18389         ac_cv_lib_gcc___ashrdi3=no
18390 fi
18391
18392 rm -f core conftest.err conftest.$ac_objext \
18393       conftest$ac_exeext conftest.$ac_ext
18394 LIBS=$ac_check_lib_save_LIBS
18395 fi
18396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18397 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18398 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18399
18400 cat >>confdefs.h <<\_ACEOF
18401 #define HAVE___ASHRDI3 1
18402 _ACEOF
18403
18404 fi
18405
18406   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18407 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18408 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411   ac_check_lib_save_LIBS=$LIBS
18412 LIBS="-lgcc  $LIBS"
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419
18420 /* Override any GCC internal prototype to avoid an error.
18421    Use char because int might match the return type of a GCC
18422    builtin and then its argument prototype would still apply.  */
18423 #ifdef __cplusplus
18424 extern "C"
18425 #endif
18426 char __divdi3 ();
18427 int
18428 main ()
18429 {
18430 return __divdi3 ();
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439   *) ac_try_echo=$ac_try;;
18440 esac
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442   (eval "$ac_link") 2>conftest.er1
18443   ac_status=$?
18444   grep -v '^ *+' conftest.er1 >conftest.err
18445   rm -f conftest.er1
18446   cat conftest.err >&5
18447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } &&
18449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450   { (case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455   (eval "$ac_try") 2>&5
18456   ac_status=$?
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); }; } &&
18459          { ac_try='test -s conftest$ac_exeext'
18460   { (case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_try") 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; }; then
18469   ac_cv_lib_gcc___divdi3=yes
18470 else
18471   echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474         ac_cv_lib_gcc___divdi3=no
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext \
18478       conftest$ac_exeext conftest.$ac_ext
18479 LIBS=$ac_check_lib_save_LIBS
18480 fi
18481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18482 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18483 if test $ac_cv_lib_gcc___divdi3 = yes; then
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE___DIVDI3 1
18487 _ACEOF
18488
18489 fi
18490
18491   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18492 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lgcc  $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504
18505 /* Override any GCC internal prototype to avoid an error.
18506    Use char because int might match the return type of a GCC
18507    builtin and then its argument prototype would still apply.  */
18508 #ifdef __cplusplus
18509 extern "C"
18510 #endif
18511 char __fixdfdi ();
18512 int
18513 main ()
18514 {
18515 return __fixdfdi ();
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_link") 2>conftest.er1
18528   ac_status=$?
18529   grep -v '^ *+' conftest.er1 >conftest.err
18530   rm -f conftest.er1
18531   cat conftest.err >&5
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } &&
18534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18535   { (case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540   (eval "$ac_try") 2>&5
18541   ac_status=$?
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); }; } &&
18544          { ac_try='test -s conftest$ac_exeext'
18545   { (case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_try") 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   ac_cv_lib_gcc___fixdfdi=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559         ac_cv_lib_gcc___fixdfdi=no
18560 fi
18561
18562 rm -f core conftest.err conftest.$ac_objext \
18563       conftest$ac_exeext conftest.$ac_ext
18564 LIBS=$ac_check_lib_save_LIBS
18565 fi
18566 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18567 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18568 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18569
18570 cat >>confdefs.h <<\_ACEOF
18571 #define HAVE___FIXDFDI 1
18572 _ACEOF
18573
18574 fi
18575
18576   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18577 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18578 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18579   echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581   ac_check_lib_save_LIBS=$LIBS
18582 LIBS="-lgcc  $LIBS"
18583 cat >conftest.$ac_ext <<_ACEOF
18584 /* confdefs.h.  */
18585 _ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h.  */
18589
18590 /* Override any GCC internal prototype to avoid an error.
18591    Use char because int might match the return type of a GCC
18592    builtin and then its argument prototype would still apply.  */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 char __fixsfdi ();
18597 int
18598 main ()
18599 {
18600 return __fixsfdi ();
18601   ;
18602   return 0;
18603 }
18604 _ACEOF
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609   *) ac_try_echo=$ac_try;;
18610 esac
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612   (eval "$ac_link") 2>conftest.er1
18613   ac_status=$?
18614   grep -v '^ *+' conftest.er1 >conftest.err
18615   rm -f conftest.er1
18616   cat conftest.err >&5
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); } &&
18619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18620   { (case "(($ac_try" in
18621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622   *) ac_try_echo=$ac_try;;
18623 esac
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625   (eval "$ac_try") 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; } &&
18629          { ac_try='test -s conftest$ac_exeext'
18630   { (case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_try") 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; }; then
18639   ac_cv_lib_gcc___fixsfdi=yes
18640 else
18641   echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644         ac_cv_lib_gcc___fixsfdi=no
18645 fi
18646
18647 rm -f core conftest.err conftest.$ac_objext \
18648       conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18650 fi
18651 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18652 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18653 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18654
18655 cat >>confdefs.h <<\_ACEOF
18656 #define HAVE___FIXSFDI 1
18657 _ACEOF
18658
18659 fi
18660
18661   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18662 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18663 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666   ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lgcc  $LIBS"
18668 cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 /* Override any GCC internal prototype to avoid an error.
18676    Use char because int might match the return type of a GCC
18677    builtin and then its argument prototype would still apply.  */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 char __floatdidf ();
18682 int
18683 main ()
18684 {
18685 return __floatdidf ();
18686   ;
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697   (eval "$ac_link") 2>conftest.er1
18698   ac_status=$?
18699   grep -v '^ *+' conftest.er1 >conftest.err
18700   rm -f conftest.er1
18701   cat conftest.err >&5
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); } &&
18704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18705   { (case "(($ac_try" in
18706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707   *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710   (eval "$ac_try") 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; } &&
18714          { ac_try='test -s conftest$ac_exeext'
18715   { (case "(($ac_try" in
18716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717   *) ac_try_echo=$ac_try;;
18718 esac
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720   (eval "$ac_try") 2>&5
18721   ac_status=$?
18722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); }; }; then
18724   ac_cv_lib_gcc___floatdidf=yes
18725 else
18726   echo "$as_me: failed program was:" >&5
18727 sed 's/^/| /' conftest.$ac_ext >&5
18728
18729         ac_cv_lib_gcc___floatdidf=no
18730 fi
18731
18732 rm -f core conftest.err conftest.$ac_objext \
18733       conftest$ac_exeext conftest.$ac_ext
18734 LIBS=$ac_check_lib_save_LIBS
18735 fi
18736 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18737 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18738 if test $ac_cv_lib_gcc___floatdidf = yes; then
18739
18740 cat >>confdefs.h <<\_ACEOF
18741 #define HAVE___FLOATDIDF 1
18742 _ACEOF
18743
18744 fi
18745
18746   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18747 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18748 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18749   echo $ECHO_N "(cached) $ECHO_C" >&6
18750 else
18751   ac_check_lib_save_LIBS=$LIBS
18752 LIBS="-lgcc  $LIBS"
18753 cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759
18760 /* Override any GCC internal prototype to avoid an error.
18761    Use char because int might match the return type of a GCC
18762    builtin and then its argument prototype would still apply.  */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char __lshrdi3 ();
18767 int
18768 main ()
18769 {
18770 return __lshrdi3 ();
18771   ;
18772   return 0;
18773 }
18774 _ACEOF
18775 rm -f conftest.$ac_objext conftest$ac_exeext
18776 if { (ac_try="$ac_link"
18777 case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_link") 2>conftest.er1
18783   ac_status=$?
18784   grep -v '^ *+' conftest.er1 >conftest.err
18785   rm -f conftest.er1
18786   cat conftest.err >&5
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790   { (case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_try") 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; } &&
18799          { ac_try='test -s conftest$ac_exeext'
18800   { (case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805   (eval "$ac_try") 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; }; then
18809   ac_cv_lib_gcc___lshrdi3=yes
18810 else
18811   echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814         ac_cv_lib_gcc___lshrdi3=no
18815 fi
18816
18817 rm -f core conftest.err conftest.$ac_objext \
18818       conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18822 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18823 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18824
18825 cat >>confdefs.h <<\_ACEOF
18826 #define HAVE___LSHRDI3 1
18827 _ACEOF
18828
18829 fi
18830
18831   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18832 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18833 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18834   echo $ECHO_N "(cached) $ECHO_C" >&6
18835 else
18836   ac_check_lib_save_LIBS=$LIBS
18837 LIBS="-lgcc  $LIBS"
18838 cat >conftest.$ac_ext <<_ACEOF
18839 /* confdefs.h.  */
18840 _ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h.  */
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char __moddi3 ();
18852 int
18853 main ()
18854 {
18855 return __moddi3 ();
18856   ;
18857   return 0;
18858 }
18859 _ACEOF
18860 rm -f conftest.$ac_objext conftest$ac_exeext
18861 if { (ac_try="$ac_link"
18862 case "(($ac_try" in
18863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864   *) ac_try_echo=$ac_try;;
18865 esac
18866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867   (eval "$ac_link") 2>conftest.er1
18868   ac_status=$?
18869   grep -v '^ *+' conftest.er1 >conftest.err
18870   rm -f conftest.er1
18871   cat conftest.err >&5
18872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); } &&
18874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875   { (case "(($ac_try" in
18876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877   *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880   (eval "$ac_try") 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); }; } &&
18884          { ac_try='test -s conftest$ac_exeext'
18885   { (case "(($ac_try" in
18886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887   *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890   (eval "$ac_try") 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_gcc___moddi3=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899         ac_cv_lib_gcc___moddi3=no
18900 fi
18901
18902 rm -f core conftest.err conftest.$ac_objext \
18903       conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18905 fi
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18907 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18908 if test $ac_cv_lib_gcc___moddi3 = yes; then
18909
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE___MODDI3 1
18912 _ACEOF
18913
18914 fi
18915
18916   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18917 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18918 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lgcc  $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18924 /* confdefs.h.  */
18925 _ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h.  */
18929
18930 /* Override any GCC internal prototype to avoid an error.
18931    Use char because int might match the return type of a GCC
18932    builtin and then its argument prototype would still apply.  */
18933 #ifdef __cplusplus
18934 extern "C"
18935 #endif
18936 char __udivdi3 ();
18937 int
18938 main ()
18939 {
18940 return __udivdi3 ();
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } &&
18959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18960   { (case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_try") 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; } &&
18969          { ac_try='test -s conftest$ac_exeext'
18970   { (case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_try") 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; }; then
18979   ac_cv_lib_gcc___udivdi3=yes
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984         ac_cv_lib_gcc___udivdi3=no
18985 fi
18986
18987 rm -f core conftest.err conftest.$ac_objext \
18988       conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18990 fi
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18992 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18993 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18994
18995 cat >>confdefs.h <<\_ACEOF
18996 #define HAVE___UDIVDI3 1
18997 _ACEOF
18998
18999 fi
19000
19001   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19002 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19003 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19004   echo $ECHO_N "(cached) $ECHO_C" >&6
19005 else
19006   ac_check_lib_save_LIBS=$LIBS
19007 LIBS="-lgcc  $LIBS"
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015 /* Override any GCC internal prototype to avoid an error.
19016    Use char because int might match the return type of a GCC
19017    builtin and then its argument prototype would still apply.  */
19018 #ifdef __cplusplus
19019 extern "C"
19020 #endif
19021 char __umoddi3 ();
19022 int
19023 main ()
19024 {
19025 return __umoddi3 ();
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (ac_try="$ac_link"
19032 case "(($ac_try" in
19033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034   *) ac_try_echo=$ac_try;;
19035 esac
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037   (eval "$ac_link") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } &&
19044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19045   { (case "(($ac_try" in
19046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047   *) ac_try_echo=$ac_try;;
19048 esac
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050   (eval "$ac_try") 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; } &&
19054          { ac_try='test -s conftest$ac_exeext'
19055   { (case "(($ac_try" in
19056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057   *) ac_try_echo=$ac_try;;
19058 esac
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060   (eval "$ac_try") 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; }; then
19064   ac_cv_lib_gcc___umoddi3=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_cv_lib_gcc___umoddi3=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext \
19073       conftest$ac_exeext conftest.$ac_ext
19074 LIBS=$ac_check_lib_save_LIBS
19075 fi
19076 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19077 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19078 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19079
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE___UMODDI3 1
19082 _ACEOF
19083
19084 fi
19085
19086
19087   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19088 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_gcc___main+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lgcc  $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101 /* Override any GCC internal prototype to avoid an error.
19102    Use char because int might match the return type of a GCC
19103    builtin and then its argument prototype would still apply.  */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char __main ();
19108 int
19109 main ()
19110 {
19111 return __main ();
19112   ;
19113   return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120   *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123   (eval "$ac_link") 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19131   { (case "(($ac_try" in
19132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133   *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136   (eval "$ac_try") 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; } &&
19140          { ac_try='test -s conftest$ac_exeext'
19141   { (case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146   (eval "$ac_try") 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   ac_cv_lib_gcc___main=yes
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155         ac_cv_lib_gcc___main=no
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext \
19159       conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19161 fi
19162 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19163 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19164 if test $ac_cv_lib_gcc___main = yes; then
19165
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE___MAIN 1
19168 _ACEOF
19169
19170 fi
19171
19172   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19173 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19174 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19175   echo $ECHO_N "(cached) $ECHO_C" >&6
19176 else
19177   ac_check_lib_save_LIBS=$LIBS
19178 LIBS="-lgcc  $LIBS"
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h.  */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h.  */
19185
19186 /* Override any GCC internal prototype to avoid an error.
19187    Use char because int might match the return type of a GCC
19188    builtin and then its argument prototype would still apply.  */
19189 #ifdef __cplusplus
19190 extern "C"
19191 #endif
19192 char __cmpdi2 ();
19193 int
19194 main ()
19195 {
19196 return __cmpdi2 ();
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_link") 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } &&
19215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19216   { (case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_try") 2>&5
19222   ac_status=$?
19223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224   (exit $ac_status); }; } &&
19225          { ac_try='test -s conftest$ac_exeext'
19226   { (case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_try") 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; }; then
19235   ac_cv_lib_gcc___cmpdi2=yes
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240         ac_cv_lib_gcc___cmpdi2=no
19241 fi
19242
19243 rm -f core conftest.err conftest.$ac_objext \
19244       conftest$ac_exeext conftest.$ac_ext
19245 LIBS=$ac_check_lib_save_LIBS
19246 fi
19247 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19248 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19249 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19250
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE___CMPDI2 1
19253 _ACEOF
19254
19255 fi
19256
19257 fi
19258
19259 if test "$llvm_cv_os_type" = "MingW" ; then
19260   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19261 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19262   cat >conftest.$ac_ext <<_ACEOF
19263 #include <windows.h>
19264 #include <imagehlp.h>
19265 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19266 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } &&
19282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283   { (case "(($ac_try" in
19284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285   *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288   (eval "$ac_try") 2>&5
19289   ac_status=$?
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); }; } &&
19292          { ac_try='test -s conftest.$ac_objext'
19293   { (case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_try") 2>&5
19299   ac_status=$?
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); }; }; then
19302
19303   { echo "$as_me:$LINENO: result: yes" >&5
19304 echo "${ECHO_T}yes" >&6; }
19305   llvm_cv_win32_elmcb_pcstr="PCSTR"
19306
19307 else
19308   echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311
19312   { echo "$as_me:$LINENO: result: no" >&5
19313 echo "${ECHO_T}no" >&6; }
19314   llvm_cv_win32_elmcb_pcstr="PSTR"
19315
19316 fi
19317
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319
19320 cat >>confdefs.h <<_ACEOF
19321 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19322 _ACEOF
19323
19324 fi
19325
19326
19327 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19328 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19329 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_ext=cpp
19333 ac_cpp='$CXXCPP $CPPFLAGS'
19334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19337
19338    cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h.  */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h.  */
19344 #include <math.h>
19345 int
19346 main ()
19347 {
19348 float f; isnan(f);
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_compile") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } &&
19367          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19368   { (case "(($ac_try" in
19369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370   *) ac_try_echo=$ac_try;;
19371 esac
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373   (eval "$ac_try") 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); }; } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383   (eval "$ac_try") 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; }; then
19387   ac_cv_func_isnan_in_math_h=yes
19388 else
19389   echo "$as_me: failed program was:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19391
19392         ac_cv_func_isnan_in_math_h=no
19393 fi
19394
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396   ac_ext=c
19397 ac_cpp='$CPP $CPPFLAGS'
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19401
19402 fi
19403 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19404 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19405
19406
19407 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19408
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE_ISNAN_IN_MATH_H 1
19411 _ACEOF
19412
19413 fi
19414
19415 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19416 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19417 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19418   echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420   ac_ext=cpp
19421 ac_cpp='$CXXCPP $CPPFLAGS'
19422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19425
19426    cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432 #include <cmath>
19433 int
19434 main ()
19435 {
19436 float f; isnan(f);
19437   ;
19438   return 0;
19439 }
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (ac_try="$ac_compile"
19443 case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_compile") 2>conftest.er1
19449   ac_status=$?
19450   grep -v '^ *+' conftest.er1 >conftest.err
19451   rm -f conftest.er1
19452   cat conftest.err >&5
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); } &&
19455          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19456   { (case "(($ac_try" in
19457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458   *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461   (eval "$ac_try") 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; } &&
19465          { ac_try='test -s conftest.$ac_objext'
19466   { (case "(($ac_try" in
19467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468   *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471   (eval "$ac_try") 2>&5
19472   ac_status=$?
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); }; }; then
19475   ac_cv_func_isnan_in_cmath=yes
19476 else
19477   echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19479
19480         ac_cv_func_isnan_in_cmath=no
19481 fi
19482
19483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484   ac_ext=c
19485 ac_cpp='$CPP $CPPFLAGS'
19486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19489
19490 fi
19491 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19492 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19493
19494 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19495
19496 cat >>confdefs.h <<\_ACEOF
19497 #define HAVE_ISNAN_IN_CMATH 1
19498 _ACEOF
19499
19500 fi
19501
19502 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19503 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19504 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   ac_ext=cpp
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513    cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <cmath>
19520 int
19521 main ()
19522 {
19523 float f; std::isnan(f);
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_compile") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } &&
19542          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19543   { (case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_try") 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (case "(($ac_try" in
19554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555   *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558   (eval "$ac_try") 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); }; }; then
19562   ac_cv_func_std_isnan_in_cmath=yes
19563 else
19564   echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567         ac_cv_func_std_isnan_in_cmath=no
19568 fi
19569
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571   ac_ext=c
19572 ac_cpp='$CPP $CPPFLAGS'
19573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19576
19577 fi
19578 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19579 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19580
19581 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_STD_ISNAN_IN_CMATH 1
19585 _ACEOF
19586
19587 fi
19588
19589
19590 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19591 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19593   echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595   ac_ext=cpp
19596 ac_cpp='$CXXCPP $CPPFLAGS'
19597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19600
19601    cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 #include <math.h>
19608 int
19609 main ()
19610 {
19611 float f; isinf(f);
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623   (eval "$ac_compile") 2>conftest.er1
19624   ac_status=$?
19625   grep -v '^ *+' conftest.er1 >conftest.err
19626   rm -f conftest.er1
19627   cat conftest.err >&5
19628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629   (exit $ac_status); } &&
19630          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19631   { (case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636   (eval "$ac_try") 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest.$ac_objext'
19641   { (case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646   (eval "$ac_try") 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_func_isinf_in_math_h=yes
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         ac_cv_func_isinf_in_math_h=no
19656 fi
19657
19658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19659   ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19664
19665 fi
19666 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19667 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19668
19669 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_ISINF_IN_MATH_H 1
19673 _ACEOF
19674
19675 fi
19676
19677 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19678 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19679 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19680   echo $ECHO_N "(cached) $ECHO_C" >&6
19681 else
19682   ac_ext=cpp
19683 ac_cpp='$CXXCPP $CPPFLAGS'
19684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19687
19688    cat >conftest.$ac_ext <<_ACEOF
19689 /* confdefs.h.  */
19690 _ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h.  */
19694 #include <cmath>
19695 int
19696 main ()
19697 {
19698 float f; isinf(f);
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext
19704 if { (ac_try="$ac_compile"
19705 case "(($ac_try" in
19706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707   *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710   (eval "$ac_compile") 2>conftest.er1
19711   ac_status=$?
19712   grep -v '^ *+' conftest.er1 >conftest.err
19713   rm -f conftest.er1
19714   cat conftest.err >&5
19715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716   (exit $ac_status); } &&
19717          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19718   { (case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_try") 2>&5
19724   ac_status=$?
19725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726   (exit $ac_status); }; } &&
19727          { ac_try='test -s conftest.$ac_objext'
19728   { (case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733   (eval "$ac_try") 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_func_isinf_in_cmath=yes
19738 else
19739   echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742         ac_cv_func_isinf_in_cmath=no
19743 fi
19744
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19746   ac_ext=c
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752 fi
19753 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19754 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19755
19756 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_ISINF_IN_CMATH 1
19760 _ACEOF
19761
19762 fi
19763
19764 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19765 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19766 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   ac_ext=cpp
19770 ac_cpp='$CXXCPP $CPPFLAGS'
19771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19774
19775    cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 #include <cmath>
19782 int
19783 main ()
19784 {
19785 float f; std::isinf(f)}
19786   ;
19787   return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (ac_try="$ac_compile"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_compile") 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19805   { (case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810   (eval "$ac_try") 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; } &&
19814          { ac_try='test -s conftest.$ac_objext'
19815   { (case "(($ac_try" in
19816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817   *) ac_try_echo=$ac_try;;
19818 esac
19819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820   (eval "$ac_try") 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; }; then
19824   ac_cv_func_std_isinf_in_cmath=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829         ac_cv_func_std_isinf_in_cmath=no
19830 fi
19831
19832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833   ac_ext=c
19834 ac_cpp='$CPP $CPPFLAGS'
19835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19838
19839 fi
19840 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19841 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19842
19843 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19844
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_STD_ISINF_IN_CMATH 1
19847 _ACEOF
19848
19849 fi
19850
19851 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19852 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19853 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19854   echo $ECHO_N "(cached) $ECHO_C" >&6
19855 else
19856   ac_ext=cpp
19857 ac_cpp='$CXXCPP $CPPFLAGS'
19858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19861
19862    cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h.  */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h.  */
19868 #include <ieeefp.h>
19869 int
19870 main ()
19871 {
19872 float f; finite(f);
19873   ;
19874   return 0;
19875 }
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_compile") 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } &&
19891          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19892   { (case "(($ac_try" in
19893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894   *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897   (eval "$ac_try") 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; } &&
19901          { ac_try='test -s conftest.$ac_objext'
19902   { (case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907   (eval "$ac_try") 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; }; then
19911   ac_cv_func_finite_in_ieeefp_h=yes
19912 else
19913   echo "$as_me: failed program was:" >&5
19914 sed 's/^/| /' conftest.$ac_ext >&5
19915
19916         ac_cv_func_finite_in_ieeefp_h=no
19917 fi
19918
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19920   ac_ext=c
19921 ac_cpp='$CPP $CPPFLAGS'
19922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19925
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19928 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19929
19930 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_FINITE_IN_IEEEFP_H 1
19934 _ACEOF
19935
19936 fi
19937
19938
19939
19940 if test "$llvm_cv_platform_type" = "Unix" ; then
19941
19942
19943 for ac_header in stdlib.h unistd.h
19944 do
19945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19947   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 fi
19952 ac_res=`eval echo '${'$as_ac_Header'}'`
19953                { echo "$as_me:$LINENO: result: $ac_res" >&5
19954 echo "${ECHO_T}$ac_res" >&6; }
19955 else
19956   # Is the header compilable?
19957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19959 cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 $ac_includes_default
19966 #include <$ac_header>
19967 _ACEOF
19968 rm -f conftest.$ac_objext
19969 if { (ac_try="$ac_compile"
19970 case "(($ac_try" in
19971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972   *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975   (eval "$ac_compile") 2>conftest.er1
19976   ac_status=$?
19977   grep -v '^ *+' conftest.er1 >conftest.err
19978   rm -f conftest.er1
19979   cat conftest.err >&5
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); } &&
19982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19983   { (case "(($ac_try" in
19984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985   *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988   (eval "$ac_try") 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; } &&
19992          { ac_try='test -s conftest.$ac_objext'
19993   { (case "(($ac_try" in
19994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995   *) ac_try_echo=$ac_try;;
19996 esac
19997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19998   (eval "$ac_try") 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; }; then
20002   ac_header_compiler=yes
20003 else
20004   echo "$as_me: failed program was:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20006
20007         ac_header_compiler=no
20008 fi
20009
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20011 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20012 echo "${ECHO_T}$ac_header_compiler" >&6; }
20013
20014 # Is the header present?
20015 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h.  */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h.  */
20023 #include <$ac_header>
20024 _ACEOF
20025 if { (ac_try="$ac_cpp conftest.$ac_ext"
20026 case "(($ac_try" in
20027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028   *) ac_try_echo=$ac_try;;
20029 esac
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20032   ac_status=$?
20033   grep -v '^ *+' conftest.er1 >conftest.err
20034   rm -f conftest.er1
20035   cat conftest.err >&5
20036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037   (exit $ac_status); } >/dev/null; then
20038   if test -s conftest.err; then
20039     ac_cpp_err=$ac_c_preproc_warn_flag
20040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20041   else
20042     ac_cpp_err=
20043   fi
20044 else
20045   ac_cpp_err=yes
20046 fi
20047 if test -z "$ac_cpp_err"; then
20048   ac_header_preproc=yes
20049 else
20050   echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053   ac_header_preproc=no
20054 fi
20055
20056 rm -f conftest.err conftest.$ac_ext
20057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058 echo "${ECHO_T}$ac_header_preproc" >&6; }
20059
20060 # So?  What about this header?
20061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20062   yes:no: )
20063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20067     ac_header_preproc=yes
20068     ;;
20069   no:yes:* )
20070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20082     ( cat <<\_ASBOX
20083 ## ------------------------------------ ##
20084 ## Report this to http://llvm.org/bugs/ ##
20085 ## ------------------------------------ ##
20086 _ASBOX
20087      ) | sed "s/^/$as_me: WARNING:     /" >&2
20088     ;;
20089 esac
20090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20093   echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095   eval "$as_ac_Header=\$ac_header_preproc"
20096 fi
20097 ac_res=`eval echo '${'$as_ac_Header'}'`
20098                { echo "$as_me:$LINENO: result: $ac_res" >&5
20099 echo "${ECHO_T}$ac_res" >&6; }
20100
20101 fi
20102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20103   cat >>confdefs.h <<_ACEOF
20104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20105 _ACEOF
20106
20107 fi
20108
20109 done
20110
20111
20112 for ac_func in getpagesize
20113 do
20114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120   cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20128 #define $ac_func innocuous_$ac_func
20129
20130 /* System header to define __stub macros and hopefully few prototypes,
20131     which can conflict with char $ac_func (); below.
20132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20133     <limits.h> exists even on freestanding compilers.  */
20134
20135 #ifdef __STDC__
20136 # include <limits.h>
20137 #else
20138 # include <assert.h>
20139 #endif
20140
20141 #undef $ac_func
20142
20143 /* Override any GCC internal prototype to avoid an error.
20144    Use char because int might match the return type of a GCC
20145    builtin and then its argument prototype would still apply.  */
20146 #ifdef __cplusplus
20147 extern "C"
20148 #endif
20149 char $ac_func ();
20150 /* The GNU C library defines this for functions which it implements
20151     to always fail with ENOSYS.  Some functions are actually named
20152     something starting with __ and the normal name is an alias.  */
20153 #if defined __stub_$ac_func || defined __stub___$ac_func
20154 choke me
20155 #endif
20156
20157 int
20158 main ()
20159 {
20160 return $ac_func ();
20161   ;
20162   return 0;
20163 }
20164 _ACEOF
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169   *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172   (eval "$ac_link") 2>conftest.er1
20173   ac_status=$?
20174   grep -v '^ *+' conftest.er1 >conftest.err
20175   rm -f conftest.er1
20176   cat conftest.err >&5
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); } &&
20179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20180   { (case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_try") 2>&5
20186   ac_status=$?
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); }; } &&
20189          { ac_try='test -s conftest$ac_exeext'
20190   { (case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_try") 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; }; then
20199   eval "$as_ac_var=yes"
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         eval "$as_ac_var=no"
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext \
20208       conftest$ac_exeext conftest.$ac_ext
20209 fi
20210 ac_res=`eval echo '${'$as_ac_var'}'`
20211                { echo "$as_me:$LINENO: result: $ac_res" >&5
20212 echo "${ECHO_T}$ac_res" >&6; }
20213 if test `eval echo '${'$as_ac_var'}'` = yes; then
20214   cat >>confdefs.h <<_ACEOF
20215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20216 _ACEOF
20217
20218 fi
20219 done
20220
20221 { echo "$as_me:$LINENO: checking for working mmap" >&5
20222 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20223 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20224   echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226   if test "$cross_compiling" = yes; then
20227   ac_cv_func_mmap_fixed_mapped=no
20228 else
20229   cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h.  */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h.  */
20235 $ac_includes_default
20236 /* malloc might have been renamed as rpl_malloc. */
20237 #undef malloc
20238
20239 /* Thanks to Mike Haertel and Jim Avera for this test.
20240    Here is a matrix of mmap possibilities:
20241         mmap private not fixed
20242         mmap private fixed at somewhere currently unmapped
20243         mmap private fixed at somewhere already mapped
20244         mmap shared not fixed
20245         mmap shared fixed at somewhere currently unmapped
20246         mmap shared fixed at somewhere already mapped
20247    For private mappings, we should verify that changes cannot be read()
20248    back from the file, nor mmap's back from the file at a different
20249    address.  (There have been systems where private was not correctly
20250    implemented like the infamous i386 svr4.0, and systems where the
20251    VM page cache was not coherent with the file system buffer cache
20252    like early versions of FreeBSD and possibly contemporary NetBSD.)
20253    For shared mappings, we should conversely verify that changes get
20254    propagated back to all the places they're supposed to be.
20255
20256    Grep wants private fixed already mapped.
20257    The main things grep needs to know about mmap are:
20258    * does it exist and is it safe to write into the mmap'd area
20259    * how to use it (BSD variants)  */
20260
20261 #include <fcntl.h>
20262 #include <sys/mman.h>
20263
20264 #if !STDC_HEADERS && !HAVE_STDLIB_H
20265 char *malloc ();
20266 #endif
20267
20268 /* This mess was copied from the GNU getpagesize.h.  */
20269 #if !HAVE_GETPAGESIZE
20270 /* Assume that all systems that can run configure have sys/param.h.  */
20271 # if !HAVE_SYS_PARAM_H
20272 #  define HAVE_SYS_PARAM_H 1
20273 # endif
20274
20275 # ifdef _SC_PAGESIZE
20276 #  define getpagesize() sysconf(_SC_PAGESIZE)
20277 # else /* no _SC_PAGESIZE */
20278 #  if HAVE_SYS_PARAM_H
20279 #   include <sys/param.h>
20280 #   ifdef EXEC_PAGESIZE
20281 #    define getpagesize() EXEC_PAGESIZE
20282 #   else /* no EXEC_PAGESIZE */
20283 #    ifdef NBPG
20284 #     define getpagesize() NBPG * CLSIZE
20285 #     ifndef CLSIZE
20286 #      define CLSIZE 1
20287 #     endif /* no CLSIZE */
20288 #    else /* no NBPG */
20289 #     ifdef NBPC
20290 #      define getpagesize() NBPC
20291 #     else /* no NBPC */
20292 #      ifdef PAGESIZE
20293 #       define getpagesize() PAGESIZE
20294 #      endif /* PAGESIZE */
20295 #     endif /* no NBPC */
20296 #    endif /* no NBPG */
20297 #   endif /* no EXEC_PAGESIZE */
20298 #  else /* no HAVE_SYS_PARAM_H */
20299 #   define getpagesize() 8192   /* punt totally */
20300 #  endif /* no HAVE_SYS_PARAM_H */
20301 # endif /* no _SC_PAGESIZE */
20302
20303 #endif /* no HAVE_GETPAGESIZE */
20304
20305 int
20306 main ()
20307 {
20308   char *data, *data2, *data3;
20309   int i, pagesize;
20310   int fd;
20311
20312   pagesize = getpagesize ();
20313
20314   /* First, make a file with some known garbage in it. */
20315   data = (char *) malloc (pagesize);
20316   if (!data)
20317     return 1;
20318   for (i = 0; i < pagesize; ++i)
20319     *(data + i) = rand ();
20320   umask (0);
20321   fd = creat ("conftest.mmap", 0600);
20322   if (fd < 0)
20323     return 1;
20324   if (write (fd, data, pagesize) != pagesize)
20325     return 1;
20326   close (fd);
20327
20328   /* Next, try to mmap the file at a fixed address which already has
20329      something else allocated at it.  If we can, also make sure that
20330      we see the same garbage.  */
20331   fd = open ("conftest.mmap", O_RDWR);
20332   if (fd < 0)
20333     return 1;
20334   data2 = (char *) malloc (2 * pagesize);
20335   if (!data2)
20336     return 1;
20337   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20338   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20339                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20340     return 1;
20341   for (i = 0; i < pagesize; ++i)
20342     if (*(data + i) != *(data2 + i))
20343       return 1;
20344
20345   /* Finally, make sure that changes to the mapped area do not
20346      percolate back to the file as seen by read().  (This is a bug on
20347      some variants of i386 svr4.0.)  */
20348   for (i = 0; i < pagesize; ++i)
20349     *(data2 + i) = *(data2 + i) + 1;
20350   data3 = (char *) malloc (pagesize);
20351   if (!data3)
20352     return 1;
20353   if (read (fd, data3, pagesize) != pagesize)
20354     return 1;
20355   for (i = 0; i < pagesize; ++i)
20356     if (*(data + i) != *(data3 + i))
20357       return 1;
20358   close (fd);
20359   return 0;
20360 }
20361 _ACEOF
20362 rm -f conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_link") 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_func_mmap_fixed_mapped=yes
20383 else
20384   echo "$as_me: program exited with status $ac_status" >&5
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 ( exit $ac_status )
20389 ac_cv_func_mmap_fixed_mapped=no
20390 fi
20391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20392 fi
20393
20394
20395 fi
20396 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20397 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE_MMAP 1
20402 _ACEOF
20403
20404 fi
20405 rm -f conftest.mmap
20406
20407   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20408 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20409 if test "${ac_cv_func_mmap_file+set}" = set; then
20410   echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20412    ac_ext=c
20413 ac_cpp='$CPP $CPPFLAGS'
20414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20417
20418   if test "$cross_compiling" = yes; then
20419   ac_cv_func_mmap_file=no
20420 else
20421   cat >conftest.$ac_ext <<_ACEOF
20422
20423     /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428
20429 #include <sys/types.h>
20430 #include <sys/mman.h>
20431 #include <fcntl.h>
20432
20433 int
20434 main ()
20435 {
20436
20437   int fd;
20438   fd = creat ("foo",0777);
20439   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20440   unlink ("foo");
20441   return (fd != (int) MAP_FAILED);
20442   ;
20443   return 0;
20444 }
20445 _ACEOF
20446 rm -f conftest$ac_exeext
20447 if { (ac_try="$ac_link"
20448 case "(($ac_try" in
20449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450   *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453   (eval "$ac_link") 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20457   { (case "(($ac_try" in
20458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459   *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462   (eval "$ac_try") 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; }; then
20466   ac_cv_func_mmap_file=yes
20467 else
20468   echo "$as_me: program exited with status $ac_status" >&5
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20471
20472 ( exit $ac_status )
20473 ac_cv_func_mmap_file=no
20474 fi
20475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476 fi
20477
20478
20479   ac_ext=c
20480 ac_cpp='$CPP $CPPFLAGS'
20481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20484
20485
20486 fi
20487 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20488 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20489 if test "$ac_cv_func_mmap_file" = yes; then
20490
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_MMAP_FILE
20493 _ACEOF
20494
20495    MMAP_FILE=yes
20496
20497 fi
20498
20499   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20500 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20501 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   if test "$llvm_cv_os_type" = "Interix" ; then
20505    ac_cv_need_dev_zero_for_mmap=yes
20506  else
20507    ac_cv_need_dev_zero_for_mmap=no
20508  fi
20509
20510 fi
20511 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20512 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20513 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define NEED_DEV_ZERO_FOR_MMAP 1
20517 _ACEOF
20518
20519 fi
20520
20521   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20522   then
20523     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20524 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20525   fi
20526   if test "$ac_cv_func_mmap_file" = "no"
20527   then
20528     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20529 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20530   fi
20531 fi
20532
20533 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20534 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20535 ac_ext=cpp
20536 ac_cpp='$CXXCPP $CPPFLAGS'
20537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20540
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547 int main() {
20548         volatile unsigned long val = 1;
20549         __sync_synchronize();
20550         __sync_val_compare_and_swap(&val, 1, 0);
20551         __sync_add_and_fetch(&val, 1);
20552         __sync_sub_and_fetch(&val, 1);
20553         return 0;
20554       }
20555
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (ac_try="$ac_link"
20559 case "(($ac_try" in
20560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561   *) ac_try_echo=$ac_try;;
20562 esac
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564   (eval "$ac_link") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } &&
20571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20572   { (case "(($ac_try" in
20573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574   *) ac_try_echo=$ac_try;;
20575 esac
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577   (eval "$ac_try") 2>&5
20578   ac_status=$?
20579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); }; } &&
20581          { ac_try='test -s conftest$ac_exeext'
20582   { (case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_try") 2>&5
20588   ac_status=$?
20589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590   (exit $ac_status); }; }; then
20591   ac_ext=c
20592 ac_cpp='$CPP $CPPFLAGS'
20593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20596
20597   { echo "$as_me:$LINENO: result: yes" >&5
20598 echo "${ECHO_T}yes" >&6; }
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define LLVM_HAS_ATOMICS 1
20602 _ACEOF
20603
20604 else
20605   echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20607
20608         { echo "$as_me:$LINENO: result: no" >&5
20609 echo "${ECHO_T}no" >&6; }
20610
20611 cat >>confdefs.h <<\_ACEOF
20612 #define LLVM_HAS_ATOMICS 0
20613 _ACEOF
20614
20615   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20616 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20617 fi
20618
20619 rm -f core conftest.err conftest.$ac_objext \
20620       conftest$ac_exeext conftest.$ac_ext
20621
20622
20623 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20624   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20625 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20626 if test "${llvm_cv_linux_mixed+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629    ac_ext=c
20630 ac_cpp='$CPP $CPPFLAGS'
20631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20634
20635   cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641 #ifndef __x86_64__
20642        error: Not x86-64 even if uname says so!
20643       #endif
20644
20645 int
20646 main ()
20647 {
20648
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (ac_try="$ac_compile"
20655 case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_compile") 2>conftest.er1
20661   ac_status=$?
20662   grep -v '^ *+' conftest.er1 >conftest.err
20663   rm -f conftest.er1
20664   cat conftest.err >&5
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); } &&
20667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20668   { (case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_try") 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; } &&
20677          { ac_try='test -s conftest.$ac_objext'
20678   { (case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_try") 2>&5
20684   ac_status=$?
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); }; }; then
20687   llvm_cv_linux_mixed=no
20688 else
20689   echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692         llvm_cv_linux_mixed=yes
20693 fi
20694
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696   ac_ext=c
20697 ac_cpp='$CPP $CPPFLAGS'
20698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20701
20702
20703 fi
20704 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20705 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20706
20707   if test "$llvm_cv_linux_mixed" = "yes"; then
20708     llvm_cv_target_arch="x86"
20709     ARCH="x86"
20710   fi
20711 fi
20712
20713
20714 for ac_func in __dso_handle
20715 do
20716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20720   echo $ECHO_N "(cached) $ECHO_C" >&6
20721 else
20722   cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20730 #define $ac_func innocuous_$ac_func
20731
20732 /* System header to define __stub macros and hopefully few prototypes,
20733     which can conflict with char $ac_func (); below.
20734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20735     <limits.h> exists even on freestanding compilers.  */
20736
20737 #ifdef __STDC__
20738 # include <limits.h>
20739 #else
20740 # include <assert.h>
20741 #endif
20742
20743 #undef $ac_func
20744
20745 /* Override any GCC internal prototype to avoid an error.
20746    Use char because int might match the return type of a GCC
20747    builtin and then its argument prototype would still apply.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 char $ac_func ();
20752 /* The GNU C library defines this for functions which it implements
20753     to always fail with ENOSYS.  Some functions are actually named
20754     something starting with __ and the normal name is an alias.  */
20755 #if defined __stub_$ac_func || defined __stub___$ac_func
20756 choke me
20757 #endif
20758
20759 int
20760 main ()
20761 {
20762 return $ac_func ();
20763   ;
20764   return 0;
20765 }
20766 _ACEOF
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_link") 2>conftest.er1
20775   ac_status=$?
20776   grep -v '^ *+' conftest.er1 >conftest.err
20777   rm -f conftest.er1
20778   cat conftest.err >&5
20779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); } &&
20781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20782   { (case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_try") 2>&5
20788   ac_status=$?
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); }; } &&
20791          { ac_try='test -s conftest$ac_exeext'
20792   { (case "(($ac_try" in
20793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794   *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797   (eval "$ac_try") 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; }; then
20801   eval "$as_ac_var=yes"
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806         eval "$as_ac_var=no"
20807 fi
20808
20809 rm -f core conftest.err conftest.$ac_objext \
20810       conftest$ac_exeext conftest.$ac_ext
20811 fi
20812 ac_res=`eval echo '${'$as_ac_var'}'`
20813                { echo "$as_me:$LINENO: result: $ac_res" >&5
20814 echo "${ECHO_T}$ac_res" >&6; }
20815 if test `eval echo '${'$as_ac_var'}'` = yes; then
20816   cat >>confdefs.h <<_ACEOF
20817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818 _ACEOF
20819
20820 fi
20821 done
20822
20823
20824 SHLIBEXT=$libltdl_cv_shlibext
20825
20826
20827 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20828
20829
20830 if test "${prefix}" = "NONE" ; then
20831   prefix="/usr/local"
20832 fi
20833 eval LLVM_PREFIX="${prefix}";
20834 eval LLVM_BINDIR="${prefix}/bin";
20835 eval LLVM_LIBDIR="${prefix}/lib";
20836 eval LLVM_DATADIR="${prefix}/share/llvm";
20837 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20838 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20839 eval LLVM_INCLUDEDIR="${prefix}/include";
20840 eval LLVM_INFODIR="${prefix}/info";
20841 eval LLVM_MANDIR="${prefix}/man";
20842 LLVM_CONFIGTIME=`date`
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855 cat >>confdefs.h <<_ACEOF
20856 #define LLVM_PREFIX "$LLVM_PREFIX"
20857 _ACEOF
20858
20859
20860 cat >>confdefs.h <<_ACEOF
20861 #define LLVM_BINDIR "$LLVM_BINDIR"
20862 _ACEOF
20863
20864
20865 cat >>confdefs.h <<_ACEOF
20866 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20867 _ACEOF
20868
20869
20870 cat >>confdefs.h <<_ACEOF
20871 #define LLVM_DATADIR "$LLVM_DATADIR"
20872 _ACEOF
20873
20874
20875 cat >>confdefs.h <<_ACEOF
20876 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20877 _ACEOF
20878
20879
20880 cat >>confdefs.h <<_ACEOF
20881 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20882 _ACEOF
20883
20884
20885 cat >>confdefs.h <<_ACEOF
20886 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20887 _ACEOF
20888
20889
20890 cat >>confdefs.h <<_ACEOF
20891 #define LLVM_INFODIR "$LLVM_INFODIR"
20892 _ACEOF
20893
20894
20895 cat >>confdefs.h <<_ACEOF
20896 #define LLVM_MANDIR "$LLVM_MANDIR"
20897 _ACEOF
20898
20899
20900 cat >>confdefs.h <<_ACEOF
20901 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20902 _ACEOF
20903
20904
20905 cat >>confdefs.h <<_ACEOF
20906 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20907 _ACEOF
20908
20909
20910 if test "$BINDINGS_TO_BUILD" = auto ; then
20911   BINDINGS_TO_BUILD=""
20912   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20913     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20914   fi
20915 fi
20916 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20917
20918
20919 ALL_BINDINGS=ocaml
20920
20921
20922 binding_prereqs_failed=0
20923 for a_binding in $BINDINGS_TO_BUILD ; do
20924   case "$a_binding" in
20925   ocaml)
20926     if test "x$OCAMLC" = x ; then
20927       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20928 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20929       binding_prereqs_failed=1
20930     fi
20931     if test "x$OCAMLDEP" = x ; then
20932       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20933 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20934       binding_prereqs_failed=1
20935     fi
20936     if test "x$OCAMLOPT" = x ; then
20937       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20938 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20939           fi
20940     if test "x$with_ocaml_libdir" != xauto ; then
20941       OCAML_LIBDIR=$with_ocaml_libdir
20942
20943     else
20944       ocaml_stdlib="`"$OCAMLC" -where`"
20945       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20946       then
20947         # ocaml stdlib is beneath our prefix; use stdlib
20948         OCAML_LIBDIR=$ocaml_stdlib
20949
20950       else
20951         # ocaml stdlib is outside our prefix; use libdir/ocaml
20952         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20953
20954       fi
20955     fi
20956     ;;
20957   esac
20958 done
20959 if test "$binding_prereqs_failed" = 1 ; then
20960   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20961 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20962    { (exit 1); exit 1; }; }
20963 fi
20964
20965 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20966 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20967 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20968   echo $ECHO_N "(cached) $ECHO_C" >&6
20969 else
20970    ac_ext=cpp
20971 ac_cpp='$CXXCPP $CPPFLAGS'
20972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975
20976   oldcxxflags="$CXXFLAGS"
20977   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20985 int
20986 main ()
20987 {
20988 X<int>().f();
20989   ;
20990   return 0;
20991 }
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_compile") 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } &&
21007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21008   { (case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_try") 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; } &&
21017          { ac_try='test -s conftest.$ac_objext'
21018   { (case "(($ac_try" in
21019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020   *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023   (eval "$ac_try") 2>&5
21024   ac_status=$?
21025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027   llvm_cv_cxx_visibility_inlines_hidden=yes
21028 else
21029   echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032         llvm_cv_cxx_visibility_inlines_hidden=no
21033 fi
21034
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036   CXXFLAGS="$oldcxxflags"
21037   ac_ext=c
21038 ac_cpp='$CPP $CPPFLAGS'
21039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21042
21043
21044 fi
21045 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21046 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21047 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21048   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21049
21050 else
21051   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21052
21053 fi
21054
21055
21056 if test "$llvm_cv_link_use_r" = "yes" ; then
21057   RPATH="-Wl,-R"
21058 else
21059   RPATH="-Wl,-rpath"
21060 fi
21061
21062
21063 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21064   RDYNAMIC="-Wl,-export-dynamic"
21065 else
21066   RDYNAMIC=""
21067 fi
21068
21069
21070
21071 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21072
21073
21074
21075
21076
21077
21078 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21079
21080 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21081
21082 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21083
21084 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21085
21086 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21087
21088
21089 ac_config_files="$ac_config_files Makefile.config"
21090
21091
21092 ac_config_files="$ac_config_files llvm.spec"
21093
21094
21095 ac_config_files="$ac_config_files docs/doxygen.cfg"
21096
21097 if test -f ${srcdir}/tools/clang/README.txt; then
21098   ac_config_headers="$ac_config_headers tools/clang/include/clang/Config/config.h"
21099   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21100
21101 fi
21102
21103 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21104
21105
21106 ac_config_commands="$ac_config_commands setup"
21107
21108 ac_config_commands="$ac_config_commands Makefile"
21109
21110
21111 ac_config_commands="$ac_config_commands Makefile.common"
21112
21113
21114 ac_config_commands="$ac_config_commands examples/Makefile"
21115
21116
21117 ac_config_commands="$ac_config_commands lib/Makefile"
21118
21119
21120 ac_config_commands="$ac_config_commands runtime/Makefile"
21121
21122
21123 ac_config_commands="$ac_config_commands test/Makefile"
21124
21125
21126 ac_config_commands="$ac_config_commands test/Makefile.tests"
21127
21128
21129 ac_config_commands="$ac_config_commands unittests/Makefile"
21130
21131
21132 ac_config_commands="$ac_config_commands tools/Makefile"
21133
21134
21135 ac_config_commands="$ac_config_commands utils/Makefile"
21136
21137
21138 ac_config_commands="$ac_config_commands projects/Makefile"
21139
21140
21141 ac_config_commands="$ac_config_commands bindings/Makefile"
21142
21143
21144 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21145
21146
21147
21148 cat >confcache <<\_ACEOF
21149 # This file is a shell script that caches the results of configure
21150 # tests run on this system so they can be shared between configure
21151 # scripts and configure runs, see configure's option --config-cache.
21152 # It is not useful on other systems.  If it contains results you don't
21153 # want to keep, you may remove or edit it.
21154 #
21155 # config.status only pays attention to the cache file if you give it
21156 # the --recheck option to rerun configure.
21157 #
21158 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21159 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21160 # following values.
21161
21162 _ACEOF
21163
21164 # The following way of writing the cache mishandles newlines in values,
21165 # but we know of no workaround that is simple, portable, and efficient.
21166 # So, we kill variables containing newlines.
21167 # Ultrix sh set writes to stderr and can't be redirected directly,
21168 # and sets the high bit in the cache file unless we assign to the vars.
21169 (
21170   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21171     eval ac_val=\$$ac_var
21172     case $ac_val in #(
21173     *${as_nl}*)
21174       case $ac_var in #(
21175       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21176 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21177       esac
21178       case $ac_var in #(
21179       _ | IFS | as_nl) ;; #(
21180       *) $as_unset $ac_var ;;
21181       esac ;;
21182     esac
21183   done
21184
21185   (set) 2>&1 |
21186     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21187     *${as_nl}ac_space=\ *)
21188       # `set' does not quote correctly, so add quotes (double-quote
21189       # substitution turns \\\\ into \\, and sed turns \\ into \).
21190       sed -n \
21191         "s/'/'\\\\''/g;
21192           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21193       ;; #(
21194     *)
21195       # `set' quotes correctly as required by POSIX, so do not add quotes.
21196       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21197       ;;
21198     esac |
21199     sort
21200 ) |
21201   sed '
21202      /^ac_cv_env_/b end
21203      t clear
21204      :clear
21205      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21206      t end
21207      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21208      :end' >>confcache
21209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21210   if test -w "$cache_file"; then
21211     test "x$cache_file" != "x/dev/null" &&
21212       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21213 echo "$as_me: updating cache $cache_file" >&6;}
21214     cat confcache >$cache_file
21215   else
21216     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21217 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21218   fi
21219 fi
21220 rm -f confcache
21221
21222 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21223 # Let make expand exec_prefix.
21224 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21225
21226 DEFS=-DHAVE_CONFIG_H
21227
21228 ac_libobjs=
21229 ac_ltlibobjs=
21230 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21231   # 1. Remove the extension, and $U if already installed.
21232   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21233   ac_i=`echo "$ac_i" | sed "$ac_script"`
21234   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21235   #    will be set to the directory where LIBOBJS objects are built.
21236   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21237   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21238 done
21239 LIBOBJS=$ac_libobjs
21240
21241 LTLIBOBJS=$ac_ltlibobjs
21242
21243
21244 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21245   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21246 Usually this means the macro was only invoked conditionally." >&5
21247 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21248 Usually this means the macro was only invoked conditionally." >&2;}
21249    { (exit 1); exit 1; }; }
21250 fi
21251 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21252   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21253 Usually this means the macro was only invoked conditionally." >&5
21254 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21255 Usually this means the macro was only invoked conditionally." >&2;}
21256    { (exit 1); exit 1; }; }
21257 fi
21258
21259 : ${CONFIG_STATUS=./config.status}
21260 ac_clean_files_save=$ac_clean_files
21261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21264 cat >$CONFIG_STATUS <<_ACEOF
21265 #! $SHELL
21266 # Generated by $as_me.
21267 # Run this file to recreate the current configuration.
21268 # Compiler output produced by configure, useful for debugging
21269 # configure, is in config.log if it exists.
21270
21271 debug=false
21272 ac_cs_recheck=false
21273 ac_cs_silent=false
21274 SHELL=\${CONFIG_SHELL-$SHELL}
21275 _ACEOF
21276
21277 cat >>$CONFIG_STATUS <<\_ACEOF
21278 ## --------------------- ##
21279 ## M4sh Initialization.  ##
21280 ## --------------------- ##
21281
21282 # Be Bourne compatible
21283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21284   emulate sh
21285   NULLCMD=:
21286   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21287   # is contrary to our usage.  Disable this feature.
21288   alias -g '${1+"$@"}'='"$@"'
21289   setopt NO_GLOB_SUBST
21290 else
21291   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21292 fi
21293 BIN_SH=xpg4; export BIN_SH # for Tru64
21294 DUALCASE=1; export DUALCASE # for MKS sh
21295
21296
21297 # PATH needs CR
21298 # Avoid depending upon Character Ranges.
21299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21302 as_cr_digits='0123456789'
21303 as_cr_alnum=$as_cr_Letters$as_cr_digits
21304
21305 # The user is always right.
21306 if test "${PATH_SEPARATOR+set}" != set; then
21307   echo "#! /bin/sh" >conf$$.sh
21308   echo  "exit 0"   >>conf$$.sh
21309   chmod +x conf$$.sh
21310   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21311     PATH_SEPARATOR=';'
21312   else
21313     PATH_SEPARATOR=:
21314   fi
21315   rm -f conf$$.sh
21316 fi
21317
21318 # Support unset when possible.
21319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21320   as_unset=unset
21321 else
21322   as_unset=false
21323 fi
21324
21325
21326 # IFS
21327 # We need space, tab and new line, in precisely that order.  Quoting is
21328 # there to prevent editors from complaining about space-tab.
21329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21330 # splitting by setting IFS to empty value.)
21331 as_nl='
21332 '
21333 IFS=" ""        $as_nl"
21334
21335 # Find who we are.  Look in the path if we contain no directory separator.
21336 case $0 in
21337   *[\\/]* ) as_myself=$0 ;;
21338   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21339 for as_dir in $PATH
21340 do
21341   IFS=$as_save_IFS
21342   test -z "$as_dir" && as_dir=.
21343   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21344 done
21345 IFS=$as_save_IFS
21346
21347      ;;
21348 esac
21349 # We did not find ourselves, most probably we were run as `sh COMMAND'
21350 # in which case we are not to be found in the path.
21351 if test "x$as_myself" = x; then
21352   as_myself=$0
21353 fi
21354 if test ! -f "$as_myself"; then
21355   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21356   { (exit 1); exit 1; }
21357 fi
21358
21359 # Work around bugs in pre-3.0 UWIN ksh.
21360 for as_var in ENV MAIL MAILPATH
21361 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21362 done
21363 PS1='$ '
21364 PS2='> '
21365 PS4='+ '
21366
21367 # NLS nuisances.
21368 for as_var in \
21369   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21370   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21371   LC_TELEPHONE LC_TIME
21372 do
21373   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21374     eval $as_var=C; export $as_var
21375   else
21376     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21377   fi
21378 done
21379
21380 # Required to use basename.
21381 if expr a : '\(a\)' >/dev/null 2>&1 &&
21382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21383   as_expr=expr
21384 else
21385   as_expr=false
21386 fi
21387
21388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21389   as_basename=basename
21390 else
21391   as_basename=false
21392 fi
21393
21394
21395 # Name of the executable.
21396 as_me=`$as_basename -- "$0" ||
21397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21398          X"$0" : 'X\(//\)$' \| \
21399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21400 echo X/"$0" |
21401     sed '/^.*\/\([^/][^/]*\)\/*$/{
21402             s//\1/
21403             q
21404           }
21405           /^X\/\(\/\/\)$/{
21406             s//\1/
21407             q
21408           }
21409           /^X\/\(\/\).*/{
21410             s//\1/
21411             q
21412           }
21413           s/.*/./; q'`
21414
21415 # CDPATH.
21416 $as_unset CDPATH
21417
21418
21419
21420   as_lineno_1=$LINENO
21421   as_lineno_2=$LINENO
21422   test "x$as_lineno_1" != "x$as_lineno_2" &&
21423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21424
21425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21426   # uniformly replaced by the line number.  The first 'sed' inserts a
21427   # line-number line after each line using $LINENO; the second 'sed'
21428   # does the real work.  The second script uses 'N' to pair each
21429   # line-number line with the line containing $LINENO, and appends
21430   # trailing '-' during substitution so that $LINENO is not a special
21431   # case at line end.
21432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21434   # E. McMahon (1931-1989) for sed's syntax.  :-)
21435   sed -n '
21436     p
21437     /[$]LINENO/=
21438   ' <$as_myself |
21439     sed '
21440       s/[$]LINENO.*/&-/
21441       t lineno
21442       b
21443       :lineno
21444       N
21445       :loop
21446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21447       t loop
21448       s/-\n.*//
21449     ' >$as_me.lineno &&
21450   chmod +x "$as_me.lineno" ||
21451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21452    { (exit 1); exit 1; }; }
21453
21454   # Don't try to exec as it changes $[0], causing all sort of problems
21455   # (the dirname of $[0] is not the place where we might find the
21456   # original and so on.  Autoconf is especially sensitive to this).
21457   . "./$as_me.lineno"
21458   # Exit status is that of the last command.
21459   exit
21460 }
21461
21462
21463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21464   as_dirname=dirname
21465 else
21466   as_dirname=false
21467 fi
21468
21469 ECHO_C= ECHO_N= ECHO_T=
21470 case `echo -n x` in
21471 -n*)
21472   case `echo 'x\c'` in
21473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21474   *)   ECHO_C='\c';;
21475   esac;;
21476 *)
21477   ECHO_N='-n';;
21478 esac
21479
21480 if expr a : '\(a\)' >/dev/null 2>&1 &&
21481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21482   as_expr=expr
21483 else
21484   as_expr=false
21485 fi
21486
21487 rm -f conf$$ conf$$.exe conf$$.file
21488 if test -d conf$$.dir; then
21489   rm -f conf$$.dir/conf$$.file
21490 else
21491   rm -f conf$$.dir
21492   mkdir conf$$.dir
21493 fi
21494 echo >conf$$.file
21495 if ln -s conf$$.file conf$$ 2>/dev/null; then
21496   as_ln_s='ln -s'
21497   # ... but there are two gotchas:
21498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21500   # In both cases, we have to default to `cp -p'.
21501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21502     as_ln_s='cp -p'
21503 elif ln conf$$.file conf$$ 2>/dev/null; then
21504   as_ln_s=ln
21505 else
21506   as_ln_s='cp -p'
21507 fi
21508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21509 rmdir conf$$.dir 2>/dev/null
21510
21511 if mkdir -p . 2>/dev/null; then
21512   as_mkdir_p=:
21513 else
21514   test -d ./-p && rmdir ./-p
21515   as_mkdir_p=false
21516 fi
21517
21518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21519 # systems may use methods other than mode bits to determine executability.
21520 cat >conf$$.file <<_ASEOF
21521 #! /bin/sh
21522 exit 0
21523 _ASEOF
21524 chmod +x conf$$.file
21525 if test -x conf$$.file >/dev/null 2>&1; then
21526   as_executable_p="test -x"
21527 else
21528   as_executable_p=:
21529 fi
21530 rm -f conf$$.file
21531
21532 # Sed expression to map a string onto a valid CPP name.
21533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21534
21535 # Sed expression to map a string onto a valid variable name.
21536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21537
21538
21539 exec 6>&1
21540
21541 # Save the log message, to keep $[0] and so on meaningful, and to
21542 # report actual input values of CONFIG_FILES etc. instead of their
21543 # values after options handling.
21544 ac_log="
21545 This file was extended by LLVM $as_me 3.1svn, which was
21546 generated by GNU Autoconf 2.60.  Invocation command line was
21547
21548   CONFIG_FILES    = $CONFIG_FILES
21549   CONFIG_HEADERS  = $CONFIG_HEADERS
21550   CONFIG_LINKS    = $CONFIG_LINKS
21551   CONFIG_COMMANDS = $CONFIG_COMMANDS
21552   $ $0 $@
21553
21554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21555 "
21556
21557 _ACEOF
21558
21559 cat >>$CONFIG_STATUS <<_ACEOF
21560 # Files that config.status was made for.
21561 config_files="$ac_config_files"
21562 config_headers="$ac_config_headers"
21563 config_commands="$ac_config_commands"
21564
21565 _ACEOF
21566
21567 cat >>$CONFIG_STATUS <<\_ACEOF
21568 ac_cs_usage="\
21569 \`$as_me' instantiates files from templates according to the
21570 current configuration.
21571
21572 Usage: $0 [OPTIONS] [FILE]...
21573
21574   -h, --help       print this help, then exit
21575   -V, --version    print version number, then exit
21576   -q, --quiet      do not print progress messages
21577   -d, --debug      don't remove temporary files
21578       --recheck    update $as_me by reconfiguring in the same conditions
21579   --file=FILE[:TEMPLATE]
21580                    instantiate the configuration file FILE
21581   --header=FILE[:TEMPLATE]
21582                    instantiate the configuration header FILE
21583
21584 Configuration files:
21585 $config_files
21586
21587 Configuration headers:
21588 $config_headers
21589
21590 Configuration commands:
21591 $config_commands
21592
21593 Report bugs to <bug-autoconf@gnu.org>."
21594
21595 _ACEOF
21596 cat >>$CONFIG_STATUS <<_ACEOF
21597 ac_cs_version="\\
21598 LLVM config.status 3.1svn
21599 configured by $0, generated by GNU Autoconf 2.60,
21600   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21601
21602 Copyright (C) 2006 Free Software Foundation, Inc.
21603 This config.status script is free software; the Free Software Foundation
21604 gives unlimited permission to copy, distribute and modify it."
21605
21606 ac_pwd='$ac_pwd'
21607 srcdir='$srcdir'
21608 INSTALL='$INSTALL'
21609 _ACEOF
21610
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612 # If no file are specified by the user, then we need to provide default
21613 # value.  By we need to know if files were specified by the user.
21614 ac_need_defaults=:
21615 while test $# != 0
21616 do
21617   case $1 in
21618   --*=*)
21619     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21620     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21621     ac_shift=:
21622     ;;
21623   *)
21624     ac_option=$1
21625     ac_optarg=$2
21626     ac_shift=shift
21627     ;;
21628   esac
21629
21630   case $ac_option in
21631   # Handling of the options.
21632   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21633     ac_cs_recheck=: ;;
21634   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21635     echo "$ac_cs_version"; exit ;;
21636   --debug | --debu | --deb | --de | --d | -d )
21637     debug=: ;;
21638   --file | --fil | --fi | --f )
21639     $ac_shift
21640     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21641     ac_need_defaults=false;;
21642   --header | --heade | --head | --hea )
21643     $ac_shift
21644     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21645     ac_need_defaults=false;;
21646   --he | --h)
21647     # Conflict between --help and --header
21648     { echo "$as_me: error: ambiguous option: $1
21649 Try \`$0 --help' for more information." >&2
21650    { (exit 1); exit 1; }; };;
21651   --help | --hel | -h )
21652     echo "$ac_cs_usage"; exit ;;
21653   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21654   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21655     ac_cs_silent=: ;;
21656
21657   # This is an error.
21658   -*) { echo "$as_me: error: unrecognized option: $1
21659 Try \`$0 --help' for more information." >&2
21660    { (exit 1); exit 1; }; } ;;
21661
21662   *) ac_config_targets="$ac_config_targets $1"
21663      ac_need_defaults=false ;;
21664
21665   esac
21666   shift
21667 done
21668
21669 ac_configure_extra_args=
21670
21671 if $ac_cs_silent; then
21672   exec 6>/dev/null
21673   ac_configure_extra_args="$ac_configure_extra_args --silent"
21674 fi
21675
21676 _ACEOF
21677 cat >>$CONFIG_STATUS <<_ACEOF
21678 if \$ac_cs_recheck; then
21679   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21680   CONFIG_SHELL=$SHELL
21681   export CONFIG_SHELL
21682   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21683 fi
21684
21685 _ACEOF
21686 cat >>$CONFIG_STATUS <<\_ACEOF
21687 exec 5>>config.log
21688 {
21689   echo
21690   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21691 ## Running $as_me. ##
21692 _ASBOX
21693   echo "$ac_log"
21694 } >&5
21695
21696 _ACEOF
21697 cat >>$CONFIG_STATUS <<_ACEOF
21698 #
21699 # INIT-COMMANDS
21700 #
21701 llvm_src="${srcdir}"
21702
21703 _ACEOF
21704
21705 cat >>$CONFIG_STATUS <<\_ACEOF
21706
21707 # Handling of arguments.
21708 for ac_config_target in $ac_config_targets
21709 do
21710   case $ac_config_target in
21711     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21712     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21713     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21714     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21715     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21716     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21717     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21718     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21719     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21720     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21721     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21722     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21723     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21724     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21725     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21726     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21727     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21728     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21729     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21730     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21731     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21732     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21733     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21734     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21735     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21736     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21737
21738   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21740    { (exit 1); exit 1; }; };;
21741   esac
21742 done
21743
21744
21745 # If the user did not use the arguments to specify the items to instantiate,
21746 # then the envvar interface is used.  Set only those that are not.
21747 # We use the long form for the default assignment because of an extremely
21748 # bizarre bug on SunOS 4.1.3.
21749 if $ac_need_defaults; then
21750   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21751   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21752   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21753 fi
21754
21755 # Have a temporary directory for convenience.  Make it in the build tree
21756 # simply because there is no reason against having it here, and in addition,
21757 # creating and moving files from /tmp can sometimes cause problems.
21758 # Hook for its removal unless debugging.
21759 # Note that there is a small window in which the directory will not be cleaned:
21760 # after its creation but before its name has been assigned to `$tmp'.
21761 $debug ||
21762 {
21763   tmp=
21764   trap 'exit_status=$?
21765   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21766 ' 0
21767   trap '{ (exit 1); exit 1; }' 1 2 13 15
21768 }
21769 # Create a (secure) tmp directory for tmp files.
21770
21771 {
21772   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21773   test -n "$tmp" && test -d "$tmp"
21774 }  ||
21775 {
21776   tmp=./conf$$-$RANDOM
21777   (umask 077 && mkdir "$tmp")
21778 } ||
21779 {
21780    echo "$me: cannot create a temporary directory in ." >&2
21781    { (exit 1); exit 1; }
21782 }
21783
21784 #
21785 # Set up the sed scripts for CONFIG_FILES section.
21786 #
21787
21788 # No need to generate the scripts if there are no CONFIG_FILES.
21789 # This happens for instance when ./config.status config.h
21790 if test -n "$CONFIG_FILES"; then
21791
21792 _ACEOF
21793
21794
21795
21796 ac_delim='%!_!# '
21797 for ac_last_try in false false false false false :; do
21798   cat >conf$$subs.sed <<_ACEOF
21799 SHELL!$SHELL$ac_delim
21800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21806 exec_prefix!$exec_prefix$ac_delim
21807 prefix!$prefix$ac_delim
21808 program_transform_name!$program_transform_name$ac_delim
21809 bindir!$bindir$ac_delim
21810 sbindir!$sbindir$ac_delim
21811 libexecdir!$libexecdir$ac_delim
21812 datarootdir!$datarootdir$ac_delim
21813 datadir!$datadir$ac_delim
21814 sysconfdir!$sysconfdir$ac_delim
21815 sharedstatedir!$sharedstatedir$ac_delim
21816 localstatedir!$localstatedir$ac_delim
21817 includedir!$includedir$ac_delim
21818 oldincludedir!$oldincludedir$ac_delim
21819 docdir!$docdir$ac_delim
21820 infodir!$infodir$ac_delim
21821 htmldir!$htmldir$ac_delim
21822 dvidir!$dvidir$ac_delim
21823 pdfdir!$pdfdir$ac_delim
21824 psdir!$psdir$ac_delim
21825 libdir!$libdir$ac_delim
21826 localedir!$localedir$ac_delim
21827 mandir!$mandir$ac_delim
21828 DEFS!$DEFS$ac_delim
21829 ECHO_C!$ECHO_C$ac_delim
21830 ECHO_N!$ECHO_N$ac_delim
21831 ECHO_T!$ECHO_T$ac_delim
21832 LIBS!$LIBS$ac_delim
21833 build_alias!$build_alias$ac_delim
21834 host_alias!$host_alias$ac_delim
21835 target_alias!$target_alias$ac_delim
21836 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21837 CC!$CC$ac_delim
21838 CFLAGS!$CFLAGS$ac_delim
21839 LDFLAGS!$LDFLAGS$ac_delim
21840 CPPFLAGS!$CPPFLAGS$ac_delim
21841 ac_ct_CC!$ac_ct_CC$ac_delim
21842 EXEEXT!$EXEEXT$ac_delim
21843 OBJEXT!$OBJEXT$ac_delim
21844 CXX!$CXX$ac_delim
21845 CXXFLAGS!$CXXFLAGS$ac_delim
21846 ac_ct_CXX!$ac_ct_CXX$ac_delim
21847 CPP!$CPP$ac_delim
21848 subdirs!$subdirs$ac_delim
21849 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21850 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21851 build!$build$ac_delim
21852 build_cpu!$build_cpu$ac_delim
21853 build_vendor!$build_vendor$ac_delim
21854 build_os!$build_os$ac_delim
21855 host!$host$ac_delim
21856 host_cpu!$host_cpu$ac_delim
21857 host_vendor!$host_vendor$ac_delim
21858 host_os!$host_os$ac_delim
21859 target!$target$ac_delim
21860 target_cpu!$target_cpu$ac_delim
21861 target_vendor!$target_vendor$ac_delim
21862 target_os!$target_os$ac_delim
21863 OS!$OS$ac_delim
21864 HOST_OS!$HOST_OS$ac_delim
21865 TARGET_OS!$TARGET_OS$ac_delim
21866 LINKALL!$LINKALL$ac_delim
21867 NOLINKALL!$NOLINKALL$ac_delim
21868 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21869 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21870 ARCH!$ARCH$ac_delim
21871 ENDIAN!$ENDIAN$ac_delim
21872 GREP!$GREP$ac_delim
21873 EGREP!$EGREP$ac_delim
21874 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21875 BUILD_CC!$BUILD_CC$ac_delim
21876 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21877 BUILD_CXX!$BUILD_CXX$ac_delim
21878 CVSBUILD!$CVSBUILD$ac_delim
21879 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21880 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21881 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21882 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21883 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21884 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21885 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21886 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21887 JIT!$JIT$ac_delim
21888 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21889 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21890 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21891 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21892 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21893 ENABLE_PIC!$ENABLE_PIC$ac_delim
21894 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21895 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21896 _ACEOF
21897
21898   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21899     break
21900   elif $ac_last_try; then
21901     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21903    { (exit 1); exit 1; }; }
21904   else
21905     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21906   fi
21907 done
21908
21909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21910 if test -n "$ac_eof"; then
21911   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21912   ac_eof=`expr $ac_eof + 1`
21913 fi
21914
21915 cat >>$CONFIG_STATUS <<_ACEOF
21916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21918 _ACEOF
21919 sed '
21920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21921 s/^/s,@/; s/!/@,|#_!!_#|/
21922 :n
21923 t n
21924 s/'"$ac_delim"'$/,g/; t
21925 s/$/\\/; p
21926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21927 ' >>$CONFIG_STATUS <conf$$subs.sed
21928 rm -f conf$$subs.sed
21929 cat >>$CONFIG_STATUS <<_ACEOF
21930 CEOF$ac_eof
21931 _ACEOF
21932
21933
21934 ac_delim='%!_!# '
21935 for ac_last_try in false false false false false :; do
21936   cat >conf$$subs.sed <<_ACEOF
21937 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21938 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21939 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21940 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21941 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21942 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21943 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21944 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21945 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21946 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21947 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21948 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21949 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21950 NM!$NM$ac_delim
21951 ifGNUmake!$ifGNUmake$ac_delim
21952 LN_S!$LN_S$ac_delim
21953 CMP!$CMP$ac_delim
21954 CP!$CP$ac_delim
21955 DATE!$DATE$ac_delim
21956 FIND!$FIND$ac_delim
21957 MKDIR!$MKDIR$ac_delim
21958 MV!$MV$ac_delim
21959 RANLIB!$RANLIB$ac_delim
21960 AR!$AR$ac_delim
21961 RM!$RM$ac_delim
21962 SED!$SED$ac_delim
21963 TAR!$TAR$ac_delim
21964 BINPWD!$BINPWD$ac_delim
21965 GRAPHVIZ!$GRAPHVIZ$ac_delim
21966 DOT!$DOT$ac_delim
21967 FDP!$FDP$ac_delim
21968 NEATO!$NEATO$ac_delim
21969 TWOPI!$TWOPI$ac_delim
21970 CIRCO!$CIRCO$ac_delim
21971 GV!$GV$ac_delim
21972 DOTTY!$DOTTY$ac_delim
21973 XDOT_PY!$XDOT_PY$ac_delim
21974 PERL!$PERL$ac_delim
21975 HAVE_PERL!$HAVE_PERL$ac_delim
21976 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21977 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21978 INSTALL_DATA!$INSTALL_DATA$ac_delim
21979 BZIP2!$BZIP2$ac_delim
21980 CAT!$CAT$ac_delim
21981 DOXYGEN!$DOXYGEN$ac_delim
21982 GROFF!$GROFF$ac_delim
21983 GZIPBIN!$GZIPBIN$ac_delim
21984 POD2HTML!$POD2HTML$ac_delim
21985 POD2MAN!$POD2MAN$ac_delim
21986 PDFROFF!$PDFROFF$ac_delim
21987 RUNTEST!$RUNTEST$ac_delim
21988 TCLSH!$TCLSH$ac_delim
21989 ZIP!$ZIP$ac_delim
21990 OCAMLC!$OCAMLC$ac_delim
21991 OCAMLOPT!$OCAMLOPT$ac_delim
21992 OCAMLDEP!$OCAMLDEP$ac_delim
21993 OCAMLDOC!$OCAMLDOC$ac_delim
21994 GAS!$GAS$ac_delim
21995 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21996 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21997 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21998 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21999 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22000 LIBADD_DL!$LIBADD_DL$ac_delim
22001 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22002 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22003 USE_UDIS86!$USE_UDIS86$ac_delim
22004 USE_OPROFILE!$USE_OPROFILE$ac_delim
22005 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22006 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22007 MMAP_FILE!$MMAP_FILE$ac_delim
22008 SHLIBEXT!$SHLIBEXT$ac_delim
22009 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22010 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22011 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22012 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22013 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22014 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22015 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22016 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22017 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22018 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22019 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22020 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22021 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22022 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22023 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22024 RPATH!$RPATH$ac_delim
22025 RDYNAMIC!$RDYNAMIC$ac_delim
22026 LIBOBJS!$LIBOBJS$ac_delim
22027 LTLIBOBJS!$LTLIBOBJS$ac_delim
22028 _ACEOF
22029
22030   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22031     break
22032   elif $ac_last_try; then
22033     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22034 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22035    { (exit 1); exit 1; }; }
22036   else
22037     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22038   fi
22039 done
22040
22041 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22042 if test -n "$ac_eof"; then
22043   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22044   ac_eof=`expr $ac_eof + 1`
22045 fi
22046
22047 cat >>$CONFIG_STATUS <<_ACEOF
22048 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22049 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22050 _ACEOF
22051 sed '
22052 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22053 s/^/s,@/; s/!/@,|#_!!_#|/
22054 :n
22055 t n
22056 s/'"$ac_delim"'$/,g/; t
22057 s/$/\\/; p
22058 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22059 ' >>$CONFIG_STATUS <conf$$subs.sed
22060 rm -f conf$$subs.sed
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 :end
22063 s/|#_!!_#|//g
22064 CEOF$ac_eof
22065 _ACEOF
22066
22067
22068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22070 # trailing colons and then remove the whole line if VPATH becomes empty
22071 # (actually we leave an empty line to preserve line numbers).
22072 if test "x$srcdir" = x.; then
22073   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22074 s/:*\$(srcdir):*/:/
22075 s/:*\${srcdir}:*/:/
22076 s/:*@srcdir@:*/:/
22077 s/^\([^=]*=[     ]*\):*/\1/
22078 s/:*$//
22079 s/^[^=]*=[       ]*$//
22080 }'
22081 fi
22082
22083 cat >>$CONFIG_STATUS <<\_ACEOF
22084 fi # test -n "$CONFIG_FILES"
22085
22086
22087 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22088 do
22089   case $ac_tag in
22090   :[FHLC]) ac_mode=$ac_tag; continue;;
22091   esac
22092   case $ac_mode$ac_tag in
22093   :[FHL]*:*);;
22094   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22095 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22096    { (exit 1); exit 1; }; };;
22097   :[FH]-) ac_tag=-:-;;
22098   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22099   esac
22100   ac_save_IFS=$IFS
22101   IFS=:
22102   set x $ac_tag
22103   IFS=$ac_save_IFS
22104   shift
22105   ac_file=$1
22106   shift
22107
22108   case $ac_mode in
22109   :L) ac_source=$1;;
22110   :[FH])
22111     ac_file_inputs=
22112     for ac_f
22113     do
22114       case $ac_f in
22115       -) ac_f="$tmp/stdin";;
22116       *) # Look for the file first in the build tree, then in the source tree
22117          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22118          # because $ac_f cannot contain `:'.
22119          test -f "$ac_f" ||
22120            case $ac_f in
22121            [\\/$]*) false;;
22122            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22123            esac ||
22124            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22125 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22126    { (exit 1); exit 1; }; };;
22127       esac
22128       ac_file_inputs="$ac_file_inputs $ac_f"
22129     done
22130
22131     # Let's still pretend it is `configure' which instantiates (i.e., don't
22132     # use $as_me), people would be surprised to read:
22133     #    /* config.h.  Generated by config.status.  */
22134     configure_input="Generated from "`IFS=:
22135           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22136     if test x"$ac_file" != x-; then
22137       configure_input="$ac_file.  $configure_input"
22138       { echo "$as_me:$LINENO: creating $ac_file" >&5
22139 echo "$as_me: creating $ac_file" >&6;}
22140     fi
22141
22142     case $ac_tag in
22143     *:-:* | *:-) cat >"$tmp/stdin";;
22144     esac
22145     ;;
22146   esac
22147
22148   ac_dir=`$as_dirname -- "$ac_file" ||
22149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22150          X"$ac_file" : 'X\(//\)[^/]' \| \
22151          X"$ac_file" : 'X\(//\)$' \| \
22152          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22153 echo X"$ac_file" |
22154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22155             s//\1/
22156             q
22157           }
22158           /^X\(\/\/\)[^/].*/{
22159             s//\1/
22160             q
22161           }
22162           /^X\(\/\/\)$/{
22163             s//\1/
22164             q
22165           }
22166           /^X\(\/\).*/{
22167             s//\1/
22168             q
22169           }
22170           s/.*/./; q'`
22171   { as_dir="$ac_dir"
22172   case $as_dir in #(
22173   -*) as_dir=./$as_dir;;
22174   esac
22175   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22176     as_dirs=
22177     while :; do
22178       case $as_dir in #(
22179       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22180       *) as_qdir=$as_dir;;
22181       esac
22182       as_dirs="'$as_qdir' $as_dirs"
22183       as_dir=`$as_dirname -- "$as_dir" ||
22184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185          X"$as_dir" : 'X\(//\)[^/]' \| \
22186          X"$as_dir" : 'X\(//\)$' \| \
22187          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22188 echo X"$as_dir" |
22189     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22190             s//\1/
22191             q
22192           }
22193           /^X\(\/\/\)[^/].*/{
22194             s//\1/
22195             q
22196           }
22197           /^X\(\/\/\)$/{
22198             s//\1/
22199             q
22200           }
22201           /^X\(\/\).*/{
22202             s//\1/
22203             q
22204           }
22205           s/.*/./; q'`
22206       test -d "$as_dir" && break
22207     done
22208     test -z "$as_dirs" || eval "mkdir $as_dirs"
22209   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22210 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22211    { (exit 1); exit 1; }; }; }
22212   ac_builddir=.
22213
22214 case "$ac_dir" in
22215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22216 *)
22217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22218   # A ".." for each directory in $ac_dir_suffix.
22219   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22220   case $ac_top_builddir_sub in
22221   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22222   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22223   esac ;;
22224 esac
22225 ac_abs_top_builddir=$ac_pwd
22226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22227 # for backward compatibility:
22228 ac_top_builddir=$ac_top_build_prefix
22229
22230 case $srcdir in
22231   .)  # We are building in place.
22232     ac_srcdir=.
22233     ac_top_srcdir=$ac_top_builddir_sub
22234     ac_abs_top_srcdir=$ac_pwd ;;
22235   [\\/]* | ?:[\\/]* )  # Absolute name.
22236     ac_srcdir=$srcdir$ac_dir_suffix;
22237     ac_top_srcdir=$srcdir
22238     ac_abs_top_srcdir=$srcdir ;;
22239   *) # Relative name.
22240     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22241     ac_top_srcdir=$ac_top_build_prefix$srcdir
22242     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22243 esac
22244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22245
22246
22247   case $ac_mode in
22248   :F)
22249   #
22250   # CONFIG_FILE
22251   #
22252
22253   case $INSTALL in
22254   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22255   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22256   esac
22257 _ACEOF
22258
22259 cat >>$CONFIG_STATUS <<\_ACEOF
22260 # If the template does not know about datarootdir, expand it.
22261 # FIXME: This hack should be removed a few years after 2.60.
22262 ac_datarootdir_hack=; ac_datarootdir_seen=
22263
22264 case `sed -n '/datarootdir/ {
22265   p
22266   q
22267 }
22268 /@datadir@/p
22269 /@docdir@/p
22270 /@infodir@/p
22271 /@localedir@/p
22272 /@mandir@/p
22273 ' $ac_file_inputs` in
22274 *datarootdir*) ac_datarootdir_seen=yes;;
22275 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22276   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22277 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22278 _ACEOF
22279 cat >>$CONFIG_STATUS <<_ACEOF
22280   ac_datarootdir_hack='
22281   s&@datadir@&$datadir&g
22282   s&@docdir@&$docdir&g
22283   s&@infodir@&$infodir&g
22284   s&@localedir@&$localedir&g
22285   s&@mandir@&$mandir&g
22286     s&\\\${datarootdir}&$datarootdir&g' ;;
22287 esac
22288 _ACEOF
22289
22290 # Neutralize VPATH when `$srcdir' = `.'.
22291 # Shell code in configure.ac might set extrasub.
22292 # FIXME: do we really want to maintain this feature?
22293 cat >>$CONFIG_STATUS <<_ACEOF
22294   sed "$ac_vpsub
22295 $extrasub
22296 _ACEOF
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22298 :t
22299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22300 s&@configure_input@&$configure_input&;t t
22301 s&@top_builddir@&$ac_top_builddir_sub&;t t
22302 s&@srcdir@&$ac_srcdir&;t t
22303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22304 s&@top_srcdir@&$ac_top_srcdir&;t t
22305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22306 s&@builddir@&$ac_builddir&;t t
22307 s&@abs_builddir@&$ac_abs_builddir&;t t
22308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22309 s&@INSTALL@&$ac_INSTALL&;t t
22310 $ac_datarootdir_hack
22311 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22312
22313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22314   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22315   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22316   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22317 which seems to be undefined.  Please make sure it is defined." >&5
22318 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22319 which seems to be undefined.  Please make sure it is defined." >&2;}
22320
22321   rm -f "$tmp/stdin"
22322   case $ac_file in
22323   -) cat "$tmp/out"; rm -f "$tmp/out";;
22324   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22325   esac
22326  ;;
22327   :H)
22328   #
22329   # CONFIG_HEADER
22330   #
22331 _ACEOF
22332
22333 # Transform confdefs.h into a sed script `conftest.defines', that
22334 # substitutes the proper values into config.h.in to produce config.h.
22335 rm -f conftest.defines conftest.tail
22336 # First, append a space to every undef/define line, to ease matching.
22337 echo 's/$/ /' >conftest.defines
22338 # Then, protect against being on the right side of a sed subst, or in
22339 # an unquoted here document, in config.status.  If some macros were
22340 # called several times there might be several #defines for the same
22341 # symbol, which is useless.  But do not sort them, since the last
22342 # AC_DEFINE must be honored.
22343 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22344 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22345 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22346 # PARAMS is the parameter list in the macro definition--in most cases, it's
22347 # just an empty string.
22348 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22349 ac_dB='\\)[      (].*,\\1define\\2'
22350 ac_dC=' '
22351 ac_dD=' ,'
22352
22353 uniq confdefs.h |
22354   sed -n '
22355         t rset
22356         :rset
22357         s/^[     ]*#[    ]*define[       ][      ]*//
22358         t ok
22359         d
22360         :ok
22361         s/[\\&,]/\\&/g
22362         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22363         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22364   ' >>conftest.defines
22365
22366 # Remove the space that was appended to ease matching.
22367 # Then replace #undef with comments.  This is necessary, for
22368 # example, in the case of _POSIX_SOURCE, which is predefined and required
22369 # on some systems where configure will not decide to define it.
22370 # (The regexp can be short, since the line contains either #define or #undef.)
22371 echo 's/ $//
22372 s,^[     #]*u.*,/* & */,' >>conftest.defines
22373
22374 # Break up conftest.defines:
22375 ac_max_sed_lines=50
22376
22377 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22378 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22379 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22380 # et cetera.
22381 ac_in='$ac_file_inputs'
22382 ac_out='"$tmp/out1"'
22383 ac_nxt='"$tmp/out2"'
22384
22385 while :
22386 do
22387   # Write a here document:
22388     cat >>$CONFIG_STATUS <<_ACEOF
22389     # First, check the format of the line:
22390     cat >"\$tmp/defines.sed" <<\\CEOF
22391 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22392 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22393 b
22394 :def
22395 _ACEOF
22396   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22397   echo 'CEOF
22398     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22399   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22400   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22401   grep . conftest.tail >/dev/null || break
22402   rm -f conftest.defines
22403   mv conftest.tail conftest.defines
22404 done
22405 rm -f conftest.defines conftest.tail
22406
22407 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22409   if test x"$ac_file" != x-; then
22410     echo "/* $configure_input  */" >"$tmp/config.h"
22411     cat "$ac_result" >>"$tmp/config.h"
22412     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22413       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22414 echo "$as_me: $ac_file is unchanged" >&6;}
22415     else
22416       rm -f $ac_file
22417       mv "$tmp/config.h" $ac_file
22418     fi
22419   else
22420     echo "/* $configure_input  */"
22421     cat "$ac_result"
22422   fi
22423   rm -f "$tmp/out12"
22424  ;;
22425
22426   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22427 echo "$as_me: executing $ac_file commands" >&6;}
22428  ;;
22429   esac
22430
22431
22432   case $ac_file$ac_mode in
22433     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22434    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22435     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22436    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22437     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22438    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22439     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22440    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22441     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22442    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22443     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22444    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22445     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22446    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22447     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22448    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22449     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22450    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22451     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22452    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22453     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22454    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22455     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22456    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22457     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22458    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22459
22460   esac
22461 done # for ac_tag
22462
22463
22464 { (exit 0); exit 0; }
22465 _ACEOF
22466 chmod +x $CONFIG_STATUS
22467 ac_clean_files=$ac_clean_files_save
22468
22469
22470 # configure is writing to config.log, and then calls config.status.
22471 # config.status does its own redirection, appending to config.log.
22472 # Unfortunately, on DOS this fails, as config.log is still kept open
22473 # by configure, so config.status won't be able to write to it; its
22474 # output is simply discarded.  So we exec the FD to /dev/null,
22475 # effectively closing config.log, so it can be properly (re)opened and
22476 # appended to by config.status.  When coming back to configure, we
22477 # need to make the FD available again.
22478 if test "$no_create" != yes; then
22479   ac_cs_success=:
22480   ac_config_status_args=
22481   test "$silent" = yes &&
22482     ac_config_status_args="$ac_config_status_args --quiet"
22483   exec 5>/dev/null
22484   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22485   exec 5>>config.log
22486   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22487   # would make configure fail if this is the last instruction.
22488   $ac_cs_success || { (exit 1); exit 1; }
22489 fi
22490
22491 #
22492 # CONFIG_SUBDIRS section.
22493 #
22494 if test "$no_recursion" != yes; then
22495
22496   # Remove --cache-file and --srcdir arguments so they do not pile up.
22497   ac_sub_configure_args=
22498   ac_prev=
22499   eval "set x $ac_configure_args"
22500   shift
22501   for ac_arg
22502   do
22503     if test -n "$ac_prev"; then
22504       ac_prev=
22505       continue
22506     fi
22507     case $ac_arg in
22508     -cache-file | --cache-file | --cache-fil | --cache-fi \
22509     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22510       ac_prev=cache_file ;;
22511     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22512     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22513     | --c=*)
22514       ;;
22515     --config-cache | -C)
22516       ;;
22517     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22518       ac_prev=srcdir ;;
22519     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22520       ;;
22521     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22522       ac_prev=prefix ;;
22523     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22524       ;;
22525     *)
22526       case $ac_arg in
22527       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22528       esac
22529       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22530     esac
22531   done
22532
22533   # Always prepend --prefix to ensure using the same prefix
22534   # in subdir configurations.
22535   ac_arg="--prefix=$prefix"
22536   case $ac_arg in
22537   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22538   esac
22539   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22540
22541   ac_popdir=`pwd`
22542   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22543
22544     # Do not complain, so a configure script can configure whichever
22545     # parts of a large source tree are present.
22546     test -d "$srcdir/$ac_dir" || continue
22547
22548     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22549     echo "$as_me:$LINENO: $ac_msg" >&5
22550     echo "$ac_msg" >&6
22551     { as_dir="$ac_dir"
22552   case $as_dir in #(
22553   -*) as_dir=./$as_dir;;
22554   esac
22555   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22556     as_dirs=
22557     while :; do
22558       case $as_dir in #(
22559       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22560       *) as_qdir=$as_dir;;
22561       esac
22562       as_dirs="'$as_qdir' $as_dirs"
22563       as_dir=`$as_dirname -- "$as_dir" ||
22564 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565          X"$as_dir" : 'X\(//\)[^/]' \| \
22566          X"$as_dir" : 'X\(//\)$' \| \
22567          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22568 echo X"$as_dir" |
22569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22570             s//\1/
22571             q
22572           }
22573           /^X\(\/\/\)[^/].*/{
22574             s//\1/
22575             q
22576           }
22577           /^X\(\/\/\)$/{
22578             s//\1/
22579             q
22580           }
22581           /^X\(\/\).*/{
22582             s//\1/
22583             q
22584           }
22585           s/.*/./; q'`
22586       test -d "$as_dir" && break
22587     done
22588     test -z "$as_dirs" || eval "mkdir $as_dirs"
22589   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22590 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22591    { (exit 1); exit 1; }; }; }
22592     ac_builddir=.
22593
22594 case "$ac_dir" in
22595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22596 *)
22597   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22598   # A ".." for each directory in $ac_dir_suffix.
22599   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22600   case $ac_top_builddir_sub in
22601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22603   esac ;;
22604 esac
22605 ac_abs_top_builddir=$ac_pwd
22606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22607 # for backward compatibility:
22608 ac_top_builddir=$ac_top_build_prefix
22609
22610 case $srcdir in
22611   .)  # We are building in place.
22612     ac_srcdir=.
22613     ac_top_srcdir=$ac_top_builddir_sub
22614     ac_abs_top_srcdir=$ac_pwd ;;
22615   [\\/]* | ?:[\\/]* )  # Absolute name.
22616     ac_srcdir=$srcdir$ac_dir_suffix;
22617     ac_top_srcdir=$srcdir
22618     ac_abs_top_srcdir=$srcdir ;;
22619   *) # Relative name.
22620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22621     ac_top_srcdir=$ac_top_build_prefix$srcdir
22622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22623 esac
22624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22625
22626
22627     cd "$ac_dir"
22628
22629     # Check for guested configure; otherwise get Cygnus style configure.
22630     if test -f "$ac_srcdir/configure.gnu"; then
22631       ac_sub_configure=$ac_srcdir/configure.gnu
22632     elif test -f "$ac_srcdir/configure"; then
22633       ac_sub_configure=$ac_srcdir/configure
22634     elif test -f "$ac_srcdir/configure.in"; then
22635       # This should be Cygnus configure.
22636       ac_sub_configure=$ac_aux_dir/configure
22637     else
22638       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22640       ac_sub_configure=
22641     fi
22642
22643     # The recursion is here.
22644     if test -n "$ac_sub_configure"; then
22645       # Make the cache file name correct relative to the subdirectory.
22646       case $cache_file in
22647       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22648       *) # Relative name.
22649         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22650       esac
22651
22652       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22653 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22654       # The eval makes quoting arguments work.
22655       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22656            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22657         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22658 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22659    { (exit 1); exit 1; }; }
22660     fi
22661
22662     cd "$ac_popdir"
22663   done
22664 fi
22665