Attempt #2 to fix mingw crossbuild. This time with more ugly hacks!
[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-2011 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-2011 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-2011 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   xcore-*)                llvm_cv_target_arch="XCore" ;;
3890   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3891   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3892   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3893   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3894   *)                      llvm_cv_target_arch="Unknown" ;;
3895 esac
3896 fi
3897 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3898 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3899
3900 if test "$llvm_cv_target_arch" = "Unknown" ; then
3901   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3902 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3903 fi
3904
3905 # Determine the LLVM native architecture for the target
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         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5312         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5313         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5314         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5315         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5316         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5317         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5318         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5319         host) case "$llvm_cv_target_arch" in
5320             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5321             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5322             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5323             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5324             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5325             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5326             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5327             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5328             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5329             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5330             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5331             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5332             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5333 echo "$as_me: error: Can not set target to build" >&2;}
5334    { (exit 1); exit 1; }; } ;;
5335           esac ;;
5336         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5337 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5338    { (exit 1); exit 1; }; } ;;
5339       esac
5340   done
5341   ;;
5342 esac
5343 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5344
5345
5346 # Determine whether we are building LLVM support for the native architecture.
5347 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5348 for a_target in $TARGETS_TO_BUILD; do
5349   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5353 _ACEOF
5354
5355     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5356     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5357     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5358     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5359     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5360       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5361     fi
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5365 _ACEOF
5366
5367
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5370 _ACEOF
5371
5372
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5375 _ACEOF
5376
5377
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5380 _ACEOF
5381
5382     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5386 _ACEOF
5387
5388     fi
5389   fi
5390 done
5391
5392 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5393 # target feature def files.
5394 LLVM_ENUM_TARGETS=""
5395 LLVM_ENUM_ASM_PRINTERS=""
5396 LLVM_ENUM_ASM_PARSERS=""
5397 LLVM_ENUM_DISASSEMBLERS=""
5398 for target_to_build in $TARGETS_TO_BUILD; do
5399   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5400   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5401     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5402   fi
5403   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5404     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5405   fi
5406   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5407     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5408   fi
5409 done
5410
5411
5412
5413
5414
5415 # Check whether --enable-cbe-printf-a was given.
5416 if test "${enable_cbe_printf_a+set}" = set; then
5417   enableval=$enable_cbe_printf_a;
5418 else
5419   enableval=default
5420 fi
5421
5422 case "$enableval" in
5423   yes) ENABLE_CBE_PRINTF_A=1
5424  ;;
5425   no)  ENABLE_CBE_PRINTF_A=0
5426  ;;
5427   default)  ENABLE_CBE_PRINTF_A=1
5428  ;;
5429   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5430 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5431    { (exit 1); exit 1; }; } ;;
5432 esac
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5436 _ACEOF
5437
5438
5439
5440 # Check whether --with-optimize-option was given.
5441 if test "${with_optimize_option+set}" = set; then
5442   withval=$with_optimize_option;
5443 else
5444   withval=default
5445 fi
5446
5447 { echo "$as_me:$LINENO: checking optimization flags" >&5
5448 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5449 case "$withval" in
5450   default)
5451     case "$llvm_cv_os_type" in
5452     FreeBSD) optimize_option=-O2 ;;
5453     MingW) optimize_option=-O2 ;;
5454     *)     optimize_option=-O3 ;;
5455     esac ;;
5456   *) optimize_option="$withval" ;;
5457 esac
5458 OPTIMIZE_OPTION=$optimize_option
5459
5460 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5461 echo "${ECHO_T}$optimize_option" >&6; }
5462
5463
5464 # Check whether --with-extra-options was given.
5465 if test "${with_extra_options+set}" = set; then
5466   withval=$with_extra_options;
5467 else
5468   withval=default
5469 fi
5470
5471 case "$withval" in
5472   default) EXTRA_OPTIONS= ;;
5473   *) EXTRA_OPTIONS=$withval ;;
5474 esac
5475 EXTRA_OPTIONS=$EXTRA_OPTIONS
5476
5477
5478
5479 # Check whether --with-extra-ld-options was given.
5480 if test "${with_extra_ld_options+set}" = set; then
5481   withval=$with_extra_ld_options;
5482 else
5483   withval=default
5484 fi
5485
5486 case "$withval" in
5487   default) EXTRA_LD_OPTIONS= ;;
5488   *) EXTRA_LD_OPTIONS=$withval ;;
5489 esac
5490 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5491
5492
5493 # Check whether --enable-bindings was given.
5494 if test "${enable_bindings+set}" = set; then
5495   enableval=$enable_bindings;
5496 else
5497   enableval=default
5498 fi
5499
5500 BINDINGS_TO_BUILD=""
5501 case "$enableval" in
5502   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5503   all ) BINDINGS_TO_BUILD="ocaml" ;;
5504   none | no) BINDINGS_TO_BUILD="" ;;
5505   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5506       case "$a_binding" in
5507         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5508         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5509 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5510    { (exit 1); exit 1; }; } ;;
5511       esac
5512   done
5513   ;;
5514 esac
5515
5516
5517 # Check whether --with-ocaml-libdir was given.
5518 if test "${with_ocaml_libdir+set}" = set; then
5519   withval=$with_ocaml_libdir;
5520 else
5521   withval=auto
5522 fi
5523
5524 case "$withval" in
5525   auto) with_ocaml_libdir="$withval" ;;
5526   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5527   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5528 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530 esac
5531
5532
5533 # Check whether --with-clang-srcdir was given.
5534 if test "${with_clang_srcdir+set}" = set; then
5535   withval=$with_clang_srcdir;
5536 else
5537   withval="-"
5538 fi
5539
5540 case "$withval" in
5541   -) clang_src_root="" ;;
5542   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5543   *) clang_src_root="$ac_pwd/$withval" ;;
5544 esac
5545 CLANG_SRC_ROOT=$clang_src_root
5546
5547
5548
5549 # Check whether --with-clang-resource-dir was given.
5550 if test "${with_clang_resource_dir+set}" = set; then
5551   withval=$with_clang_resource_dir;
5552 else
5553   withval=""
5554 fi
5555
5556
5557 cat >>confdefs.h <<_ACEOF
5558 #define CLANG_RESOURCE_DIR "$withval"
5559 _ACEOF
5560
5561
5562
5563 # Check whether --with-c-include-dirs was given.
5564 if test "${with_c_include_dirs+set}" = set; then
5565   withval=$with_c_include_dirs;
5566 else
5567   withval=""
5568 fi
5569
5570
5571 cat >>confdefs.h <<_ACEOF
5572 #define C_INCLUDE_DIRS "$withval"
5573 _ACEOF
5574
5575
5576
5577 # Check whether --with-cxx-include-root was given.
5578 if test "${with_cxx_include_root+set}" = set; then
5579   withval=$with_cxx_include_root;
5580 else
5581   withval=""
5582 fi
5583
5584
5585 cat >>confdefs.h <<_ACEOF
5586 #define CXX_INCLUDE_ROOT "$withval"
5587 _ACEOF
5588
5589
5590
5591 # Check whether --with-cxx-include-arch was given.
5592 if test "${with_cxx_include_arch+set}" = set; then
5593   withval=$with_cxx_include_arch;
5594 else
5595   withval=""
5596 fi
5597
5598
5599 cat >>confdefs.h <<_ACEOF
5600 #define CXX_INCLUDE_ARCH "$withval"
5601 _ACEOF
5602
5603
5604
5605 # Check whether --with-cxx-include-32bit-dir was given.
5606 if test "${with_cxx_include_32bit_dir+set}" = set; then
5607   withval=$with_cxx_include_32bit_dir;
5608 else
5609   withval=""
5610 fi
5611
5612
5613 cat >>confdefs.h <<_ACEOF
5614 #define CXX_INCLUDE_32BIT_DIR "$withval"
5615 _ACEOF
5616
5617
5618
5619 # Check whether --with-cxx-include-64bit-dir was given.
5620 if test "${with_cxx_include_64bit_dir+set}" = set; then
5621   withval=$with_cxx_include_64bit_dir;
5622 else
5623   withval=""
5624 fi
5625
5626
5627 cat >>confdefs.h <<_ACEOF
5628 #define CXX_INCLUDE_64BIT_DIR "$withval"
5629 _ACEOF
5630
5631
5632
5633 # Check whether --with-binutils-include was given.
5634 if test "${with_binutils_include+set}" = set; then
5635   withval=$with_binutils_include;
5636 else
5637   withval=default
5638 fi
5639
5640 case "$withval" in
5641   default) WITH_BINUTILS_INCDIR=default ;;
5642   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5643   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5644 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5645    { (exit 1); exit 1; }; } ;;
5646 esac
5647 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5648   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5649
5650   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5651      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5652      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5653 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5654    { (exit 1); exit 1; }; };
5655   fi
5656 fi
5657
5658
5659 # Check whether --with-bug-report-url was given.
5660 if test "${with_bug_report_url+set}" = set; then
5661   withval=$with_bug_report_url;
5662 else
5663   withval="http://llvm.org/bugs/"
5664 fi
5665
5666
5667 cat >>confdefs.h <<_ACEOF
5668 #define BUG_REPORT_URL "$withval"
5669 _ACEOF
5670
5671
5672 # Check whether --enable-libffi was given.
5673 if test "${enable_libffi+set}" = set; then
5674   enableval=$enable_libffi; case "$enableval" in
5675     yes) llvm_cv_enable_libffi="yes" ;;
5676     no)  llvm_cv_enable_libffi="no"  ;;
5677     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5678 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5679    { (exit 1); exit 1; }; } ;;
5680   esac
5681 else
5682   llvm_cv_enable_libffi=no
5683 fi
5684
5685
5686
5687 # Check whether --with-internal-prefix was given.
5688 if test "${with_internal_prefix+set}" = set; then
5689   withval=$with_internal_prefix;
5690 else
5691   withval=""
5692 fi
5693
5694 INTERNAL_PREFIX=$withval
5695
5696
5697
5698 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5699 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5700 if test "${lt_cv_path_NM+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if test -n "$NM"; then
5704   # Let the user override the test.
5705   lt_cv_path_NM="$NM"
5706 else
5707   lt_nm_to_check="${ac_tool_prefix}nm"
5708   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5709     lt_nm_to_check="$lt_nm_to_check nm"
5710   fi
5711   for lt_tmp_nm in $lt_nm_to_check; do
5712     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5714       IFS="$lt_save_ifs"
5715       test -z "$ac_dir" && ac_dir=.
5716       tmp_nm="$ac_dir/$lt_tmp_nm"
5717       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5718         # Check to see if the nm accepts a BSD-compat flag.
5719         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5720         #   nm: unknown option "B" ignored
5721         # Tru64's nm complains that /dev/null is an invalid object file
5722         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5723         */dev/null* | *'Invalid file or object type'*)
5724           lt_cv_path_NM="$tmp_nm -B"
5725           break
5726           ;;
5727         *)
5728           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5729           */dev/null*)
5730             lt_cv_path_NM="$tmp_nm -p"
5731             break
5732             ;;
5733           *)
5734             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5735             continue # so that we can try to find one that supports BSD flags
5736             ;;
5737           esac
5738           ;;
5739         esac
5740       fi
5741     done
5742     IFS="$lt_save_ifs"
5743   done
5744   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5745 fi
5746 fi
5747 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5748 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5749 NM="$lt_cv_path_NM"
5750
5751
5752
5753 { echo "$as_me:$LINENO: checking for GNU make" >&5
5754 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5755 if test "${llvm_cv_gnu_make_command+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   llvm_cv_gnu_make_command=''
5759  for a in "$MAKE" make gmake gnumake ; do
5760   if test -z "$a" ; then continue ; fi ;
5761   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5762   then
5763    llvm_cv_gnu_make_command=$a ;
5764    break;
5765   fi
5766  done
5767 fi
5768 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5769 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5770  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5771    ifGNUmake='' ;
5772  else
5773    ifGNUmake='#' ;
5774    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5775 echo "${ECHO_T}\"Not found\"" >&6; };
5776  fi
5777
5778
5779 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5781 LN_S=$as_ln_s
5782 if test "$LN_S" = "ln -s"; then
5783   { echo "$as_me:$LINENO: result: yes" >&5
5784 echo "${ECHO_T}yes" >&6; }
5785 else
5786   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787 echo "${ECHO_T}no, using $LN_S" >&6; }
5788 fi
5789
5790 # Extract the first word of "cmp", so it can be a program name with args.
5791 set dummy cmp; ac_word=$2
5792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794 if test "${ac_cv_path_CMP+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   case $CMP in
5798   [\\/]* | ?:[\\/]*)
5799   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5800   ;;
5801   *)
5802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5818   ;;
5819 esac
5820 fi
5821 CMP=$ac_cv_path_CMP
5822 if test -n "$CMP"; then
5823   { echo "$as_me:$LINENO: result: $CMP" >&5
5824 echo "${ECHO_T}$CMP" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831 # Extract the first word of "cp", so it can be a program name with args.
5832 set dummy cp; ac_word=$2
5833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835 if test "${ac_cv_path_CP+set}" = set; then
5836   echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838   case $CP in
5839   [\\/]* | ?:[\\/]*)
5840   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5841   ;;
5842   *)
5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5859   ;;
5860 esac
5861 fi
5862 CP=$ac_cv_path_CP
5863 if test -n "$CP"; then
5864   { echo "$as_me:$LINENO: result: $CP" >&5
5865 echo "${ECHO_T}$CP" >&6; }
5866 else
5867   { echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6; }
5869 fi
5870
5871
5872 # Extract the first word of "date", so it can be a program name with args.
5873 set dummy date; ac_word=$2
5874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876 if test "${ac_cv_path_DATE+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   case $DATE in
5880   [\\/]* | ?:[\\/]*)
5881   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5882   ;;
5883   *)
5884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897 IFS=$as_save_IFS
5898
5899   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5900   ;;
5901 esac
5902 fi
5903 DATE=$ac_cv_path_DATE
5904 if test -n "$DATE"; then
5905   { echo "$as_me:$LINENO: result: $DATE" >&5
5906 echo "${ECHO_T}$DATE" >&6; }
5907 else
5908   { echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6; }
5910 fi
5911
5912
5913 # Extract the first word of "find", so it can be a program name with args.
5914 set dummy find; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_path_FIND+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   case $FIND in
5921   [\\/]* | ?:[\\/]*)
5922   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5923   ;;
5924   *)
5925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928   IFS=$as_save_IFS
5929   test -z "$as_dir" && as_dir=.
5930   for ac_exec_ext in '' $ac_executable_extensions; do
5931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5932     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934     break 2
5935   fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5941   ;;
5942 esac
5943 fi
5944 FIND=$ac_cv_path_FIND
5945 if test -n "$FIND"; then
5946   { echo "$as_me:$LINENO: result: $FIND" >&5
5947 echo "${ECHO_T}$FIND" >&6; }
5948 else
5949   { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5951 fi
5952
5953
5954 # Extract the first word of "grep", so it can be a program name with args.
5955 set dummy grep; ac_word=$2
5956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958 if test "${ac_cv_path_GREP+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   case $GREP in
5962   [\\/]* | ?:[\\/]*)
5963   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5964   ;;
5965   *)
5966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971   for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5982   ;;
5983 esac
5984 fi
5985 GREP=$ac_cv_path_GREP
5986 if test -n "$GREP"; then
5987   { echo "$as_me:$LINENO: result: $GREP" >&5
5988 echo "${ECHO_T}$GREP" >&6; }
5989 else
5990   { echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6; }
5992 fi
5993
5994
5995 # Extract the first word of "mkdir", so it can be a program name with args.
5996 set dummy mkdir; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_MKDIR+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   case $MKDIR in
6003   [\\/]* | ?:[\\/]*)
6004   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6005   ;;
6006   *)
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012   for ac_exec_ext in '' $ac_executable_extensions; do
6013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6014     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6023   ;;
6024 esac
6025 fi
6026 MKDIR=$ac_cv_path_MKDIR
6027 if test -n "$MKDIR"; then
6028   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6029 echo "${ECHO_T}$MKDIR" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035
6036 # Extract the first word of "mv", so it can be a program name with args.
6037 set dummy mv; ac_word=$2
6038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6040 if test "${ac_cv_path_MV+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   case $MV in
6044   [\\/]* | ?:[\\/]*)
6045   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6046   ;;
6047   *)
6048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6064   ;;
6065 esac
6066 fi
6067 MV=$ac_cv_path_MV
6068 if test -n "$MV"; then
6069   { echo "$as_me:$LINENO: result: $MV" >&5
6070 echo "${ECHO_T}$MV" >&6; }
6071 else
6072   { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6074 fi
6075
6076
6077 if test -n "$ac_tool_prefix"; then
6078   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6082 if test "${ac_cv_prog_RANLIB+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   if test -n "$RANLIB"; then
6086   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093   for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 RANLIB=$ac_cv_prog_RANLIB
6106 if test -n "$RANLIB"; then
6107   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6108 echo "${ECHO_T}$RANLIB" >&6; }
6109 else
6110   { echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6; }
6112 fi
6113
6114
6115 fi
6116 if test -z "$ac_cv_prog_RANLIB"; then
6117   ac_ct_RANLIB=$RANLIB
6118   # Extract the first word of "ranlib", so it can be a program name with args.
6119 set dummy ranlib; ac_word=$2
6120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6122 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6123   echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125   if test -n "$ac_ct_RANLIB"; then
6126   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133   for ac_exec_ext in '' $ac_executable_extensions; do
6134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6135     ac_cv_prog_ac_ct_RANLIB="ranlib"
6136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6146 if test -n "$ac_ct_RANLIB"; then
6147   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6148 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6149 else
6150   { echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6; }
6152 fi
6153
6154   if test "x$ac_ct_RANLIB" = x; then
6155     RANLIB=":"
6156   else
6157     case $cross_compiling:$ac_tool_warned in
6158 yes:)
6159 { echo "$as_me:$LINENO: 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." >&5
6162 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6163 whose name does not start with the host triplet.  If you think this
6164 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167     RANLIB=$ac_ct_RANLIB
6168   fi
6169 else
6170   RANLIB="$ac_cv_prog_RANLIB"
6171 fi
6172
6173 if test -n "$ac_tool_prefix"; then
6174   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6175 set dummy ${ac_tool_prefix}ar; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_prog_AR+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   if test -n "$AR"; then
6182   ac_cv_prog_AR="$AR" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6186 do
6187   IFS=$as_save_IFS
6188   test -z "$as_dir" && as_dir=.
6189   for ac_exec_ext in '' $ac_executable_extensions; do
6190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6191     ac_cv_prog_AR="${ac_tool_prefix}ar"
6192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193     break 2
6194   fi
6195 done
6196 done
6197 IFS=$as_save_IFS
6198
6199 fi
6200 fi
6201 AR=$ac_cv_prog_AR
6202 if test -n "$AR"; then
6203   { echo "$as_me:$LINENO: result: $AR" >&5
6204 echo "${ECHO_T}$AR" >&6; }
6205 else
6206   { echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6; }
6208 fi
6209
6210
6211 fi
6212 if test -z "$ac_cv_prog_AR"; then
6213   ac_ct_AR=$AR
6214   # Extract the first word of "ar", so it can be a program name with args.
6215 set dummy ar; ac_word=$2
6216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6218 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   if test -n "$ac_ct_AR"; then
6222   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6223 else
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH
6226 do
6227   IFS=$as_save_IFS
6228   test -z "$as_dir" && as_dir=.
6229   for ac_exec_ext in '' $ac_executable_extensions; do
6230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6231     ac_cv_prog_ac_ct_AR="ar"
6232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6233     break 2
6234   fi
6235 done
6236 done
6237 IFS=$as_save_IFS
6238
6239 fi
6240 fi
6241 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6242 if test -n "$ac_ct_AR"; then
6243   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6244 echo "${ECHO_T}$ac_ct_AR" >&6; }
6245 else
6246   { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6248 fi
6249
6250   if test "x$ac_ct_AR" = x; then
6251     AR="false"
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { echo "$as_me:$LINENO: 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." >&5
6258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet.  If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6261 ac_tool_warned=yes ;;
6262 esac
6263     AR=$ac_ct_AR
6264   fi
6265 else
6266   AR="$ac_cv_prog_AR"
6267 fi
6268
6269 # Extract the first word of "rm", so it can be a program name with args.
6270 set dummy rm; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_RM+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   case $RM in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6297   ;;
6298 esac
6299 fi
6300 RM=$ac_cv_path_RM
6301 if test -n "$RM"; then
6302   { echo "$as_me:$LINENO: result: $RM" >&5
6303 echo "${ECHO_T}$RM" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310 # Extract the first word of "sed", so it can be a program name with args.
6311 set dummy sed; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_SED+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   case $SED in
6318   [\\/]* | ?:[\\/]*)
6319   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6320   ;;
6321   *)
6322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327   for ac_exec_ext in '' $ac_executable_extensions; do
6328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6338   ;;
6339 esac
6340 fi
6341 SED=$ac_cv_path_SED
6342 if test -n "$SED"; then
6343   { echo "$as_me:$LINENO: result: $SED" >&5
6344 echo "${ECHO_T}$SED" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6348 fi
6349
6350
6351 # Extract the first word of "tar", so it can be a program name with args.
6352 set dummy tar; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_TAR+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   case $TAR in
6359   [\\/]* | ?:[\\/]*)
6360   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6361   ;;
6362   *)
6363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6379   ;;
6380 esac
6381 fi
6382 TAR=$ac_cv_path_TAR
6383 if test -n "$TAR"; then
6384   { echo "$as_me:$LINENO: result: $TAR" >&5
6385 echo "${ECHO_T}$TAR" >&6; }
6386 else
6387   { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6389 fi
6390
6391
6392 # Extract the first word of "pwd", so it can be a program name with args.
6393 set dummy pwd; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_BINPWD+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   case $BINPWD in
6400   [\\/]* | ?:[\\/]*)
6401   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6402   ;;
6403   *)
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6420   ;;
6421 esac
6422 fi
6423 BINPWD=$ac_cv_path_BINPWD
6424 if test -n "$BINPWD"; then
6425   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6426 echo "${ECHO_T}$BINPWD" >&6; }
6427 else
6428   { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6430 fi
6431
6432
6433
6434 # Extract the first word of "Graphviz", so it can be a program name with args.
6435 set dummy Graphviz; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   case $GRAPHVIZ in
6442   [\\/]* | ?:[\\/]*)
6443   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6444   ;;
6445   *)
6446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451   for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6462   ;;
6463 esac
6464 fi
6465 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6466 if test -n "$GRAPHVIZ"; then
6467   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6468 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6469 else
6470   { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6472 fi
6473
6474
6475 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6476
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_GRAPHVIZ 1
6479 _ACEOF
6480
6481     if test "$llvm_cv_os_type" = "MingW" ; then
6482     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6483   fi
6484
6485 cat >>confdefs.h <<_ACEOF
6486 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6487 _ACEOF
6488
6489 fi
6490 # Extract the first word of "dot", so it can be a program name with args.
6491 set dummy dot; ac_word=$2
6492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6494 if test "${ac_cv_path_DOT+set}" = set; then
6495   echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497   case $DOT in
6498   [\\/]* | ?:[\\/]*)
6499   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6500   ;;
6501   *)
6502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6504 do
6505   IFS=$as_save_IFS
6506   test -z "$as_dir" && as_dir=.
6507   for ac_exec_ext in '' $ac_executable_extensions; do
6508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6509     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511     break 2
6512   fi
6513 done
6514 done
6515 IFS=$as_save_IFS
6516
6517   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6518   ;;
6519 esac
6520 fi
6521 DOT=$ac_cv_path_DOT
6522 if test -n "$DOT"; then
6523   { echo "$as_me:$LINENO: result: $DOT" >&5
6524 echo "${ECHO_T}$DOT" >&6; }
6525 else
6526   { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6528 fi
6529
6530
6531 if test "$DOT" != "echo dot" ; then
6532
6533 cat >>confdefs.h <<\_ACEOF
6534 #define HAVE_DOT 1
6535 _ACEOF
6536
6537     if test "$llvm_cv_os_type" = "MingW" ; then
6538     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6539   fi
6540
6541 cat >>confdefs.h <<_ACEOF
6542 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6543 _ACEOF
6544
6545 fi
6546 # Extract the first word of "fdp", so it can be a program name with args.
6547 set dummy fdp; ac_word=$2
6548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6550 if test "${ac_cv_path_FDP+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553   case $FDP in
6554   [\\/]* | ?:[\\/]*)
6555   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6556   ;;
6557   *)
6558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563   for ac_exec_ext in '' $ac_executable_extensions; do
6564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6565     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570 done
6571 IFS=$as_save_IFS
6572
6573   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6574   ;;
6575 esac
6576 fi
6577 FDP=$ac_cv_path_FDP
6578 if test -n "$FDP"; then
6579   { echo "$as_me:$LINENO: result: $FDP" >&5
6580 echo "${ECHO_T}$FDP" >&6; }
6581 else
6582   { echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6; }
6584 fi
6585
6586
6587 if test "$FDP" != "echo fdp" ; then
6588
6589 cat >>confdefs.h <<\_ACEOF
6590 #define HAVE_FDP 1
6591 _ACEOF
6592
6593     if test "$llvm_cv_os_type" = "MingW" ; then
6594     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6595   fi
6596
6597 cat >>confdefs.h <<_ACEOF
6598 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6599 _ACEOF
6600
6601 fi
6602 # Extract the first word of "neato", so it can be a program name with args.
6603 set dummy neato; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_path_NEATO+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   case $NEATO in
6610   [\\/]* | ?:[\\/]*)
6611   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6612   ;;
6613   *)
6614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6630   ;;
6631 esac
6632 fi
6633 NEATO=$ac_cv_path_NEATO
6634 if test -n "$NEATO"; then
6635   { echo "$as_me:$LINENO: result: $NEATO" >&5
6636 echo "${ECHO_T}$NEATO" >&6; }
6637 else
6638   { echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6; }
6640 fi
6641
6642
6643 if test "$NEATO" != "echo neato" ; then
6644
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_NEATO 1
6647 _ACEOF
6648
6649     if test "$llvm_cv_os_type" = "MingW" ; then
6650     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6651   fi
6652
6653 cat >>confdefs.h <<_ACEOF
6654 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6655 _ACEOF
6656
6657 fi
6658 # Extract the first word of "twopi", so it can be a program name with args.
6659 set dummy twopi; ac_word=$2
6660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662 if test "${ac_cv_path_TWOPI+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   case $TWOPI in
6666   [\\/]* | ?:[\\/]*)
6667   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6668   ;;
6669   *)
6670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6686   ;;
6687 esac
6688 fi
6689 TWOPI=$ac_cv_path_TWOPI
6690 if test -n "$TWOPI"; then
6691   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6692 echo "${ECHO_T}$TWOPI" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699 if test "$TWOPI" != "echo twopi" ; then
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_TWOPI 1
6703 _ACEOF
6704
6705     if test "$llvm_cv_os_type" = "MingW" ; then
6706     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6707   fi
6708
6709 cat >>confdefs.h <<_ACEOF
6710 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6711 _ACEOF
6712
6713 fi
6714 # Extract the first word of "circo", so it can be a program name with args.
6715 set dummy circo; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_CIRCO+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   case $CIRCO in
6722   [\\/]* | ?:[\\/]*)
6723   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6724   ;;
6725   *)
6726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6742   ;;
6743 esac
6744 fi
6745 CIRCO=$ac_cv_path_CIRCO
6746 if test -n "$CIRCO"; then
6747   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6748 echo "${ECHO_T}$CIRCO" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 if test "$CIRCO" != "echo circo" ; then
6756
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_CIRCO 1
6759 _ACEOF
6760
6761     if test "$llvm_cv_os_type" = "MingW" ; then
6762     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6763   fi
6764
6765 cat >>confdefs.h <<_ACEOF
6766 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6767 _ACEOF
6768
6769 fi
6770 for ac_prog in gv gsview32
6771 do
6772   # Extract the first word of "$ac_prog", so it can be a program name with args.
6773 set dummy $ac_prog; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_GV+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   case $GV in
6780   [\\/]* | ?:[\\/]*)
6781   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6782   ;;
6783   *)
6784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799   ;;
6800 esac
6801 fi
6802 GV=$ac_cv_path_GV
6803 if test -n "$GV"; then
6804   { echo "$as_me:$LINENO: result: $GV" >&5
6805 echo "${ECHO_T}$GV" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812   test -n "$GV" && break
6813 done
6814 test -n "$GV" || GV="echo gv"
6815
6816 if test "$GV" != "echo gv" ; then
6817
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_GV 1
6820 _ACEOF
6821
6822     if test "$llvm_cv_os_type" = "MingW" ; then
6823     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6824   fi
6825
6826 cat >>confdefs.h <<_ACEOF
6827 #define LLVM_PATH_GV "$GV${EXEEXT}"
6828 _ACEOF
6829
6830 fi
6831 # Extract the first word of "dotty", so it can be a program name with args.
6832 set dummy dotty; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_DOTTY+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   case $DOTTY in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6859   ;;
6860 esac
6861 fi
6862 DOTTY=$ac_cv_path_DOTTY
6863 if test -n "$DOTTY"; then
6864   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6865 echo "${ECHO_T}$DOTTY" >&6; }
6866 else
6867   { echo "$as_me:$LINENO: result: no" >&5
6868 echo "${ECHO_T}no" >&6; }
6869 fi
6870
6871
6872 if test "$DOTTY" != "echo dotty" ; then
6873
6874 cat >>confdefs.h <<\_ACEOF
6875 #define HAVE_DOTTY 1
6876 _ACEOF
6877
6878     if test "$llvm_cv_os_type" = "MingW" ; then
6879     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6880   fi
6881
6882 cat >>confdefs.h <<_ACEOF
6883 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6884 _ACEOF
6885
6886 fi
6887 # Extract the first word of "xdot.py", so it can be a program name with args.
6888 set dummy xdot.py; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   case $XDOT_PY in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904   for ac_exec_ext in '' $ac_executable_extensions; do
6905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6906     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911 done
6912 IFS=$as_save_IFS
6913
6914   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6915   ;;
6916 esac
6917 fi
6918 XDOT_PY=$ac_cv_path_XDOT_PY
6919 if test -n "$XDOT_PY"; then
6920   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6921 echo "${ECHO_T}$XDOT_PY" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928 if test "$XDOT_PY" != "echo xdot.py" ; then
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_XDOT_PY 1
6932 _ACEOF
6933
6934     if test "$llvm_cv_os_type" = "MingW" ; then
6935     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6936   fi
6937
6938 cat >>confdefs.h <<_ACEOF
6939 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6940 _ACEOF
6941
6942 fi
6943
6944
6945 # Extract the first word of "perl", so it can be a program name with args.
6946 set dummy perl; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_PERL+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $PERL in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6973   ;;
6974 esac
6975 fi
6976 PERL=$ac_cv_path_PERL
6977 if test -n "$PERL"; then
6978   { echo "$as_me:$LINENO: result: $PERL" >&5
6979 echo "${ECHO_T}$PERL" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 if test "$PERL" != "none"; then
6987   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6988 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6989   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6990     { echo "$as_me:$LINENO: result: yes" >&5
6991 echo "${ECHO_T}yes" >&6; }
6992   else
6993     PERL=none
6994     { echo "$as_me:$LINENO: result: not found" >&5
6995 echo "${ECHO_T}not found" >&6; }
6996   fi
6997 fi
6998
6999
7000 if test x"$PERL" = xnone; then
7001    HAVE_PERL=0
7002
7003    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7004 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7005    { (exit 1); exit 1; }; }
7006 else
7007    HAVE_PERL=1
7008
7009 fi
7010
7011 # Find a good install program.  We prefer a C program (faster),
7012 # so one script is as good as another.  But avoid the broken or
7013 # incompatible versions:
7014 # SysV /etc/install, /usr/sbin/install
7015 # SunOS /usr/etc/install
7016 # IRIX /sbin/install
7017 # AIX /bin/install
7018 # AmigaOS /C/install, which installs bootblocks on floppy discs
7019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7022 # OS/2's system install, which has a completely different semantic
7023 # ./install, which can be erroneously created by make from ./install.sh.
7024 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7025 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7026 if test -z "$INSTALL"; then
7027 if test "${ac_cv_path_install+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035   # Account for people who put trailing slashes in PATH elements.
7036 case $as_dir/ in
7037   ./ | .// | /cC/* | \
7038   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7039   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7040   /usr/ucb/* ) ;;
7041   *)
7042     # OSF1 and SCO ODT 3.0 have their own names for install.
7043     # Don't use installbsd from OSF since it installs stuff as root
7044     # by default.
7045     for ac_prog in ginstall scoinst install; do
7046       for ac_exec_ext in '' $ac_executable_extensions; do
7047         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7048           if test $ac_prog = install &&
7049             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050             # AIX install.  It has an incompatible calling convention.
7051             :
7052           elif test $ac_prog = install &&
7053             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7054             # program-specific install script used by HP pwplus--don't use.
7055             :
7056           else
7057             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7058             break 3
7059           fi
7060         fi
7061       done
7062     done
7063     ;;
7064 esac
7065 done
7066 IFS=$as_save_IFS
7067
7068
7069 fi
7070   if test "${ac_cv_path_install+set}" = set; then
7071     INSTALL=$ac_cv_path_install
7072   else
7073     # As a last resort, use the slow shell script.  Don't cache a
7074     # value for INSTALL within a source directory, because that will
7075     # break other packages using the cache if that directory is
7076     # removed, or if the value is a relative name.
7077     INSTALL=$ac_install_sh
7078   fi
7079 fi
7080 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7081 echo "${ECHO_T}$INSTALL" >&6; }
7082
7083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7084 # It thinks the first close brace ends the variable substitution.
7085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7086
7087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7088
7089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7090
7091 case "$INSTALL" in
7092  [\\/$]* | ?:[\\/]* ) ;;
7093  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7094 esac
7095
7096 # Extract the first word of "bzip2", so it can be a program name with args.
7097 set dummy bzip2; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_BZIP2+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   case $BZIP2 in
7104   [\\/]* | ?:[\\/]*)
7105   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7106   ;;
7107   *)
7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123   ;;
7124 esac
7125 fi
7126 BZIP2=$ac_cv_path_BZIP2
7127 if test -n "$BZIP2"; then
7128   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7129 echo "${ECHO_T}$BZIP2" >&6; }
7130 else
7131   { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7133 fi
7134
7135
7136 # Extract the first word of "cat", so it can be a program name with args.
7137 set dummy cat; ac_word=$2
7138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140 if test "${ac_cv_path_CAT+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   case $CAT in
7144   [\\/]* | ?:[\\/]*)
7145   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7146   ;;
7147   *)
7148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153   for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163   ;;
7164 esac
7165 fi
7166 CAT=$ac_cv_path_CAT
7167 if test -n "$CAT"; then
7168   { echo "$as_me:$LINENO: result: $CAT" >&5
7169 echo "${ECHO_T}$CAT" >&6; }
7170 else
7171   { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7173 fi
7174
7175
7176 # Extract the first word of "doxygen", so it can be a program name with args.
7177 set dummy doxygen; ac_word=$2
7178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7181   echo $ECHO_N "(cached) $ECHO_C" >&6
7182 else
7183   case $DOXYGEN in
7184   [\\/]* | ?:[\\/]*)
7185   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7186   ;;
7187   *)
7188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203   ;;
7204 esac
7205 fi
7206 DOXYGEN=$ac_cv_path_DOXYGEN
7207 if test -n "$DOXYGEN"; then
7208   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7209 echo "${ECHO_T}$DOXYGEN" >&6; }
7210 else
7211   { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7213 fi
7214
7215
7216 # Extract the first word of "groff", so it can be a program name with args.
7217 set dummy groff; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_path_GROFF+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   case $GROFF in
7224   [\\/]* | ?:[\\/]*)
7225   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7226   ;;
7227   *)
7228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231   IFS=$as_save_IFS
7232   test -z "$as_dir" && as_dir=.
7233   for ac_exec_ext in '' $ac_executable_extensions; do
7234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237     break 2
7238   fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243   ;;
7244 esac
7245 fi
7246 GROFF=$ac_cv_path_GROFF
7247 if test -n "$GROFF"; then
7248   { echo "$as_me:$LINENO: result: $GROFF" >&5
7249 echo "${ECHO_T}$GROFF" >&6; }
7250 else
7251   { echo "$as_me:$LINENO: result: no" >&5
7252 echo "${ECHO_T}no" >&6; }
7253 fi
7254
7255
7256 # Extract the first word of "gzip", so it can be a program name with args.
7257 set dummy gzip; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   case $GZIPBIN in
7264   [\\/]* | ?:[\\/]*)
7265   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7266   ;;
7267   *)
7268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283   ;;
7284 esac
7285 fi
7286 GZIPBIN=$ac_cv_path_GZIPBIN
7287 if test -n "$GZIPBIN"; then
7288   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7289 echo "${ECHO_T}$GZIPBIN" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 # Extract the first word of "pod2html", so it can be a program name with args.
7297 set dummy pod2html; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_POD2HTML+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   case $POD2HTML in
7304   [\\/]* | ?:[\\/]*)
7305   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7306   ;;
7307   *)
7308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313   for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323   ;;
7324 esac
7325 fi
7326 POD2HTML=$ac_cv_path_POD2HTML
7327 if test -n "$POD2HTML"; then
7328   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7329 echo "${ECHO_T}$POD2HTML" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335
7336 # Extract the first word of "pod2man", so it can be a program name with args.
7337 set dummy pod2man; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_path_POD2MAN+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   case $POD2MAN in
7344   [\\/]* | ?:[\\/]*)
7345   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7346   ;;
7347   *)
7348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353   for ac_exec_ext in '' $ac_executable_extensions; do
7354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363   ;;
7364 esac
7365 fi
7366 POD2MAN=$ac_cv_path_POD2MAN
7367 if test -n "$POD2MAN"; then
7368   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7369 echo "${ECHO_T}$POD2MAN" >&6; }
7370 else
7371   { echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6; }
7373 fi
7374
7375
7376 # Extract the first word of "pdfroff", so it can be a program name with args.
7377 set dummy pdfroff; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_PDFROFF+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   case $PDFROFF in
7384   [\\/]* | ?:[\\/]*)
7385   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7386   ;;
7387   *)
7388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391   IFS=$as_save_IFS
7392   test -z "$as_dir" && as_dir=.
7393   for ac_exec_ext in '' $ac_executable_extensions; do
7394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397     break 2
7398   fi
7399 done
7400 done
7401 IFS=$as_save_IFS
7402
7403   ;;
7404 esac
7405 fi
7406 PDFROFF=$ac_cv_path_PDFROFF
7407 if test -n "$PDFROFF"; then
7408   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7409 echo "${ECHO_T}$PDFROFF" >&6; }
7410 else
7411   { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7413 fi
7414
7415
7416 # Extract the first word of "runtest", so it can be a program name with args.
7417 set dummy runtest; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_path_RUNTEST+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   case $RUNTEST in
7424   [\\/]* | ?:[\\/]*)
7425   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7426   ;;
7427   *)
7428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433   for ac_exec_ext in '' $ac_executable_extensions; do
7434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7435     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443   ;;
7444 esac
7445 fi
7446 RUNTEST=$ac_cv_path_RUNTEST
7447 if test -n "$RUNTEST"; then
7448   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7449 echo "${ECHO_T}$RUNTEST" >&6; }
7450 else
7451   { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453 fi
7454
7455
7456
7457 no_itcl=true
7458 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7459 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7460
7461 # Check whether --with-tclinclude was given.
7462 if test "${with_tclinclude+set}" = set; then
7463   withval=$with_tclinclude; with_tclinclude=${withval}
7464 else
7465   with_tclinclude=''
7466 fi
7467
7468 if test "${ac_cv_path_tclsh+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471
7472 if test x"${with_tclinclude}" != x ; then
7473   if test -f ${with_tclinclude}/tclsh ; then
7474     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7475   elif test -f ${with_tclinclude}/src/tclsh ; then
7476     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7477   else
7478     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7479 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7480    { (exit 1); exit 1; }; }
7481   fi
7482 fi
7483 fi
7484
7485
7486 if test x"${ac_cv_path_tclsh}" = x ; then
7487   { echo "$as_me:$LINENO: result: none" >&5
7488 echo "${ECHO_T}none" >&6; }
7489   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
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_TCLSH+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $TCLSH in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   ;;
7519 esac
7520 fi
7521 TCLSH=$ac_cv_path_TCLSH
7522 if test -n "$TCLSH"; then
7523   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7524 echo "${ECHO_T}$TCLSH" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531   test -n "$TCLSH" && break
7532 done
7533
7534   if test x"${TCLSH}" = x ; then
7535     ac_cv_path_tclsh='';
7536   else
7537     ac_cv_path_tclsh="${TCLSH}";
7538   fi
7539 else
7540   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7541 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7542   TCLSH="${ac_cv_path_tclsh}"
7543
7544 fi
7545
7546 # Extract the first word of "zip", so it can be a program name with args.
7547 set dummy zip; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_path_ZIP+set}" = set; then
7551   echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553   case $ZIP in
7554   [\\/]* | ?:[\\/]*)
7555   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7556   ;;
7557   *)
7558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561   IFS=$as_save_IFS
7562   test -z "$as_dir" && as_dir=.
7563   for ac_exec_ext in '' $ac_executable_extensions; do
7564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7565     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567     break 2
7568   fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573   ;;
7574 esac
7575 fi
7576 ZIP=$ac_cv_path_ZIP
7577 if test -n "$ZIP"; then
7578   { echo "$as_me:$LINENO: result: $ZIP" >&5
7579 echo "${ECHO_T}$ZIP" >&6; }
7580 else
7581   { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7583 fi
7584
7585
7586 for ac_prog in ocamlc
7587 do
7588   # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7592 if test "${ac_cv_path_OCAMLC+set}" = set; then
7593   echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595   case $OCAMLC in
7596   [\\/]* | ?:[\\/]*)
7597   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7598   ;;
7599   *)
7600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7602 do
7603   IFS=$as_save_IFS
7604   test -z "$as_dir" && as_dir=.
7605   for ac_exec_ext in '' $ac_executable_extensions; do
7606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610   fi
7611 done
7612 done
7613 IFS=$as_save_IFS
7614
7615   ;;
7616 esac
7617 fi
7618 OCAMLC=$ac_cv_path_OCAMLC
7619 if test -n "$OCAMLC"; then
7620   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7621 echo "${ECHO_T}$OCAMLC" >&6; }
7622 else
7623   { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7625 fi
7626
7627
7628   test -n "$OCAMLC" && break
7629 done
7630
7631 for ac_prog in ocamlopt
7632 do
7633   # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7637 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640   case $OCAMLOPT in
7641   [\\/]* | ?:[\\/]*)
7642   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7643   ;;
7644   *)
7645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7647 do
7648   IFS=$as_save_IFS
7649   test -z "$as_dir" && as_dir=.
7650   for ac_exec_ext in '' $ac_executable_extensions; do
7651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7652     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7654     break 2
7655   fi
7656 done
7657 done
7658 IFS=$as_save_IFS
7659
7660   ;;
7661 esac
7662 fi
7663 OCAMLOPT=$ac_cv_path_OCAMLOPT
7664 if test -n "$OCAMLOPT"; then
7665   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7666 echo "${ECHO_T}$OCAMLOPT" >&6; }
7667 else
7668   { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7670 fi
7671
7672
7673   test -n "$OCAMLOPT" && break
7674 done
7675
7676 for ac_prog in ocamldep
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7682 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7683   echo $ECHO_N "(cached) $ECHO_C" >&6
7684 else
7685   case $OCAMLDEP in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695   for ac_exec_ext in '' $ac_executable_extensions; do
7696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7697     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705   ;;
7706 esac
7707 fi
7708 OCAMLDEP=$ac_cv_path_OCAMLDEP
7709 if test -n "$OCAMLDEP"; then
7710   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7711 echo "${ECHO_T}$OCAMLDEP" >&6; }
7712 else
7713   { echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6; }
7715 fi
7716
7717
7718   test -n "$OCAMLDEP" && break
7719 done
7720
7721 for ac_prog in ocamldoc
7722 do
7723   # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7727 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   case $OCAMLDOC in
7731   [\\/]* | ?:[\\/]*)
7732   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7733   ;;
7734   *)
7735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738   IFS=$as_save_IFS
7739   test -z "$as_dir" && as_dir=.
7740   for ac_exec_ext in '' $ac_executable_extensions; do
7741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7742     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744     break 2
7745   fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750   ;;
7751 esac
7752 fi
7753 OCAMLDOC=$ac_cv_path_OCAMLDOC
7754 if test -n "$OCAMLDOC"; then
7755   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7756 echo "${ECHO_T}$OCAMLDOC" >&6; }
7757 else
7758   { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7760 fi
7761
7762
7763   test -n "$OCAMLDOC" && break
7764 done
7765
7766 for ac_prog in gas as
7767 do
7768   # Extract the first word of "$ac_prog", so it can be a program name with args.
7769 set dummy $ac_prog; ac_word=$2
7770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772 if test "${ac_cv_path_GAS+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   case $GAS in
7776   [\\/]* | ?:[\\/]*)
7777   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7778   ;;
7779   *)
7780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785   for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795   ;;
7796 esac
7797 fi
7798 GAS=$ac_cv_path_GAS
7799 if test -n "$GAS"; then
7800   { echo "$as_me:$LINENO: result: $GAS" >&5
7801 echo "${ECHO_T}$GAS" >&6; }
7802 else
7803   { echo "$as_me:$LINENO: result: no" >&5
7804 echo "${ECHO_T}no" >&6; }
7805 fi
7806
7807
7808   test -n "$GAS" && break
7809 done
7810
7811
7812 { echo "$as_me:$LINENO: checking for linker version" >&5
7813 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7814 if test "${llvm_cv_link_version+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817
7818    version_string="$(ld -v 2>&1 | head -1)"
7819
7820    # Check for ld64.
7821    if (echo "$version_string" | grep -q "ld64"); then
7822      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7823    else
7824      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7825    fi
7826
7827 fi
7828 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7829 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7830
7831 cat >>confdefs.h <<_ACEOF
7832 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7833 _ACEOF
7834
7835
7836
7837 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7838 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7839 if test "${llvm_cv_link_use_r+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842    ac_ext=c
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847
7848   oldcflags="$CFLAGS"
7849   CFLAGS="$CFLAGS -Wl,-R."
7850   cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h.  */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h.  */
7856
7857 int
7858 main ()
7859 {
7860
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7867 case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872   (eval "$ac_link") 2>conftest.er1
7873   ac_status=$?
7874   grep -v '^ *+' conftest.er1 >conftest.err
7875   rm -f conftest.er1
7876   cat conftest.err >&5
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); } &&
7879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7880   { (case "(($ac_try" in
7881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882   *) ac_try_echo=$ac_try;;
7883 esac
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885   (eval "$ac_try") 2>&5
7886   ac_status=$?
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); }; } &&
7889          { ac_try='test -s conftest$ac_exeext'
7890   { (case "(($ac_try" in
7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892   *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895   (eval "$ac_try") 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; }; then
7899   llvm_cv_link_use_r=yes
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904         llvm_cv_link_use_r=no
7905 fi
7906
7907 rm -f core conftest.err conftest.$ac_objext \
7908       conftest$ac_exeext conftest.$ac_ext
7909   CFLAGS="$oldcflags"
7910   ac_ext=c
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915
7916
7917 fi
7918 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7919 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7920 if test "$llvm_cv_link_use_r" = yes ; then
7921
7922 cat >>confdefs.h <<\_ACEOF
7923 #define HAVE_LINK_R 1
7924 _ACEOF
7925
7926   fi
7927
7928
7929 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7930 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7931 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934    ac_ext=c
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939
7940   oldcflags="$CFLAGS"
7941   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7942   cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949 int
7950 main ()
7951 {
7952
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7959 case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_link") 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } &&
7971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7972   { (case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_try") 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; } &&
7981          { ac_try='test -s conftest$ac_exeext'
7982   { (case "(($ac_try" in
7983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984   *) ac_try_echo=$ac_try;;
7985 esac
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987   (eval "$ac_try") 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   llvm_cv_link_use_export_dynamic=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         llvm_cv_link_use_export_dynamic=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext \
8000       conftest$ac_exeext conftest.$ac_ext
8001   CFLAGS="$oldcflags"
8002   ac_ext=c
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007
8008
8009 fi
8010 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8011 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8012 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8013
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_LINK_EXPORT_DYNAMIC 1
8016 _ACEOF
8017
8018   fi
8019
8020
8021 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8022 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8023 if test "${llvm_cv_link_use_version_script+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026    ac_ext=c
8027 ac_cpp='$CPP $CPPFLAGS'
8028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031
8032   oldcflags="$CFLAGS"
8033
8034   # The following code is from the autoconf manual,
8035   # "11.13: Limitations of Usual Tools".
8036   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8037   # Use mktemp if possible; otherwise fall back on mkdir,
8038   # with $RANDOM to make collisions less likely.
8039   : ${TMPDIR=/tmp}
8040   {
8041     tmp=`
8042       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8043     ` &&
8044     test -n "$tmp" && test -d "$tmp"
8045   } || {
8046     tmp=$TMPDIR/foo$$-$RANDOM
8047     (umask 077 && mkdir "$tmp")
8048   } || exit $?
8049
8050   echo "{" > "$tmp/export.map"
8051   echo "  global: main;" >> "$tmp/export.map"
8052   echo "  local: *;" >> "$tmp/export.map"
8053   echo "};" >> "$tmp/export.map"
8054
8055   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062
8063 int
8064 main ()
8065 {
8066
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8073 case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_link") 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086   { (case "(($ac_try" in
8087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088   *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091   (eval "$ac_try") 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; } &&
8095          { ac_try='test -s conftest$ac_exeext'
8096   { (case "(($ac_try" in
8097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098   *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101   (eval "$ac_try") 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   llvm_cv_link_use_version_script=yes
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110         llvm_cv_link_use_version_script=no
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext \
8114       conftest$ac_exeext conftest.$ac_ext
8115   rm "$tmp/export.map"
8116   rmdir "$tmp"
8117   CFLAGS="$oldcflags"
8118   ac_ext=c
8119 ac_cpp='$CPP $CPPFLAGS'
8120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123
8124
8125 fi
8126 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8127 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8128 if test "$llvm_cv_link_use_version_script" = yes ; then
8129   HAVE_LINK_VERSION_SCRIPT=1
8130
8131   fi
8132
8133
8134
8135
8136 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8137 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8138 if test "${ac_cv_c_const+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147
8148 int
8149 main ()
8150 {
8151 /* FIXME: Include the comments suggested by Paul. */
8152 #ifndef __cplusplus
8153   /* Ultrix mips cc rejects this.  */
8154   typedef int charset[2];
8155   const charset x;
8156   /* SunOS 4.1.1 cc rejects this.  */
8157   char const *const *ccp;
8158   char **p;
8159   /* NEC SVR4.0.2 mips cc rejects this.  */
8160   struct point {int x, y;};
8161   static struct point const zero = {0,0};
8162   /* AIX XL C 1.02.0.0 rejects this.
8163      It does not let you subtract one const X* pointer from another in
8164      an arm of an if-expression whose if-part is not a constant
8165      expression */
8166   const char *g = "string";
8167   ccp = &g + (g ? g-g : 0);
8168   /* HPUX 7.0 cc rejects these. */
8169   ++ccp;
8170   p = (char**) ccp;
8171   ccp = (char const *const *) p;
8172   { /* SCO 3.2v4 cc rejects this.  */
8173     char *t;
8174     char const *s = 0 ? (char *) 0 : (char const *) 0;
8175
8176     *t++ = 0;
8177     if (s) return 0;
8178   }
8179   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8180     int x[] = {25, 17};
8181     const int *foo = &x[0];
8182     ++foo;
8183   }
8184   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8185     typedef const int *iptr;
8186     iptr p = 0;
8187     ++p;
8188   }
8189   { /* AIX XL C 1.02.0.0 rejects this saying
8190        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8191     struct s { int j; const int *ap[3]; };
8192     struct s *b; b->j = 5;
8193   }
8194   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195     const int foo = 10;
8196     if (!foo) return 0;
8197   }
8198   return !x[0] && !zero.x;
8199 #endif
8200
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } &&
8219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220   { (case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225   (eval "$ac_try") 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest.$ac_objext'
8230   { (case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235   (eval "$ac_try") 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; }; then
8239   ac_cv_c_const=yes
8240 else
8241   echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244         ac_cv_c_const=no
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8250 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8251 if test $ac_cv_c_const = no; then
8252
8253 cat >>confdefs.h <<\_ACEOF
8254 #define const
8255 _ACEOF
8256
8257 fi
8258
8259
8260
8261
8262
8263
8264 ac_header_dirent=no
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8268 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272   cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 #include <sys/types.h>
8279 #include <$ac_hdr>
8280
8281 int
8282 main ()
8283 {
8284 if ((DIR *) 0)
8285 return 0;
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297   (eval "$ac_compile") 2>conftest.er1
8298   ac_status=$?
8299   grep -v '^ *+' conftest.er1 >conftest.err
8300   rm -f conftest.er1
8301   cat conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   eval "$as_ac_Header=yes"
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         eval "$as_ac_Header=no"
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335                { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8338   cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8340 _ACEOF
8341
8342 ac_header_dirent=$ac_hdr; break
8343 fi
8344
8345 done
8346 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8347 if test $ac_header_dirent = dirent.h; then
8348   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8350 if test "${ac_cv_search_opendir+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   ac_func_search_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360
8361 /* Override any GCC internal prototype to avoid an error.
8362    Use char because int might match the return type of a GCC
8363    builtin and then its argument prototype would still apply.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char opendir ();
8368 int
8369 main ()
8370 {
8371 return opendir ();
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 for ac_lib in '' dir; do
8377   if test -z "$ac_lib"; then
8378     ac_res="none required"
8379   else
8380     ac_res=-l$ac_lib
8381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8382   fi
8383   rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (ac_try="$ac_link"
8385 case "(($ac_try" in
8386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387   *) ac_try_echo=$ac_try;;
8388 esac
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390   (eval "$ac_link") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8398   { (case "(($ac_try" in
8399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400   *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403   (eval "$ac_try") 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (case "(($ac_try" in
8409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8410   *) ac_try_echo=$ac_try;;
8411 esac
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413   (eval "$ac_try") 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_search_opendir=$ac_res
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422
8423 fi
8424
8425 rm -f core conftest.err conftest.$ac_objext \
8426       conftest$ac_exeext
8427   if test "${ac_cv_search_opendir+set}" = set; then
8428   break
8429 fi
8430 done
8431 if test "${ac_cv_search_opendir+set}" = set; then
8432   :
8433 else
8434   ac_cv_search_opendir=no
8435 fi
8436 rm conftest.$ac_ext
8437 LIBS=$ac_func_search_save_LIBS
8438 fi
8439 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8440 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8441 ac_res=$ac_cv_search_opendir
8442 if test "$ac_res" != no; then
8443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8444
8445 fi
8446
8447 else
8448   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8450 if test "${ac_cv_search_opendir+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 /* Override any GCC internal prototype to avoid an error.
8462    Use char because int might match the return type of a GCC
8463    builtin and then its argument prototype would still apply.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char opendir ();
8468 int
8469 main ()
8470 {
8471 return opendir ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 for ac_lib in '' x; do
8477   if test -z "$ac_lib"; then
8478     ac_res="none required"
8479   else
8480     ac_res=-l$ac_lib
8481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8482   fi
8483   rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490   (eval "$ac_link") 2>conftest.er1
8491   ac_status=$?
8492   grep -v '^ *+' conftest.er1 >conftest.err
8493   rm -f conftest.er1
8494   cat conftest.err >&5
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); } &&
8497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498   { (case "(($ac_try" in
8499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500   *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503   (eval "$ac_try") 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; } &&
8507          { ac_try='test -s conftest$ac_exeext'
8508   { (case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_try") 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   ac_cv_search_opendir=$ac_res
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522
8523 fi
8524
8525 rm -f core conftest.err conftest.$ac_objext \
8526       conftest$ac_exeext
8527   if test "${ac_cv_search_opendir+set}" = set; then
8528   break
8529 fi
8530 done
8531 if test "${ac_cv_search_opendir+set}" = set; then
8532   :
8533 else
8534   ac_cv_search_opendir=no
8535 fi
8536 rm conftest.$ac_ext
8537 LIBS=$ac_func_search_save_LIBS
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8540 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8541 ac_res=$ac_cv_search_opendir
8542 if test "$ac_res" != no; then
8543   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8544
8545 fi
8546
8547 fi
8548
8549
8550 for ac_header in dlfcn.h
8551 do
8552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 fi
8559 ac_res=`eval echo '${'$as_ac_Header'}'`
8560                { echo "$as_me:$LINENO: result: $ac_res" >&5
8561 echo "${ECHO_T}$ac_res" >&6; }
8562 else
8563   # Is the header compilable?
8564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 $ac_includes_default
8573 #include <$ac_header>
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579   *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582   (eval "$ac_compile") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8590   { (case "(($ac_try" in
8591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592   *) ac_try_echo=$ac_try;;
8593 esac
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595   (eval "$ac_try") 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest.$ac_objext'
8600   { (case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_try") 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_header_compiler=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614         ac_header_compiler=no
8615 fi
8616
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8619 echo "${ECHO_T}$ac_header_compiler" >&6; }
8620
8621 # Is the header present?
8622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 #include <$ac_header>
8631 _ACEOF
8632 if { (ac_try="$ac_cpp conftest.$ac_ext"
8633 case "(($ac_try" in
8634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635   *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8639   ac_status=$?
8640   grep -v '^ *+' conftest.er1 >conftest.err
8641   rm -f conftest.er1
8642   cat conftest.err >&5
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); } >/dev/null; then
8645   if test -s conftest.err; then
8646     ac_cpp_err=$ac_c_preproc_warn_flag
8647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648   else
8649     ac_cpp_err=
8650   fi
8651 else
8652   ac_cpp_err=yes
8653 fi
8654 if test -z "$ac_cpp_err"; then
8655   ac_header_preproc=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660   ac_header_preproc=no
8661 fi
8662
8663 rm -f conftest.err conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8665 echo "${ECHO_T}$ac_header_preproc" >&6; }
8666
8667 # So?  What about this header?
8668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8669   yes:no: )
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8674     ac_header_preproc=yes
8675     ;;
8676   no:yes:* )
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8679     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8680 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8684 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689     ( cat <<\_ASBOX
8690 ## ------------------------------------ ##
8691 ## Report this to http://llvm.org/bugs/ ##
8692 ## ------------------------------------ ##
8693 _ASBOX
8694      ) | sed "s/^/$as_me: WARNING:     /" >&2
8695     ;;
8696 esac
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   eval "$as_ac_Header=\$ac_header_preproc"
8703 fi
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705                { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8707
8708 fi
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710   cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 _ACEOF
8713
8714 fi
8715
8716 done
8717
8718 # Check whether --enable-ltdl-install was given.
8719 if test "${enable_ltdl_install+set}" = set; then
8720   enableval=$enable_ltdl_install;
8721 fi
8722
8723
8724
8725
8726 if test x"${enable_ltdl_install-no}" != xno; then
8727   INSTALL_LTDL_TRUE=
8728   INSTALL_LTDL_FALSE='#'
8729 else
8730   INSTALL_LTDL_TRUE='#'
8731   INSTALL_LTDL_FALSE=
8732 fi
8733
8734
8735
8736 if test x"${enable_ltdl_convenience-no}" != xno; then
8737   CONVENIENCE_LTDL_TRUE=
8738   CONVENIENCE_LTDL_FALSE='#'
8739 else
8740   CONVENIENCE_LTDL_TRUE='#'
8741   CONVENIENCE_LTDL_FALSE=
8742 fi
8743
8744
8745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8747 library_names_spec=
8748 libname_spec='lib$name'
8749 soname_spec=
8750 shrext_cmds=".so"
8751 postinstall_cmds=
8752 postuninstall_cmds=
8753 finish_cmds=
8754 finish_eval=
8755 shlibpath_var=
8756 shlibpath_overrides_runpath=unknown
8757 version_type=none
8758 dynamic_linker="$host_os ld.so"
8759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8760 if test "$GCC" = yes; then
8761   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8762   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8763     # if the path contains ";" then we assume it to be the separator
8764     # otherwise default to the standard path separator (i.e. ":") - it is
8765     # assumed that no part of a normal pathname contains ";" but that should
8766     # okay in the real world where ";" in dirpaths is itself problematic.
8767     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8768   else
8769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8770   fi
8771 else
8772   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8773 fi
8774 need_lib_prefix=unknown
8775 hardcode_into_libs=no
8776
8777 # when you set need_version to no, make sure it does not cause -set_version
8778 # flags to be left without arguments
8779 need_version=unknown
8780
8781 case $host_os in
8782 aix3*)
8783   version_type=linux
8784   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8785   shlibpath_var=LIBPATH
8786
8787   # AIX 3 has no versioning support, so we append a major version to the name.
8788   soname_spec='${libname}${release}${shared_ext}$major'
8789   ;;
8790
8791 aix4* | aix5*)
8792   version_type=linux
8793   need_lib_prefix=no
8794   need_version=no
8795   hardcode_into_libs=yes
8796   if test "$host_cpu" = ia64; then
8797     # AIX 5 supports IA64
8798     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8799     shlibpath_var=LD_LIBRARY_PATH
8800   else
8801     # With GCC up to 2.95.x, collect2 would create an import file
8802     # for dependence libraries.  The import file would start with
8803     # the line `#! .'.  This would cause the generated library to
8804     # depend on `.', always an invalid library.  This was fixed in
8805     # development snapshots of GCC prior to 3.0.
8806     case $host_os in
8807       aix4 | aix4.[01] | aix4.[01].*)
8808       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8809            echo ' yes '
8810            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8811         :
8812       else
8813         can_build_shared=no
8814       fi
8815       ;;
8816     esac
8817     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8818     # soname into executable. Probably we can add versioning support to
8819     # collect2, so additional links can be useful in future.
8820     if test "$aix_use_runtimelinking" = yes; then
8821       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8822       # instead of lib<name>.a to let people know that these are not
8823       # typical AIX shared libraries.
8824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825     else
8826       # We preserve .a as extension for shared libraries through AIX4.2
8827       # and later when we are not doing run time linking.
8828       library_names_spec='${libname}${release}.a $libname.a'
8829       soname_spec='${libname}${release}${shared_ext}$major'
8830     fi
8831     shlibpath_var=LIBPATH
8832   fi
8833   ;;
8834
8835 amigaos*)
8836   library_names_spec='$libname.ixlibrary $libname.a'
8837   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8838   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'
8839   ;;
8840
8841 beos*)
8842   library_names_spec='${libname}${shared_ext}'
8843   dynamic_linker="$host_os ld.so"
8844   shlibpath_var=LIBRARY_PATH
8845   ;;
8846
8847 bsdi[45]*)
8848   version_type=linux
8849   need_version=no
8850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8851   soname_spec='${libname}${release}${shared_ext}$major'
8852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8853   shlibpath_var=LD_LIBRARY_PATH
8854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8856   # the default ld.so.conf also contains /usr/contrib/lib and
8857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8858   # libtool to hard-code these into programs
8859   ;;
8860
8861 cygwin* | mingw* | pw32*)
8862   version_type=windows
8863   shrext_cmds=".dll"
8864   need_version=no
8865   need_lib_prefix=no
8866
8867   case $GCC,$host_os in
8868   yes,cygwin* | yes,mingw* | yes,pw32*)
8869     library_names_spec='$libname.dll.a'
8870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8871     postinstall_cmds='base_file=`basename \${file}`~
8872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8873       dldir=$destdir/`dirname \$dlpath`~
8874       test -d \$dldir || mkdir -p \$dldir~
8875       $install_prog $dir/$dlname \$dldir/$dlname~
8876       chmod a+x \$dldir/$dlname'
8877     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8878       dlpath=$dir/\$dldll~
8879        $rm \$dlpath'
8880     shlibpath_overrides_runpath=yes
8881
8882     case $host_os in
8883     cygwin*)
8884       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8885       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8886       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887       ;;
8888     mingw*)
8889       # MinGW DLLs use traditional 'lib' prefix
8890       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8891       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8893         # It is most probably a Windows format PATH printed by
8894         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8895         # path with ; separators, and with drive letters. We can handle the
8896         # drive letters (cygwin fileutils understands them), so leave them,
8897         # especially as we might pass files found there to a mingw objdump,
8898         # which wouldn't understand a cygwinified path. Ahh.
8899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8900       else
8901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8902       fi
8903       ;;
8904     pw32*)
8905       # pw32 DLLs use 'pw' prefix rather than 'lib'
8906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8907       ;;
8908     esac
8909     ;;
8910
8911   *)
8912     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913     ;;
8914   esac
8915   dynamic_linker='Win32 ld.exe'
8916   # FIXME: first we should search . and the directory the executable is in
8917   shlibpath_var=PATH
8918   ;;
8919
8920 darwin* | rhapsody*)
8921   dynamic_linker="$host_os dyld"
8922   version_type=darwin
8923   need_lib_prefix=no
8924   need_version=no
8925   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8926   soname_spec='${libname}${release}${major}$shared_ext'
8927   shlibpath_overrides_runpath=yes
8928   shlibpath_var=DYLD_LIBRARY_PATH
8929   shrext_cmds='.dylib'
8930   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8931   if test "$GCC" = yes; then
8932     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"`
8933   else
8934     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8935   fi
8936   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8937   ;;
8938
8939 dgux*)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8944   soname_spec='${libname}${release}${shared_ext}$major'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   ;;
8947
8948 freebsd1.*)
8949   dynamic_linker=no
8950   ;;
8951
8952 kfreebsd*-gnu)
8953   version_type=linux
8954   need_lib_prefix=no
8955   need_version=no
8956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8957   soname_spec='${libname}${release}${shared_ext}$major'
8958   shlibpath_var=LD_LIBRARY_PATH
8959   shlibpath_overrides_runpath=no
8960   hardcode_into_libs=yes
8961   dynamic_linker='GNU ld.so'
8962   ;;
8963
8964 freebsd* | dragonfly*)
8965   # DragonFly does not have aout.  When/if they implement a new
8966   # versioning mechanism, adjust this.
8967   if test -x /usr/bin/objformat; then
8968     objformat=`/usr/bin/objformat`
8969   else
8970     case $host_os in
8971     freebsd[123].*) objformat=aout ;;
8972     *) objformat=elf ;;
8973     esac
8974   fi
8975   version_type=freebsd-$objformat
8976   case $version_type in
8977     freebsd-elf*)
8978       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979       need_version=no
8980       need_lib_prefix=no
8981       ;;
8982     freebsd-*)
8983       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984       need_version=yes
8985       ;;
8986   esac
8987   shlibpath_var=LD_LIBRARY_PATH
8988   case $host_os in
8989   freebsd2.*)
8990     shlibpath_overrides_runpath=yes
8991     ;;
8992   freebsd3.[01]* | freebsdelf3.[01]*)
8993     shlibpath_overrides_runpath=yes
8994     hardcode_into_libs=yes
8995     ;;
8996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8998     shlibpath_overrides_runpath=no
8999     hardcode_into_libs=yes
9000     ;;
9001   freebsd*) # from 4.6 on
9002     shlibpath_overrides_runpath=yes
9003     hardcode_into_libs=yes
9004     ;;
9005   esac
9006   ;;
9007
9008 gnu*)
9009   version_type=linux
9010   need_lib_prefix=no
9011   need_version=no
9012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9013   soname_spec='${libname}${release}${shared_ext}$major'
9014   shlibpath_var=LD_LIBRARY_PATH
9015   hardcode_into_libs=yes
9016   ;;
9017
9018 hpux9* | hpux10* | hpux11*)
9019   # Give a soname corresponding to the major version so that dld.sl refuses to
9020   # link against other versions.
9021   version_type=sunos
9022   need_lib_prefix=no
9023   need_version=no
9024   case $host_cpu in
9025   ia64*)
9026     shrext_cmds='.so'
9027     hardcode_into_libs=yes
9028     dynamic_linker="$host_os dld.so"
9029     shlibpath_var=LD_LIBRARY_PATH
9030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032     soname_spec='${libname}${release}${shared_ext}$major'
9033     if test "X$HPUX_IA64_MODE" = X32; then
9034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9035     else
9036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9037     fi
9038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039     ;;
9040    hppa*64*)
9041      shrext_cmds='.sl'
9042      hardcode_into_libs=yes
9043      dynamic_linker="$host_os dld.sl"
9044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047      soname_spec='${libname}${release}${shared_ext}$major'
9048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050      ;;
9051    *)
9052     shrext_cmds='.sl'
9053     dynamic_linker="$host_os dld.sl"
9054     shlibpath_var=SHLIB_PATH
9055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057     soname_spec='${libname}${release}${shared_ext}$major'
9058     ;;
9059   esac
9060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9061   postinstall_cmds='chmod 555 $lib'
9062   ;;
9063
9064 interix3*)
9065   version_type=linux
9066   need_lib_prefix=no
9067   need_version=no
9068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9069   soname_spec='${libname}${release}${shared_ext}$major'
9070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9071   shlibpath_var=LD_LIBRARY_PATH
9072   shlibpath_overrides_runpath=no
9073   hardcode_into_libs=yes
9074   ;;
9075
9076 irix5* | irix6* | nonstopux*)
9077   case $host_os in
9078     nonstopux*) version_type=nonstopux ;;
9079     *)
9080         if test "$lt_cv_prog_gnu_ld" = yes; then
9081                 version_type=linux
9082         else
9083                 version_type=irix
9084         fi ;;
9085   esac
9086   need_lib_prefix=no
9087   need_version=no
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9090   case $host_os in
9091   irix5* | nonstopux*)
9092     libsuff= shlibsuff=
9093     ;;
9094   *)
9095     case $LD in # libtool.m4 will add one of these switches to LD
9096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9097       libsuff= shlibsuff= libmagic=32-bit;;
9098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9099       libsuff=32 shlibsuff=N32 libmagic=N32;;
9100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9102     *) libsuff= shlibsuff= libmagic=never-match;;
9103     esac
9104     ;;
9105   esac
9106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9107   shlibpath_overrides_runpath=no
9108   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9109   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9110   hardcode_into_libs=yes
9111   ;;
9112
9113 # No shared lib support for Linux oldld, aout, or coff.
9114 linux*oldld* | linux*aout* | linux*coff*)
9115   dynamic_linker=no
9116   ;;
9117
9118 # This must be Linux ELF.
9119 linux*)
9120   version_type=linux
9121   need_lib_prefix=no
9122   need_version=no
9123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124   soname_spec='${libname}${release}${shared_ext}$major'
9125   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9126   shlibpath_var=LD_LIBRARY_PATH
9127   shlibpath_overrides_runpath=no
9128   # This implies no fast_install, which is unacceptable.
9129   # Some rework will be needed to allow for fast_install
9130   # before this can be enabled.
9131   hardcode_into_libs=yes
9132
9133   # Append ld.so.conf contents to the search path
9134   if test -f /etc/ld.so.conf; then
9135     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' ' '`
9136     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9137   fi
9138
9139   # We used to test for /lib/ld.so.1 and disable shared libraries on
9140   # powerpc, because MkLinux only supported shared libraries with the
9141   # GNU dynamic linker.  Since this was broken with cross compilers,
9142   # most powerpc-linux boxes support dynamic linking these days and
9143   # people can always --disable-shared, the test was removed, and we
9144   # assume the GNU/Linux dynamic linker is in use.
9145   dynamic_linker='GNU/Linux ld.so'
9146   ;;
9147
9148 knetbsd*-gnu)
9149   version_type=linux
9150   need_lib_prefix=no
9151   need_version=no
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153   soname_spec='${libname}${release}${shared_ext}$major'
9154   shlibpath_var=LD_LIBRARY_PATH
9155   shlibpath_overrides_runpath=no
9156   hardcode_into_libs=yes
9157   dynamic_linker='GNU ld.so'
9158   ;;
9159
9160 netbsd*)
9161   version_type=sunos
9162   need_lib_prefix=no
9163   need_version=no
9164   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9165     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167     dynamic_linker='NetBSD (a.out) ld.so'
9168   else
9169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170     soname_spec='${libname}${release}${shared_ext}$major'
9171     dynamic_linker='NetBSD ld.elf_so'
9172   fi
9173   shlibpath_var=LD_LIBRARY_PATH
9174   shlibpath_overrides_runpath=yes
9175   hardcode_into_libs=yes
9176   ;;
9177
9178 newsos6)
9179   version_type=linux
9180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181   shlibpath_var=LD_LIBRARY_PATH
9182   shlibpath_overrides_runpath=yes
9183   ;;
9184
9185 nto-qnx*)
9186   version_type=linux
9187   need_lib_prefix=no
9188   need_version=no
9189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190   soname_spec='${libname}${release}${shared_ext}$major'
9191   shlibpath_var=LD_LIBRARY_PATH
9192   shlibpath_overrides_runpath=yes
9193   ;;
9194
9195 openbsd*)
9196   version_type=sunos
9197   sys_lib_dlsearch_path_spec="/usr/lib"
9198   need_lib_prefix=no
9199   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9200   case $host_os in
9201     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9202     *)                         need_version=no  ;;
9203   esac
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9208     case $host_os in
9209       openbsd2.[89] | openbsd2.[89].*)
9210         shlibpath_overrides_runpath=no
9211         ;;
9212       *)
9213         shlibpath_overrides_runpath=yes
9214         ;;
9215       esac
9216   else
9217     shlibpath_overrides_runpath=yes
9218   fi
9219   ;;
9220
9221 os2*)
9222   libname_spec='$name'
9223   shrext_cmds=".dll"
9224   need_lib_prefix=no
9225   library_names_spec='$libname${shared_ext} $libname.a'
9226   dynamic_linker='OS/2 ld.exe'
9227   shlibpath_var=LIBPATH
9228   ;;
9229
9230 osf3* | osf4* | osf5*)
9231   version_type=osf
9232   need_lib_prefix=no
9233   need_version=no
9234   soname_spec='${libname}${release}${shared_ext}$major'
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236   shlibpath_var=LD_LIBRARY_PATH
9237   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9238   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9239   ;;
9240
9241 solaris*)
9242   version_type=linux
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246   soname_spec='${libname}${release}${shared_ext}$major'
9247   shlibpath_var=LD_LIBRARY_PATH
9248   shlibpath_overrides_runpath=yes
9249   hardcode_into_libs=yes
9250   # ldd complains unless libraries are executable
9251   postinstall_cmds='chmod +x $lib'
9252   ;;
9253
9254 sunos4*)
9255   version_type=sunos
9256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9257   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9258   shlibpath_var=LD_LIBRARY_PATH
9259   shlibpath_overrides_runpath=yes
9260   if test "$with_gnu_ld" = yes; then
9261     need_lib_prefix=no
9262   fi
9263   need_version=yes
9264   ;;
9265
9266 sysv4 | sysv4.3*)
9267   version_type=linux
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269   soname_spec='${libname}${release}${shared_ext}$major'
9270   shlibpath_var=LD_LIBRARY_PATH
9271   case $host_vendor in
9272     sni)
9273       shlibpath_overrides_runpath=no
9274       need_lib_prefix=no
9275       export_dynamic_flag_spec='${wl}-Blargedynsym'
9276       runpath_var=LD_RUN_PATH
9277       ;;
9278     siemens)
9279       need_lib_prefix=no
9280       ;;
9281     motorola)
9282       need_lib_prefix=no
9283       need_version=no
9284       shlibpath_overrides_runpath=no
9285       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9286       ;;
9287   esac
9288   ;;
9289
9290 sysv4*MP*)
9291   if test -d /usr/nec ;then
9292     version_type=linux
9293     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9294     soname_spec='$libname${shared_ext}.$major'
9295     shlibpath_var=LD_LIBRARY_PATH
9296   fi
9297   ;;
9298
9299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9300   version_type=freebsd-elf
9301   need_lib_prefix=no
9302   need_version=no
9303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   shlibpath_var=LD_LIBRARY_PATH
9306   hardcode_into_libs=yes
9307   if test "$with_gnu_ld" = yes; then
9308     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9309     shlibpath_overrides_runpath=no
9310   else
9311     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9312     shlibpath_overrides_runpath=yes
9313     case $host_os in
9314       sco3.2v5*)
9315         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316         ;;
9317     esac
9318   fi
9319   sys_lib_dlsearch_path_spec='/usr/lib'
9320   ;;
9321
9322 uts4*)
9323   version_type=linux
9324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325   soname_spec='${libname}${release}${shared_ext}$major'
9326   shlibpath_var=LD_LIBRARY_PATH
9327   ;;
9328
9329 *)
9330   dynamic_linker=no
9331   ;;
9332 esac
9333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9334 echo "${ECHO_T}$dynamic_linker" >&6; }
9335 test "$dynamic_linker" = no && can_build_shared=no
9336
9337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9338 if test "$GCC" = yes; then
9339   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340 fi
9341
9342
9343 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9344 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9345 if test "${libltdl_cv_shlibext+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348
9349 module=yes
9350 eval libltdl_cv_shlibext=$shrext_cmds
9351
9352 fi
9353 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9354 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9355 if test -n "$libltdl_cv_shlibext"; then
9356
9357 cat >>confdefs.h <<_ACEOF
9358 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9359 _ACEOF
9360
9361 fi
9362
9363
9364 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9365 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9366 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   libltdl_cv_shlibpath_var="$shlibpath_var"
9370 fi
9371 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9372 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9373 if test -n "$libltdl_cv_shlibpath_var"; then
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9377 _ACEOF
9378
9379 fi
9380
9381
9382 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9383 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9384 if test "${libltdl_cv_sys_search_path+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9388 fi
9389 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9390 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9391 if test -n "$libltdl_cv_sys_search_path"; then
9392   sys_search_path=
9393   for dir in $libltdl_cv_sys_search_path; do
9394     if test -z "$sys_search_path"; then
9395       sys_search_path="$dir"
9396     else
9397       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398     fi
9399   done
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9403 _ACEOF
9404
9405 fi
9406
9407 { echo "$as_me:$LINENO: checking for objdir" >&5
9408 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9409 if test "${libltdl_cv_objdir+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   libltdl_cv_objdir="$objdir"
9413   if test -n "$objdir"; then
9414     :
9415   else
9416     rm -f .libs 2>/dev/null
9417     mkdir .libs 2>/dev/null
9418     if test -d .libs; then
9419       libltdl_cv_objdir=.libs
9420     else
9421       # MS-DOS does not allow filenames that begin with a dot.
9422       libltdl_cv_objdir=_libs
9423     fi
9424   rmdir .libs 2>/dev/null
9425   fi
9426
9427 fi
9428 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9429 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9430
9431 cat >>confdefs.h <<_ACEOF
9432 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9433 _ACEOF
9434
9435
9436
9437
9438
9439
9440 # Check for command to grab the raw symbol name followed by C symbol from nm.
9441 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9444   echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446
9447 # These are sane defaults that work on at least a few old systems.
9448 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9449
9450 # Character class describing NM global symbol codes.
9451 symcode='[BCDEGRST]'
9452
9453 # Regexp to match symbols that can be accessed directly from C.
9454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9455
9456 # Transform an extracted symbol line into a proper C declaration
9457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9458
9459 # Transform an extracted symbol line into symbol name and symbol address
9460 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'"
9461
9462 # Define system-specific variables.
9463 case $host_os in
9464 aix*)
9465   symcode='[BCDT]'
9466   ;;
9467 cygwin* | mingw* | pw32*)
9468   symcode='[ABCDGISTW]'
9469   ;;
9470 hpux*) # Its linker distinguishes data from code symbols
9471   if test "$host_cpu" = ia64; then
9472     symcode='[ABCDEGRST]'
9473   fi
9474   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9475   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'"
9476   ;;
9477 linux*)
9478   if test "$host_cpu" = ia64; then
9479     symcode='[ABCDGIRSTW]'
9480     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9481     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'"
9482   fi
9483   ;;
9484 irix* | nonstopux*)
9485   symcode='[BCDEGRST]'
9486   ;;
9487 osf*)
9488   symcode='[BCDEGQRST]'
9489   ;;
9490 solaris*)
9491   symcode='[BDRT]'
9492   ;;
9493 sco3.2v5*)
9494   symcode='[DT]'
9495   ;;
9496 sysv4.2uw2*)
9497   symcode='[DT]'
9498   ;;
9499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500   symcode='[ABDT]'
9501   ;;
9502 sysv4)
9503   symcode='[DFNSTU]'
9504   ;;
9505 esac
9506
9507 # Handle CRLF in mingw tool chain
9508 opt_cr=
9509 case $build_os in
9510 mingw*)
9511   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512   ;;
9513 esac
9514
9515 # If we're using GNU nm, then use its standard symbol codes.
9516 case `$NM -V 2>&1` in
9517 *GNU* | *'with BFD'*)
9518   symcode='[ABCDGIRSTW]' ;;
9519 esac
9520
9521 # Try without a prefix undercore, then with it.
9522 for ac_symprfx in "" "_"; do
9523
9524   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9525   symxfrm="\\1 $ac_symprfx\\2 \\2"
9526
9527   # Write the raw and C identifiers.
9528   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9529
9530   # Check to see that the pipe works correctly.
9531   pipe_works=no
9532
9533   rm -f conftest*
9534   cat > conftest.$ac_ext <<EOF
9535 #ifdef __cplusplus
9536 extern "C" {
9537 #endif
9538 char nm_test_var;
9539 void nm_test_func(){}
9540 #ifdef __cplusplus
9541 }
9542 #endif
9543 int main(){nm_test_var='a';nm_test_func();return(0);}
9544 EOF
9545
9546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547   (eval $ac_compile) 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; then
9551     # Now try to grab the symbols.
9552     nlist=conftest.nm
9553     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9554   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } && test -s "$nlist"; then
9558       # Try sorting and uniquifying the output.
9559       if sort "$nlist" | uniq > "$nlist"T; then
9560         mv -f "$nlist"T "$nlist"
9561       else
9562         rm -f "$nlist"T
9563       fi
9564
9565       # Make sure that we snagged all the symbols we need.
9566       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9567         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9568           cat <<EOF > conftest.$ac_ext
9569 #ifdef __cplusplus
9570 extern "C" {
9571 #endif
9572
9573 EOF
9574           # Now generate the symbol file.
9575           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9576
9577           cat <<EOF >> conftest.$ac_ext
9578 #if defined (__STDC__) && __STDC__
9579 # define lt_ptr_t void *
9580 #else
9581 # define lt_ptr_t char *
9582 # define const
9583 #endif
9584
9585 /* The mapping between symbol names and symbols. */
9586 const struct {
9587   const char *name;
9588   lt_ptr_t address;
9589 }
9590 lt_preloaded_symbols[] =
9591 {
9592 EOF
9593           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9594           cat <<\EOF >> conftest.$ac_ext
9595   {0, (lt_ptr_t) 0}
9596 };
9597
9598 #ifdef __cplusplus
9599 }
9600 #endif
9601 EOF
9602           # Now try linking the two files.
9603           mv conftest.$ac_objext conftstm.$ac_objext
9604           lt_save_LIBS="$LIBS"
9605           lt_save_CFLAGS="$CFLAGS"
9606           LIBS="conftstm.$ac_objext"
9607           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9608           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9613             pipe_works=yes
9614           fi
9615           LIBS="$lt_save_LIBS"
9616           CFLAGS="$lt_save_CFLAGS"
9617         else
9618           echo "cannot find nm_test_func in $nlist" >&5
9619         fi
9620       else
9621         echo "cannot find nm_test_var in $nlist" >&5
9622       fi
9623     else
9624       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9625     fi
9626   else
9627     echo "$progname: failed program was:" >&5
9628     cat conftest.$ac_ext >&5
9629   fi
9630   rm -f conftest* conftst*
9631
9632   # Do not use the global_symbol_pipe unless it works.
9633   if test "$pipe_works" = yes; then
9634     break
9635   else
9636     lt_cv_sys_global_symbol_pipe=
9637   fi
9638 done
9639
9640 fi
9641
9642 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9643   lt_cv_sys_global_symbol_to_cdecl=
9644 fi
9645 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9646   { echo "$as_me:$LINENO: result: failed" >&5
9647 echo "${ECHO_T}failed" >&6; }
9648 else
9649   { echo "$as_me:$LINENO: result: ok" >&5
9650 echo "${ECHO_T}ok" >&6; }
9651 fi
9652
9653
9654 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9655 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9656 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9660     libltdl_cv_preloaded_symbols=yes
9661   else
9662     libltdl_cv_preloaded_symbols=no
9663   fi
9664
9665 fi
9666 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9667 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9668 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9669
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_PRELOADED_SYMBOLS 1
9672 _ACEOF
9673
9674 fi
9675
9676 LIBADD_DL=
9677
9678 ac_ext=c
9679 ac_cpp='$CPP $CPPFLAGS'
9680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683
9684
9685 { echo "$as_me:$LINENO: checking for shl_load" >&5
9686 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9687 if test "${ac_cv_func_shl_load+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9698 #define shl_load innocuous_shl_load
9699
9700 /* System header to define __stub macros and hopefully few prototypes,
9701     which can conflict with char shl_load (); below.
9702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9703     <limits.h> exists even on freestanding compilers.  */
9704
9705 #ifdef __STDC__
9706 # include <limits.h>
9707 #else
9708 # include <assert.h>
9709 #endif
9710
9711 #undef shl_load
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char shl_load ();
9720 /* The GNU C library defines this for functions which it implements
9721     to always fail with ENOSYS.  Some functions are actually named
9722     something starting with __ and the normal name is an alias.  */
9723 #if defined __stub_shl_load || defined __stub___shl_load
9724 choke me
9725 #endif
9726
9727 int
9728 main ()
9729 {
9730 return shl_load ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_try") 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; }; then
9769   ac_cv_func_shl_load=yes
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774         ac_cv_func_shl_load=no
9775 fi
9776
9777 rm -f core conftest.err conftest.$ac_objext \
9778       conftest$ac_exeext conftest.$ac_ext
9779 fi
9780 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9781 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9782 if test $ac_cv_func_shl_load = yes; then
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define HAVE_SHL_LOAD 1
9786 _ACEOF
9787
9788 else
9789   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-ldld  $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804    Use char because int might match the return type of a GCC
9805    builtin and then its argument prototype would still apply.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char shl_load ();
9810 int
9811 main ()
9812 {
9813 return shl_load ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_link") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest$ac_exeext'
9843   { (case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_try") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_lib_dld_shl_load=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_lib_dld_shl_load=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext \
9861       conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_SHL_LOAD 1
9870 _ACEOF
9871
9872         LIBADD_DL="$LIBADD_DL -ldld"
9873 else
9874   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldl  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889    Use char because int might match the return type of a GCC
9890    builtin and then its argument prototype would still apply.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char dlopen ();
9895 int
9896 main ()
9897 {
9898 return dlopen ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910   (eval "$ac_link") 2>conftest.er1
9911   ac_status=$?
9912   grep -v '^ *+' conftest.er1 >conftest.err
9913   rm -f conftest.er1
9914   cat conftest.err >&5
9915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916   (exit $ac_status); } &&
9917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918   { (case "(($ac_try" in
9919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920   *) ac_try_echo=$ac_try;;
9921 esac
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923   (eval "$ac_try") 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_try") 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_dl_dlopen=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_lib_dl_dlopen=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext \
9946       conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9948 fi
9949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9951 if test $ac_cv_lib_dl_dlopen = yes; then
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_LIBDL 1
9955 _ACEOF
9956
9957                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9958 else
9959   cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 #if HAVE_DLFCN_H
9966 #  include <dlfcn.h>
9967 #endif
9968
9969 int
9970 main ()
9971 {
9972 dlopen(0, 0);
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_link") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } &&
9991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9992   { (case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_try") 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; } &&
10001          { ac_try='test -s conftest$ac_exeext'
10002   { (case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_try") 2>&5
10008   ac_status=$?
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); }; }; then
10011
10012 cat >>confdefs.h <<\_ACEOF
10013 #define HAVE_LIBDL 1
10014 _ACEOF
10015  libltdl_cv_func_dlopen="yes"
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lsvld  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035    Use char because int might match the return type of a GCC
10036    builtin and then its argument prototype would still apply.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dlopen ();
10041 int
10042 main ()
10043 {
10044 return dlopen ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_link") 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } &&
10063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest$ac_exeext'
10074   { (case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_try") 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_lib_svld_dlopen=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         ac_cv_lib_svld_dlopen=no
10089 fi
10090
10091 rm -f core conftest.err conftest.$ac_objext \
10092       conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10096 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10097 if test $ac_cv_lib_svld_dlopen = yes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_LIBDL 1
10101 _ACEOF
10102
10103                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10104 else
10105   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10106 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10107 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-ldld  $LIBS"
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118
10119 /* Override any GCC internal prototype to avoid an error.
10120    Use char because int might match the return type of a GCC
10121    builtin and then its argument prototype would still apply.  */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char dld_link ();
10126 int
10127 main ()
10128 {
10129 return dld_link ();
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (ac_try="$ac_link"
10136 case "(($ac_try" in
10137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138   *) ac_try_echo=$ac_try;;
10139 esac
10140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141   (eval "$ac_link") 2>conftest.er1
10142   ac_status=$?
10143   grep -v '^ *+' conftest.er1 >conftest.err
10144   rm -f conftest.er1
10145   cat conftest.err >&5
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); } &&
10148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149   { (case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154   (eval "$ac_try") 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest$ac_exeext'
10159   { (case "(($ac_try" in
10160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161   *) ac_try_echo=$ac_try;;
10162 esac
10163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164   (eval "$ac_try") 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); }; }; then
10168   ac_cv_lib_dld_dld_link=yes
10169 else
10170   echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173         ac_cv_lib_dld_dld_link=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext \
10177       conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10181 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10182 if test $ac_cv_lib_dld_dld_link = yes; then
10183
10184 cat >>confdefs.h <<\_ACEOF
10185 #define HAVE_DLD 1
10186 _ACEOF
10187
10188                 LIBADD_DL="$LIBADD_DL -ldld"
10189 else
10190   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10191 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10192 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195   cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10203 #define _dyld_func_lookup innocuous__dyld_func_lookup
10204
10205 /* System header to define __stub macros and hopefully few prototypes,
10206     which can conflict with char _dyld_func_lookup (); below.
10207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208     <limits.h> exists even on freestanding compilers.  */
10209
10210 #ifdef __STDC__
10211 # include <limits.h>
10212 #else
10213 # include <assert.h>
10214 #endif
10215
10216 #undef _dyld_func_lookup
10217
10218 /* Override any GCC internal prototype to avoid an error.
10219    Use char because int might match the return type of a GCC
10220    builtin and then its argument prototype would still apply.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char _dyld_func_lookup ();
10225 /* The GNU C library defines this for functions which it implements
10226     to always fail with ENOSYS.  Some functions are actually named
10227     something starting with __ and the normal name is an alias.  */
10228 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10229 choke me
10230 #endif
10231
10232 int
10233 main ()
10234 {
10235 return _dyld_func_lookup ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244   *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247   (eval "$ac_link") 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } &&
10254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255   { (case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_try") 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; } &&
10264          { ac_try='test -s conftest$ac_exeext'
10265   { (case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_try") 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; }; then
10274   ac_cv_func__dyld_func_lookup=yes
10275 else
10276   echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279         ac_cv_func__dyld_func_lookup=no
10280 fi
10281
10282 rm -f core conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10286 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10287 if test $ac_cv_func__dyld_func_lookup = yes; then
10288
10289 cat >>confdefs.h <<\_ACEOF
10290 #define HAVE_DYLD 1
10291 _ACEOF
10292
10293 fi
10294
10295
10296 fi
10297
10298
10299 fi
10300
10301
10302 fi
10303
10304 rm -f core conftest.err conftest.$ac_objext \
10305       conftest$ac_exeext conftest.$ac_ext
10306
10307 fi
10308
10309
10310 fi
10311
10312
10313 fi
10314
10315
10316 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10317 then
10318   lt_save_LIBS="$LIBS"
10319   LIBS="$LIBS $LIBADD_DL"
10320
10321 for ac_func in dlerror
10322 do
10323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10337 #define $ac_func innocuous_$ac_func
10338
10339 /* System header to define __stub macros and hopefully few prototypes,
10340     which can conflict with char $ac_func (); below.
10341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342     <limits.h> exists even on freestanding compilers.  */
10343
10344 #ifdef __STDC__
10345 # include <limits.h>
10346 #else
10347 # include <assert.h>
10348 #endif
10349
10350 #undef $ac_func
10351
10352 /* Override any GCC internal prototype to avoid an error.
10353    Use char because int might match the return type of a GCC
10354    builtin and then its argument prototype would still apply.  */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char $ac_func ();
10359 /* The GNU C library defines this for functions which it implements
10360     to always fail with ENOSYS.  Some functions are actually named
10361     something starting with __ and the normal name is an alias.  */
10362 #if defined __stub_$ac_func || defined __stub___$ac_func
10363 choke me
10364 #endif
10365
10366 int
10367 main ()
10368 {
10369 return $ac_func ();
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (ac_try="$ac_link"
10376 case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_link") 2>conftest.er1
10382   ac_status=$?
10383   grep -v '^ *+' conftest.er1 >conftest.err
10384   rm -f conftest.er1
10385   cat conftest.err >&5
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10389   { (case "(($ac_try" in
10390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391   *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394   (eval "$ac_try") 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; } &&
10398          { ac_try='test -s conftest$ac_exeext'
10399   { (case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_try") 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   eval "$as_ac_var=yes"
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413         eval "$as_ac_var=no"
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext \
10417       conftest$ac_exeext conftest.$ac_ext
10418 fi
10419 ac_res=`eval echo '${'$as_ac_var'}'`
10420                { echo "$as_me:$LINENO: result: $ac_res" >&5
10421 echo "${ECHO_T}$ac_res" >&6; }
10422 if test `eval echo '${'$as_ac_var'}'` = yes; then
10423   cat >>confdefs.h <<_ACEOF
10424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428 done
10429
10430   LIBS="$lt_save_LIBS"
10431 fi
10432 ac_ext=c
10433 ac_cpp='$CPP $CPPFLAGS'
10434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437
10438
10439
10440 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10441 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10442 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10443   echo $ECHO_N "(cached) $ECHO_C" >&6
10444 else
10445   ac_cv_sys_symbol_underscore=no
10446   cat > conftest.$ac_ext <<EOF
10447 void nm_test_func(){}
10448 int main(){nm_test_func;return 0;}
10449 EOF
10450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10451   (eval $ac_compile) 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; then
10455     # Now try to grab the symbols.
10456     ac_nlist=conftest.nm
10457     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10458   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && test -s "$ac_nlist"; then
10462       # See whether the symbols have a leading underscore.
10463       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10464         ac_cv_sys_symbol_underscore=yes
10465       else
10466         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10467           :
10468         else
10469           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470         fi
10471       fi
10472     else
10473       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10474     fi
10475   else
10476     echo "configure: failed program was:" >&5
10477     cat conftest.c >&5
10478   fi
10479   rm -rf conftest*
10480
10481 fi
10482 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10483 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10484
10485
10486 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10487   if test x"$libltdl_cv_func_dlopen" = xyes ||
10488      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10489         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10490 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10491 if test "${libltdl_cv_need_uscore+set}" = set; then
10492   echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494   libltdl_cv_need_uscore=unknown
10495           save_LIBS="$LIBS"
10496           LIBS="$LIBS $LIBADD_DL"
10497           if test "$cross_compiling" = yes; then :
10498   libltdl_cv_need_uscore=cross
10499 else
10500   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10501   lt_status=$lt_dlunknown
10502   cat > conftest.$ac_ext <<EOF
10503 #line 10503 "configure"
10504 #include "confdefs.h"
10505
10506 #if HAVE_DLFCN_H
10507 #include <dlfcn.h>
10508 #endif
10509
10510 #include <stdio.h>
10511
10512 #ifdef RTLD_GLOBAL
10513 #  define LT_DLGLOBAL           RTLD_GLOBAL
10514 #else
10515 #  ifdef DL_GLOBAL
10516 #    define LT_DLGLOBAL         DL_GLOBAL
10517 #  else
10518 #    define LT_DLGLOBAL         0
10519 #  endif
10520 #endif
10521
10522 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10523    find out it does not work in some platform. */
10524 #ifndef LT_DLLAZY_OR_NOW
10525 #  ifdef RTLD_LAZY
10526 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10527 #  else
10528 #    ifdef DL_LAZY
10529 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10530 #    else
10531 #      ifdef RTLD_NOW
10532 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10533 #      else
10534 #        ifdef DL_NOW
10535 #          define LT_DLLAZY_OR_NOW      DL_NOW
10536 #        else
10537 #          define LT_DLLAZY_OR_NOW      0
10538 #        endif
10539 #      endif
10540 #    endif
10541 #  endif
10542 #endif
10543
10544 #ifdef __cplusplus
10545 extern "C" void exit (int);
10546 #endif
10547
10548 void fnord() { int i=42;}
10549 int main ()
10550 {
10551   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10552   int status = $lt_dlunknown;
10553
10554   if (self)
10555     {
10556       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10557       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10558       /* dlclose (self); */
10559     }
10560   else
10561     puts (dlerror ());
10562
10563     exit (status);
10564 }
10565 EOF
10566   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567   (eval $ac_link) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10571     (./conftest; exit; ) >&5 2>/dev/null
10572     lt_status=$?
10573     case x$lt_status in
10574       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10575       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10576       x$lt_dlunknown|x*)  ;;
10577     esac
10578   else :
10579     # compilation failed
10580
10581   fi
10582 fi
10583 rm -fr conftest*
10584
10585           LIBS="$save_LIBS"
10586
10587 fi
10588 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10589 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10590   fi
10591 fi
10592
10593 if test x"$libltdl_cv_need_uscore" = xyes; then
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define NEED_USCORE 1
10597 _ACEOF
10598
10599 fi
10600
10601
10602 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10603 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10604 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   # PORTME does your system automatically load deplibs for dlopen?
10608   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10609   # For now, we just catch OSes we know something about -- in the
10610   # future, we'll try test this programmatically.
10611   libltdl_cv_sys_dlopen_deplibs=unknown
10612   case "$host_os" in
10613   aix3*|aix4.1.*|aix4.2.*)
10614     # Unknown whether this is true for these versions of AIX, but
10615     # we want this `case' here to explicitly catch those versions.
10616     libltdl_cv_sys_dlopen_deplibs=unknown
10617     ;;
10618   aix[45]*)
10619     libltdl_cv_sys_dlopen_deplibs=yes
10620     ;;
10621   darwin*)
10622     # Assuming the user has installed a libdl from somewhere, this is true
10623     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10624     libltdl_cv_sys_dlopen_deplibs=yes
10625     ;;
10626   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10627     # GNU and its variants, using gnu ld.so (Glibc)
10628     libltdl_cv_sys_dlopen_deplibs=yes
10629     ;;
10630   hpux10*|hpux11*)
10631     libltdl_cv_sys_dlopen_deplibs=yes
10632     ;;
10633   interix*)
10634     libltdl_cv_sys_dlopen_deplibs=yes
10635     ;;
10636   irix[12345]*|irix6.[01]*)
10637     # Catch all versions of IRIX before 6.2, and indicate that we don't
10638     # know how it worked for any of those versions.
10639     libltdl_cv_sys_dlopen_deplibs=unknown
10640     ;;
10641   irix*)
10642     # The case above catches anything before 6.2, and it's known that
10643     # at 6.2 and later dlopen does load deplibs.
10644     libltdl_cv_sys_dlopen_deplibs=yes
10645     ;;
10646   netbsd*)
10647     libltdl_cv_sys_dlopen_deplibs=yes
10648     ;;
10649   openbsd*)
10650     libltdl_cv_sys_dlopen_deplibs=yes
10651     ;;
10652   osf[1234]*)
10653     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10654     # it did *not* use an RPATH in a shared library to find objects the
10655     # library depends on, so we explicitly say `no'.
10656     libltdl_cv_sys_dlopen_deplibs=no
10657     ;;
10658   osf5.0|osf5.0a|osf5.1)
10659     # dlopen *does* load deplibs and with the right loader patch applied
10660     # it even uses RPATH in a shared library to search for shared objects
10661     # that the library depends on, but there's no easy way to know if that
10662     # patch is installed.  Since this is the case, all we can really
10663     # say is unknown -- it depends on the patch being installed.  If
10664     # it is, this changes to `yes'.  Without it, it would be `no'.
10665     libltdl_cv_sys_dlopen_deplibs=unknown
10666     ;;
10667   osf*)
10668     # the two cases above should catch all versions of osf <= 5.1.  Read
10669     # the comments above for what we know about them.
10670     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10671     # is used to find them so we can finally say `yes'.
10672     libltdl_cv_sys_dlopen_deplibs=yes
10673     ;;
10674   solaris*)
10675     libltdl_cv_sys_dlopen_deplibs=yes
10676     ;;
10677   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10678     libltdl_cv_sys_dlopen_deplibs=yes
10679     ;;
10680   esac
10681
10682 fi
10683 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10684 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10685 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define LTDL_DLOPEN_DEPLIBS 1
10689 _ACEOF
10690
10691 fi
10692
10693
10694 for ac_header in argz.h
10695 do
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 fi
10703 ac_res=`eval echo '${'$as_ac_Header'}'`
10704                { echo "$as_me:$LINENO: result: $ac_res" >&5
10705 echo "${ECHO_T}$ac_res" >&6; }
10706 else
10707   # Is the header compilable?
10708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716 $ac_includes_default
10717 #include <$ac_header>
10718 _ACEOF
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723   *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726   (eval "$ac_compile") 2>conftest.er1
10727   ac_status=$?
10728   grep -v '^ *+' conftest.er1 >conftest.err
10729   rm -f conftest.er1
10730   cat conftest.err >&5
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); } &&
10733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734   { (case "(($ac_try" in
10735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736   *) ac_try_echo=$ac_try;;
10737 esac
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739   (eval "$ac_try") 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; } &&
10743          { ac_try='test -s conftest.$ac_objext'
10744   { (case "(($ac_try" in
10745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746   *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749   (eval "$ac_try") 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; }; then
10753   ac_header_compiler=yes
10754 else
10755   echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758         ac_header_compiler=no
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10763 echo "${ECHO_T}$ac_header_compiler" >&6; }
10764
10765 # Is the header present?
10766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774 #include <$ac_header>
10775 _ACEOF
10776 if { (ac_try="$ac_cpp conftest.$ac_ext"
10777 case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10783   ac_status=$?
10784   grep -v '^ *+' conftest.er1 >conftest.err
10785   rm -f conftest.er1
10786   cat conftest.err >&5
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } >/dev/null; then
10789   if test -s conftest.err; then
10790     ac_cpp_err=$ac_c_preproc_warn_flag
10791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10792   else
10793     ac_cpp_err=
10794   fi
10795 else
10796   ac_cpp_err=yes
10797 fi
10798 if test -z "$ac_cpp_err"; then
10799   ac_header_preproc=yes
10800 else
10801   echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10803
10804   ac_header_preproc=no
10805 fi
10806
10807 rm -f conftest.err conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10809 echo "${ECHO_T}$ac_header_preproc" >&6; }
10810
10811 # So?  What about this header?
10812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813   yes:no: )
10814     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10815 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10818     ac_header_preproc=yes
10819     ;;
10820   no:yes:* )
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10822 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10824 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10826 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10828 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10831     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10832 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10833     ( cat <<\_ASBOX
10834 ## ------------------------------------ ##
10835 ## Report this to http://llvm.org/bugs/ ##
10836 ## ------------------------------------ ##
10837 _ASBOX
10838      ) | sed "s/^/$as_me: WARNING:     /" >&2
10839     ;;
10840 esac
10841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   eval "$as_ac_Header=\$ac_header_preproc"
10847 fi
10848 ac_res=`eval echo '${'$as_ac_Header'}'`
10849                { echo "$as_me:$LINENO: result: $ac_res" >&5
10850 echo "${ECHO_T}$ac_res" >&6; }
10851
10852 fi
10853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10854   cat >>confdefs.h <<_ACEOF
10855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 _ACEOF
10857
10858 fi
10859
10860 done
10861
10862
10863 { echo "$as_me:$LINENO: checking for error_t" >&5
10864 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10865 if test "${ac_cv_type_error_t+set}" = set; then
10866   echo $ECHO_N "(cached) $ECHO_C" >&6
10867 else
10868   cat >conftest.$ac_ext <<_ACEOF
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 #if HAVE_ARGZ_H
10875 #  include <argz.h>
10876 #endif
10877
10878 typedef error_t ac__type_new_;
10879 int
10880 main ()
10881 {
10882 if ((ac__type_new_ *) 0)
10883   return 0;
10884 if (sizeof (ac__type_new_))
10885   return 0;
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894   *) ac_try_echo=$ac_try;;
10895 esac
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897   (eval "$ac_compile") 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } &&
10904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10905   { (case "(($ac_try" in
10906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907   *) ac_try_echo=$ac_try;;
10908 esac
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910   (eval "$ac_try") 2>&5
10911   ac_status=$?
10912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913   (exit $ac_status); }; } &&
10914          { ac_try='test -s conftest.$ac_objext'
10915   { (case "(($ac_try" in
10916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917   *) ac_try_echo=$ac_try;;
10918 esac
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920   (eval "$ac_try") 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   ac_cv_type_error_t=yes
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929         ac_cv_type_error_t=no
10930 fi
10931
10932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10936 if test $ac_cv_type_error_t = yes; then
10937
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_ERROR_T 1
10940 _ACEOF
10941
10942
10943 else
10944
10945 cat >>confdefs.h <<\_ACEOF
10946 #define error_t int
10947 _ACEOF
10948
10949 fi
10950
10951
10952
10953
10954
10955
10956
10957 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10958 do
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10973 #define $ac_func innocuous_$ac_func
10974
10975 /* System header to define __stub macros and hopefully few prototypes,
10976     which can conflict with char $ac_func (); below.
10977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978     <limits.h> exists even on freestanding compilers.  */
10979
10980 #ifdef __STDC__
10981 # include <limits.h>
10982 #else
10983 # include <assert.h>
10984 #endif
10985
10986 #undef $ac_func
10987
10988 /* Override any GCC internal prototype to avoid an error.
10989    Use char because int might match the return type of a GCC
10990    builtin and then its argument prototype would still apply.  */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char $ac_func ();
10995 /* The GNU C library defines this for functions which it implements
10996     to always fail with ENOSYS.  Some functions are actually named
10997     something starting with __ and the normal name is an alias.  */
10998 #if defined __stub_$ac_func || defined __stub___$ac_func
10999 choke me
11000 #endif
11001
11002 int
11003 main ()
11004 {
11005 return $ac_func ();
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (ac_try="$ac_link"
11012 case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_link") 2>conftest.er1
11018   ac_status=$?
11019   grep -v '^ *+' conftest.er1 >conftest.err
11020   rm -f conftest.er1
11021   cat conftest.err >&5
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025   { (case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_try") 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; } &&
11034          { ac_try='test -s conftest$ac_exeext'
11035   { (case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_try") 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; }; then
11044   eval "$as_ac_var=yes"
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         eval "$as_ac_var=no"
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext \
11053       conftest$ac_exeext conftest.$ac_ext
11054 fi
11055 ac_res=`eval echo '${'$as_ac_var'}'`
11056                { echo "$as_me:$LINENO: result: $ac_res" >&5
11057 echo "${ECHO_T}$ac_res" >&6; }
11058 if test `eval echo '${'$as_ac_var'}'` = yes; then
11059   cat >>confdefs.h <<_ACEOF
11060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11062
11063 fi
11064 done
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
11091
11092
11093 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11094                   stdio.h unistd.h
11095 do
11096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101   echo $ECHO_N "(cached) $ECHO_C" >&6
11102 fi
11103 ac_res=`eval echo '${'$as_ac_Header'}'`
11104                { echo "$as_me:$LINENO: result: $ac_res" >&5
11105 echo "${ECHO_T}$ac_res" >&6; }
11106 else
11107   # Is the header compilable?
11108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11110 cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 $ac_includes_default
11117 #include <$ac_header>
11118 _ACEOF
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126   (eval "$ac_compile") 2>conftest.er1
11127   ac_status=$?
11128   grep -v '^ *+' conftest.er1 >conftest.err
11129   rm -f conftest.er1
11130   cat conftest.err >&5
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } &&
11133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134   { (case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139   (eval "$ac_try") 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; } &&
11143          { ac_try='test -s conftest.$ac_objext'
11144   { (case "(($ac_try" in
11145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146   *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149   (eval "$ac_try") 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   ac_header_compiler=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158         ac_header_compiler=no
11159 fi
11160
11161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11163 echo "${ECHO_T}$ac_header_compiler" >&6; }
11164
11165 # Is the header present?
11166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11168 cat >conftest.$ac_ext <<_ACEOF
11169 /* confdefs.h.  */
11170 _ACEOF
11171 cat confdefs.h >>conftest.$ac_ext
11172 cat >>conftest.$ac_ext <<_ACEOF
11173 /* end confdefs.h.  */
11174 #include <$ac_header>
11175 _ACEOF
11176 if { (ac_try="$ac_cpp conftest.$ac_ext"
11177 case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } >/dev/null; then
11189   if test -s conftest.err; then
11190     ac_cpp_err=$ac_c_preproc_warn_flag
11191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11192   else
11193     ac_cpp_err=
11194   fi
11195 else
11196   ac_cpp_err=yes
11197 fi
11198 if test -z "$ac_cpp_err"; then
11199   ac_header_preproc=yes
11200 else
11201   echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204   ac_header_preproc=no
11205 fi
11206
11207 rm -f conftest.err conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11209 echo "${ECHO_T}$ac_header_preproc" >&6; }
11210
11211 # So?  What about this header?
11212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213   yes:no: )
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11218     ac_header_preproc=yes
11219     ;;
11220   no:yes:* )
11221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11233     ( cat <<\_ASBOX
11234 ## ------------------------------------ ##
11235 ## Report this to http://llvm.org/bugs/ ##
11236 ## ------------------------------------ ##
11237 _ASBOX
11238      ) | sed "s/^/$as_me: WARNING:     /" >&2
11239     ;;
11240 esac
11241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   eval "$as_ac_Header=\$ac_header_preproc"
11247 fi
11248 ac_res=`eval echo '${'$as_ac_Header'}'`
11249                { echo "$as_me:$LINENO: result: $ac_res" >&5
11250 echo "${ECHO_T}$ac_res" >&6; }
11251
11252 fi
11253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11254   cat >>confdefs.h <<_ACEOF
11255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11256 _ACEOF
11257
11258 fi
11259
11260 done
11261
11262
11263
11264
11265
11266 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11267 do
11268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11273   echo $ECHO_N "(cached) $ECHO_C" >&6
11274 fi
11275 ac_res=`eval echo '${'$as_ac_Header'}'`
11276                { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11278 else
11279   # Is the header compilable?
11280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288 $ac_includes_default
11289 #include <$ac_header>
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (ac_try="$ac_compile"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_compile") 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306   { (case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_try") 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; } &&
11315          { ac_try='test -s conftest.$ac_objext'
11316   { (case "(($ac_try" in
11317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318   *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321   (eval "$ac_try") 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }; then
11325   ac_header_compiler=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330         ac_header_compiler=no
11331 fi
11332
11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11335 echo "${ECHO_T}$ac_header_compiler" >&6; }
11336
11337 # Is the header present?
11338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11340 cat >conftest.$ac_ext <<_ACEOF
11341 /* confdefs.h.  */
11342 _ACEOF
11343 cat confdefs.h >>conftest.$ac_ext
11344 cat >>conftest.$ac_ext <<_ACEOF
11345 /* end confdefs.h.  */
11346 #include <$ac_header>
11347 _ACEOF
11348 if { (ac_try="$ac_cpp conftest.$ac_ext"
11349 case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11355   ac_status=$?
11356   grep -v '^ *+' conftest.er1 >conftest.err
11357   rm -f conftest.er1
11358   cat conftest.err >&5
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); } >/dev/null; then
11361   if test -s conftest.err; then
11362     ac_cpp_err=$ac_c_preproc_warn_flag
11363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364   else
11365     ac_cpp_err=
11366   fi
11367 else
11368   ac_cpp_err=yes
11369 fi
11370 if test -z "$ac_cpp_err"; then
11371   ac_header_preproc=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376   ac_header_preproc=no
11377 fi
11378
11379 rm -f conftest.err conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11381 echo "${ECHO_T}$ac_header_preproc" >&6; }
11382
11383 # So?  What about this header?
11384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11385   yes:no: )
11386     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11390     ac_header_preproc=yes
11391     ;;
11392   no:yes:* )
11393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11396 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11399     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11400 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11403     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11405     ( cat <<\_ASBOX
11406 ## ------------------------------------ ##
11407 ## Report this to http://llvm.org/bugs/ ##
11408 ## ------------------------------------ ##
11409 _ASBOX
11410      ) | sed "s/^/$as_me: WARNING:     /" >&2
11411     ;;
11412 esac
11413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   eval "$as_ac_Header=\$ac_header_preproc"
11419 fi
11420 ac_res=`eval echo '${'$as_ac_Header'}'`
11421                { echo "$as_me:$LINENO: result: $ac_res" >&5
11422 echo "${ECHO_T}$ac_res" >&6; }
11423
11424 fi
11425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11426   cat >>confdefs.h <<_ACEOF
11427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11428 _ACEOF
11429
11430 fi
11431
11432 done
11433
11434
11435
11436 for ac_header in string.h strings.h
11437 do
11438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 fi
11445 ac_res=`eval echo '${'$as_ac_Header'}'`
11446                { echo "$as_me:$LINENO: result: $ac_res" >&5
11447 echo "${ECHO_T}$ac_res" >&6; }
11448 else
11449   # Is the header compilable?
11450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h.  */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h.  */
11458 $ac_includes_default
11459 #include <$ac_header>
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (ac_try="$ac_compile"
11463 case "(($ac_try" in
11464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465   *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468   (eval "$ac_compile") 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } &&
11475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11476   { (case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481   (eval "$ac_try") 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_try") 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_header_compiler=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500         ac_header_compiler=no
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11505 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506
11507 # Is the header present?
11508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516 #include <$ac_header>
11517 _ACEOF
11518 if { (ac_try="$ac_cpp conftest.$ac_ext"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11525   ac_status=$?
11526   grep -v '^ *+' conftest.er1 >conftest.err
11527   rm -f conftest.er1
11528   cat conftest.err >&5
11529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530   (exit $ac_status); } >/dev/null; then
11531   if test -s conftest.err; then
11532     ac_cpp_err=$ac_c_preproc_warn_flag
11533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11534   else
11535     ac_cpp_err=
11536   fi
11537 else
11538   ac_cpp_err=yes
11539 fi
11540 if test -z "$ac_cpp_err"; then
11541   ac_header_preproc=yes
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546   ac_header_preproc=no
11547 fi
11548
11549 rm -f conftest.err conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11551 echo "${ECHO_T}$ac_header_preproc" >&6; }
11552
11553 # So?  What about this header?
11554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11555   yes:no: )
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11560     ac_header_preproc=yes
11561     ;;
11562   no:yes:* )
11563     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11566 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11570 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11575     ( cat <<\_ASBOX
11576 ## ------------------------------------ ##
11577 ## Report this to http://llvm.org/bugs/ ##
11578 ## ------------------------------------ ##
11579 _ASBOX
11580      ) | sed "s/^/$as_me: WARNING:     /" >&2
11581     ;;
11582 esac
11583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   eval "$as_ac_Header=\$ac_header_preproc"
11589 fi
11590 ac_res=`eval echo '${'$as_ac_Header'}'`
11591                { echo "$as_me:$LINENO: result: $ac_res" >&5
11592 echo "${ECHO_T}$ac_res" >&6; }
11593
11594 fi
11595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11596   cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11598 _ACEOF
11599  break
11600 fi
11601
11602 done
11603
11604
11605
11606
11607 for ac_func in strchr index
11608 do
11609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11613   echo $ECHO_N "(cached) $ECHO_C" >&6
11614 else
11615   cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623 #define $ac_func innocuous_$ac_func
11624
11625 /* System header to define __stub macros and hopefully few prototypes,
11626     which can conflict with char $ac_func (); below.
11627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628     <limits.h> exists even on freestanding compilers.  */
11629
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635
11636 #undef $ac_func
11637
11638 /* Override any GCC internal prototype to avoid an error.
11639    Use char because int might match the return type of a GCC
11640    builtin and then its argument prototype would still apply.  */
11641 #ifdef __cplusplus
11642 extern "C"
11643 #endif
11644 char $ac_func ();
11645 /* The GNU C library defines this for functions which it implements
11646     to always fail with ENOSYS.  Some functions are actually named
11647     something starting with __ and the normal name is an alias.  */
11648 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 choke me
11650 #endif
11651
11652 int
11653 main ()
11654 {
11655 return $ac_func ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664   *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667   (eval "$ac_link") 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } &&
11674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11675   { (case "(($ac_try" in
11676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677   *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680   (eval "$ac_try") 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); }; } &&
11684          { ac_try='test -s conftest$ac_exeext'
11685   { (case "(($ac_try" in
11686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687   *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690   (eval "$ac_try") 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); }; }; then
11694   eval "$as_ac_var=yes"
11695 else
11696   echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699         eval "$as_ac_var=no"
11700 fi
11701
11702 rm -f core conftest.err conftest.$ac_objext \
11703       conftest$ac_exeext conftest.$ac_ext
11704 fi
11705 ac_res=`eval echo '${'$as_ac_var'}'`
11706                { echo "$as_me:$LINENO: result: $ac_res" >&5
11707 echo "${ECHO_T}$ac_res" >&6; }
11708 if test `eval echo '${'$as_ac_var'}'` = yes; then
11709   cat >>confdefs.h <<_ACEOF
11710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 _ACEOF
11712  break
11713 fi
11714 done
11715
11716
11717
11718 for ac_func in strrchr rindex
11719 do
11720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11724   echo $ECHO_N "(cached) $ECHO_C" >&6
11725 else
11726   cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11734 #define $ac_func innocuous_$ac_func
11735
11736 /* System header to define __stub macros and hopefully few prototypes,
11737     which can conflict with char $ac_func (); below.
11738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739     <limits.h> exists even on freestanding compilers.  */
11740
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11746
11747 #undef $ac_func
11748
11749 /* Override any GCC internal prototype to avoid an error.
11750    Use char because int might match the return type of a GCC
11751    builtin and then its argument prototype would still apply.  */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char $ac_func ();
11756 /* The GNU C library defines this for functions which it implements
11757     to always fail with ENOSYS.  Some functions are actually named
11758     something starting with __ and the normal name is an alias.  */
11759 #if defined __stub_$ac_func || defined __stub___$ac_func
11760 choke me
11761 #endif
11762
11763 int
11764 main ()
11765 {
11766 return $ac_func ();
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (ac_try="$ac_link"
11773 case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778   (eval "$ac_link") 2>conftest.er1
11779   ac_status=$?
11780   grep -v '^ *+' conftest.er1 >conftest.err
11781   rm -f conftest.er1
11782   cat conftest.err >&5
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } &&
11785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11786   { (case "(($ac_try" in
11787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788   *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; } &&
11795          { ac_try='test -s conftest$ac_exeext'
11796   { (case "(($ac_try" in
11797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798   *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801   (eval "$ac_try") 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   eval "$as_ac_var=yes"
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810         eval "$as_ac_var=no"
11811 fi
11812
11813 rm -f core conftest.err conftest.$ac_objext \
11814       conftest$ac_exeext conftest.$ac_ext
11815 fi
11816 ac_res=`eval echo '${'$as_ac_var'}'`
11817                { echo "$as_me:$LINENO: result: $ac_res" >&5
11818 echo "${ECHO_T}$ac_res" >&6; }
11819 if test `eval echo '${'$as_ac_var'}'` = yes; then
11820   cat >>confdefs.h <<_ACEOF
11821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822 _ACEOF
11823  break
11824 fi
11825 done
11826
11827
11828
11829 for ac_func in memcpy bcopy
11830 do
11831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h.  */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h.  */
11843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11845 #define $ac_func innocuous_$ac_func
11846
11847 /* System header to define __stub macros and hopefully few prototypes,
11848     which can conflict with char $ac_func (); below.
11849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850     <limits.h> exists even on freestanding compilers.  */
11851
11852 #ifdef __STDC__
11853 # include <limits.h>
11854 #else
11855 # include <assert.h>
11856 #endif
11857
11858 #undef $ac_func
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char $ac_func ();
11867 /* The GNU C library defines this for functions which it implements
11868     to always fail with ENOSYS.  Some functions are actually named
11869     something starting with __ and the normal name is an alias.  */
11870 #if defined __stub_$ac_func || defined __stub___$ac_func
11871 choke me
11872 #endif
11873
11874 int
11875 main ()
11876 {
11877 return $ac_func ();
11878   ;
11879   return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (ac_try="$ac_link"
11884 case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_link") 2>conftest.er1
11890   ac_status=$?
11891   grep -v '^ *+' conftest.er1 >conftest.err
11892   rm -f conftest.er1
11893   cat conftest.err >&5
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); } &&
11896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11897   { (case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_try") 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; } &&
11906          { ac_try='test -s conftest$ac_exeext'
11907   { (case "(($ac_try" in
11908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909   *) ac_try_echo=$ac_try;;
11910 esac
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912   (eval "$ac_try") 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   eval "$as_ac_var=yes"
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921         eval "$as_ac_var=no"
11922 fi
11923
11924 rm -f core conftest.err conftest.$ac_objext \
11925       conftest$ac_exeext conftest.$ac_ext
11926 fi
11927 ac_res=`eval echo '${'$as_ac_var'}'`
11928                { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11930 if test `eval echo '${'$as_ac_var'}'` = yes; then
11931   cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 _ACEOF
11934  break
11935 fi
11936 done
11937
11938
11939
11940 for ac_func in memmove strcmp
11941 do
11942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11956 #define $ac_func innocuous_$ac_func
11957
11958 /* System header to define __stub macros and hopefully few prototypes,
11959     which can conflict with char $ac_func (); below.
11960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961     <limits.h> exists even on freestanding compilers.  */
11962
11963 #ifdef __STDC__
11964 # include <limits.h>
11965 #else
11966 # include <assert.h>
11967 #endif
11968
11969 #undef $ac_func
11970
11971 /* Override any GCC internal prototype to avoid an error.
11972    Use char because int might match the return type of a GCC
11973    builtin and then its argument prototype would still apply.  */
11974 #ifdef __cplusplus
11975 extern "C"
11976 #endif
11977 char $ac_func ();
11978 /* The GNU C library defines this for functions which it implements
11979     to always fail with ENOSYS.  Some functions are actually named
11980     something starting with __ and the normal name is an alias.  */
11981 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 choke me
11983 #endif
11984
11985 int
11986 main ()
11987 {
11988 return $ac_func ();
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000   (eval "$ac_link") 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008   { (case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_try") 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; } &&
12017          { ac_try='test -s conftest$ac_exeext'
12018   { (case "(($ac_try" in
12019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020   *) ac_try_echo=$ac_try;;
12021 esac
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023   (eval "$ac_try") 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; }; then
12027   eval "$as_ac_var=yes"
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032         eval "$as_ac_var=no"
12033 fi
12034
12035 rm -f core conftest.err conftest.$ac_objext \
12036       conftest$ac_exeext conftest.$ac_ext
12037 fi
12038 ac_res=`eval echo '${'$as_ac_var'}'`
12039                { echo "$as_me:$LINENO: result: $ac_res" >&5
12040 echo "${ECHO_T}$ac_res" >&6; }
12041 if test `eval echo '${'$as_ac_var'}'` = yes; then
12042   cat >>confdefs.h <<_ACEOF
12043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12044 _ACEOF
12045
12046 fi
12047 done
12048
12049
12050
12051
12052 for ac_func in closedir opendir readdir
12053 do
12054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12058   echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060   cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12068 #define $ac_func innocuous_$ac_func
12069
12070 /* System header to define __stub macros and hopefully few prototypes,
12071     which can conflict with char $ac_func (); below.
12072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12073     <limits.h> exists even on freestanding compilers.  */
12074
12075 #ifdef __STDC__
12076 # include <limits.h>
12077 #else
12078 # include <assert.h>
12079 #endif
12080
12081 #undef $ac_func
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084    Use char because int might match the return type of a GCC
12085    builtin and then its argument prototype would still apply.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char $ac_func ();
12090 /* The GNU C library defines this for functions which it implements
12091     to always fail with ENOSYS.  Some functions are actually named
12092     something starting with __ and the normal name is an alias.  */
12093 #if defined __stub_$ac_func || defined __stub___$ac_func
12094 choke me
12095 #endif
12096
12097 int
12098 main ()
12099 {
12100 return $ac_func ();
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (ac_try="$ac_link"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_link") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } &&
12119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12120   { (case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_try") 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest$ac_exeext'
12130   { (case "(($ac_try" in
12131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132   *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135   (eval "$ac_try") 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   eval "$as_ac_var=yes"
12140 else
12141   echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144         eval "$as_ac_var=no"
12145 fi
12146
12147 rm -f core conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 fi
12150 ac_res=`eval echo '${'$as_ac_var'}'`
12151                { echo "$as_me:$LINENO: result: $ac_res" >&5
12152 echo "${ECHO_T}$ac_res" >&6; }
12153 if test `eval echo '${'$as_ac_var'}'` = yes; then
12154   cat >>confdefs.h <<_ACEOF
12155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 _ACEOF
12157
12158 fi
12159 done
12160
12161
12162
12163 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12164 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12165
12166 ICC=no
12167 IXX=no
12168 case $CC in
12169   icc*|icpc*)
12170     ICC=yes
12171     IXX=yes
12172     ;;
12173    *)
12174     ;;
12175 esac
12176
12177 if test "$GCC" != "yes" && test "$ICC" != "yes"
12178 then
12179   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12180 echo "$as_me: error: gcc|icc required but not found" >&2;}
12181    { (exit 1); exit 1; }; }
12182 fi
12183
12184 if test "$GXX" != "yes" && test "$IXX" != "yes"
12185 then
12186   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12187 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12188    { (exit 1); exit 1; }; }
12189 fi
12190
12191 if test "$GCC" = "yes"
12192 then
12193   cat >conftest.$ac_ext <<_ACEOF
12194 #if !defined(__GNUC__) || __GNUC__ < 3
12195 #error Unsupported GCC version
12196 #endif
12197
12198 _ACEOF
12199 rm -f conftest.$ac_objext
12200 if { (ac_try="$ac_compile"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_compile") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } &&
12213          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12214   { (case "(($ac_try" in
12215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216   *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219   (eval "$ac_try") 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (case "(($ac_try" in
12225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226   *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229   (eval "$ac_try") 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233   :
12234 else
12235   echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12239 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12240    { (exit 1); exit 1; }; }
12241 fi
12242
12243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 fi
12245
12246 if test -z "$llvm_cv_gnu_make_command"
12247 then
12248   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12249 echo "$as_me: error: GNU Make required but not found" >&2;}
12250    { (exit 1); exit 1; }; }
12251 fi
12252
12253 { echo "$as_me:$LINENO: result: ok" >&5
12254 echo "${ECHO_T}ok" >&6; }
12255
12256 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12257 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12258 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12259
12260 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12261
12262 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12263 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12264
12265
12266
12267 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12268 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12269 if test "${ac_cv_lib_m_sin+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lm  $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282    Use char because int might match the return type of a GCC
12283    builtin and then its argument prototype would still apply.  */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char sin ();
12288 int
12289 main ()
12290 {
12291 return sin ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300   *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303   (eval "$ac_link") 2>conftest.er1
12304   ac_status=$?
12305   grep -v '^ *+' conftest.er1 >conftest.err
12306   rm -f conftest.er1
12307   cat conftest.err >&5
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } &&
12310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311   { (case "(($ac_try" in
12312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313   *) ac_try_echo=$ac_try;;
12314 esac
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316   (eval "$ac_try") 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; } &&
12320          { ac_try='test -s conftest$ac_exeext'
12321   { (case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_try") 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   ac_cv_lib_m_sin=yes
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335         ac_cv_lib_m_sin=no
12336 fi
12337
12338 rm -f core conftest.err conftest.$ac_objext \
12339       conftest$ac_exeext conftest.$ac_ext
12340 LIBS=$ac_check_lib_save_LIBS
12341 fi
12342 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12343 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12344 if test $ac_cv_lib_m_sin = yes; then
12345   cat >>confdefs.h <<_ACEOF
12346 #define HAVE_LIBM 1
12347 _ACEOF
12348
12349   LIBS="-lm $LIBS"
12350
12351 fi
12352
12353 if test "$llvm_cv_os_type" = "MingW" ; then
12354
12355 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12356 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12357 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12358   echo $ECHO_N "(cached) $ECHO_C" >&6
12359 else
12360   ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-limagehlp  $LIBS"
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368
12369
12370 int
12371 main ()
12372 {
12373 return main ();
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (ac_try="$ac_link"
12380 case "(($ac_try" in
12381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382   *) ac_try_echo=$ac_try;;
12383 esac
12384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385   (eval "$ac_link") 2>conftest.er1
12386   ac_status=$?
12387   grep -v '^ *+' conftest.er1 >conftest.err
12388   rm -f conftest.er1
12389   cat conftest.err >&5
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12393   { (case "(($ac_try" in
12394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395   *) ac_try_echo=$ac_try;;
12396 esac
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398   (eval "$ac_try") 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; } &&
12402          { ac_try='test -s conftest$ac_exeext'
12403   { (case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_try") 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); }; }; then
12412   ac_cv_lib_imagehlp_main=yes
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417         ac_cv_lib_imagehlp_main=no
12418 fi
12419
12420 rm -f core conftest.err conftest.$ac_objext \
12421       conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12423 fi
12424 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12425 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12426 if test $ac_cv_lib_imagehlp_main = yes; then
12427   cat >>confdefs.h <<_ACEOF
12428 #define HAVE_LIBIMAGEHLP 1
12429 _ACEOF
12430
12431   LIBS="-limagehlp $LIBS"
12432
12433 fi
12434
12435
12436 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12437 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12438 if test "${ac_cv_lib_psapi_main+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   ac_check_lib_save_LIBS=$LIBS
12442 LIBS="-lpsapi  $LIBS"
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449
12450
12451 int
12452 main ()
12453 {
12454 return main ();
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 rm -f conftest.$ac_objext conftest$ac_exeext
12460 if { (ac_try="$ac_link"
12461 case "(($ac_try" in
12462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463   *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466   (eval "$ac_link") 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12474   { (case "(($ac_try" in
12475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476   *) ac_try_echo=$ac_try;;
12477 esac
12478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479   (eval "$ac_try") 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; } &&
12483          { ac_try='test -s conftest$ac_exeext'
12484   { (case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489   (eval "$ac_try") 2>&5
12490   ac_status=$?
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); }; }; then
12493   ac_cv_lib_psapi_main=yes
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498         ac_cv_lib_psapi_main=no
12499 fi
12500
12501 rm -f core conftest.err conftest.$ac_objext \
12502       conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12504 fi
12505 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12506 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12507 if test $ac_cv_lib_psapi_main = yes; then
12508   cat >>confdefs.h <<_ACEOF
12509 #define HAVE_LIBPSAPI 1
12510 _ACEOF
12511
12512   LIBS="-lpsapi $LIBS"
12513
12514 fi
12515
12516 fi
12517
12518 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12519 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12520 if test "${ac_cv_search_dlopen+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   ac_func_search_save_LIBS=$LIBS
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530
12531 /* Override any GCC internal prototype to avoid an error.
12532    Use char because int might match the return type of a GCC
12533    builtin and then its argument prototype would still apply.  */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char dlopen ();
12538 int
12539 main ()
12540 {
12541 return dlopen ();
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 for ac_lib in '' dl; do
12547   if test -z "$ac_lib"; then
12548     ac_res="none required"
12549   else
12550     ac_res=-l$ac_lib
12551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12552   fi
12553   rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } &&
12567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12568   { (case "(($ac_try" in
12569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570   *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573   (eval "$ac_try") 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; } &&
12577          { ac_try='test -s conftest$ac_exeext'
12578   { (case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_try") 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; }; then
12587   ac_cv_search_dlopen=$ac_res
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592
12593 fi
12594
12595 rm -f core conftest.err conftest.$ac_objext \
12596       conftest$ac_exeext
12597   if test "${ac_cv_search_dlopen+set}" = set; then
12598   break
12599 fi
12600 done
12601 if test "${ac_cv_search_dlopen+set}" = set; then
12602   :
12603 else
12604   ac_cv_search_dlopen=no
12605 fi
12606 rm conftest.$ac_ext
12607 LIBS=$ac_func_search_save_LIBS
12608 fi
12609 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12610 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12611 ac_res=$ac_cv_search_dlopen
12612 if test "$ac_res" != no; then
12613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12614
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_DLOPEN 1
12617 _ACEOF
12618
12619 else
12620   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12621 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12622 fi
12623
12624
12625 if test "$llvm_cv_enable_libffi" = "yes" ; then
12626   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12627 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12628 if test "${ac_cv_search_ffi_call+set}" = set; then
12629   echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631   ac_func_search_save_LIBS=$LIBS
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h.  */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h.  */
12638
12639 /* Override any GCC internal prototype to avoid an error.
12640    Use char because int might match the return type of a GCC
12641    builtin and then its argument prototype would still apply.  */
12642 #ifdef __cplusplus
12643 extern "C"
12644 #endif
12645 char ffi_call ();
12646 int
12647 main ()
12648 {
12649 return ffi_call ();
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 for ac_lib in '' ffi; do
12655   if test -z "$ac_lib"; then
12656     ac_res="none required"
12657   else
12658     ac_res=-l$ac_lib
12659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12660   fi
12661   rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665   *) ac_try_echo=$ac_try;;
12666 esac
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668   (eval "$ac_link") 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } &&
12675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676   { (case "(($ac_try" in
12677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678   *) ac_try_echo=$ac_try;;
12679 esac
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681   (eval "$ac_try") 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest$ac_exeext'
12686   { (case "(($ac_try" in
12687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688   *) ac_try_echo=$ac_try;;
12689 esac
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691   (eval "$ac_try") 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   ac_cv_search_ffi_call=$ac_res
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700
12701 fi
12702
12703 rm -f core conftest.err conftest.$ac_objext \
12704       conftest$ac_exeext
12705   if test "${ac_cv_search_ffi_call+set}" = set; then
12706   break
12707 fi
12708 done
12709 if test "${ac_cv_search_ffi_call+set}" = set; then
12710   :
12711 else
12712   ac_cv_search_ffi_call=no
12713 fi
12714 rm conftest.$ac_ext
12715 LIBS=$ac_func_search_save_LIBS
12716 fi
12717 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12718 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12719 ac_res=$ac_cv_search_ffi_call
12720 if test "$ac_res" != no; then
12721   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12722
12723 cat >>confdefs.h <<\_ACEOF
12724 #define HAVE_FFI_CALL 1
12725 _ACEOF
12726
12727 else
12728   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12729 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12730    { (exit 1); exit 1; }; }
12731 fi
12732
12733 fi
12734
12735 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12736 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12737 if test "${ac_cv_search_mallinfo+set}" = set; then
12738   echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740   ac_func_search_save_LIBS=$LIBS
12741 cat >conftest.$ac_ext <<_ACEOF
12742 /* confdefs.h.  */
12743 _ACEOF
12744 cat confdefs.h >>conftest.$ac_ext
12745 cat >>conftest.$ac_ext <<_ACEOF
12746 /* end confdefs.h.  */
12747
12748 /* Override any GCC internal prototype to avoid an error.
12749    Use char because int might match the return type of a GCC
12750    builtin and then its argument prototype would still apply.  */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 char mallinfo ();
12755 int
12756 main ()
12757 {
12758 return mallinfo ();
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 for ac_lib in '' malloc; do
12764   if test -z "$ac_lib"; then
12765     ac_res="none required"
12766   else
12767     ac_res=-l$ac_lib
12768     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12769   fi
12770   rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (ac_try="$ac_link"
12772 case "(($ac_try" in
12773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774   *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777   (eval "$ac_link") 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } &&
12784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12785   { (case "(($ac_try" in
12786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787   *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790   (eval "$ac_try") 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; } &&
12794          { ac_try='test -s conftest$ac_exeext'
12795   { (case "(($ac_try" in
12796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797   *) ac_try_echo=$ac_try;;
12798 esac
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800   (eval "$ac_try") 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; }; then
12804   ac_cv_search_mallinfo=$ac_res
12805 else
12806   echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809
12810 fi
12811
12812 rm -f core conftest.err conftest.$ac_objext \
12813       conftest$ac_exeext
12814   if test "${ac_cv_search_mallinfo+set}" = set; then
12815   break
12816 fi
12817 done
12818 if test "${ac_cv_search_mallinfo+set}" = set; then
12819   :
12820 else
12821   ac_cv_search_mallinfo=no
12822 fi
12823 rm conftest.$ac_ext
12824 LIBS=$ac_func_search_save_LIBS
12825 fi
12826 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12827 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12828 ac_res=$ac_cv_search_mallinfo
12829 if test "$ac_res" != no; then
12830   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12831
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_MALLINFO 1
12834 _ACEOF
12835
12836 fi
12837
12838
12839 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12840
12841 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12842 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12843 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   ac_check_lib_save_LIBS=$LIBS
12847 LIBS="-lpthread  $LIBS"
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char pthread_mutex_init ();
12862 int
12863 main ()
12864 {
12865 return pthread_mutex_init ();
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 rm -f conftest.$ac_objext conftest$ac_exeext
12871 if { (ac_try="$ac_link"
12872 case "(($ac_try" in
12873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874   *) ac_try_echo=$ac_try;;
12875 esac
12876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877   (eval "$ac_link") 2>conftest.er1
12878   ac_status=$?
12879   grep -v '^ *+' conftest.er1 >conftest.err
12880   rm -f conftest.er1
12881   cat conftest.err >&5
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); } &&
12884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12885   { (case "(($ac_try" in
12886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887   *) ac_try_echo=$ac_try;;
12888 esac
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890   (eval "$ac_try") 2>&5
12891   ac_status=$?
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); }; } &&
12894          { ac_try='test -s conftest$ac_exeext'
12895   { (case "(($ac_try" in
12896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897   *) ac_try_echo=$ac_try;;
12898 esac
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900   (eval "$ac_try") 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_lib_pthread_pthread_mutex_init=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909         ac_cv_lib_pthread_pthread_mutex_init=no
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext \
12913       conftest$ac_exeext conftest.$ac_ext
12914 LIBS=$ac_check_lib_save_LIBS
12915 fi
12916 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12917 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12918 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12919   cat >>confdefs.h <<_ACEOF
12920 #define HAVE_LIBPTHREAD 1
12921 _ACEOF
12922
12923   LIBS="-lpthread $LIBS"
12924
12925 fi
12926
12927   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12928 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12929 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12930   echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932   ac_func_search_save_LIBS=$LIBS
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939
12940 /* Override any GCC internal prototype to avoid an error.
12941    Use char because int might match the return type of a GCC
12942    builtin and then its argument prototype would still apply.  */
12943 #ifdef __cplusplus
12944 extern "C"
12945 #endif
12946 char pthread_mutex_lock ();
12947 int
12948 main ()
12949 {
12950 return pthread_mutex_lock ();
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 for ac_lib in '' pthread; do
12956   if test -z "$ac_lib"; then
12957     ac_res="none required"
12958   else
12959     ac_res=-l$ac_lib
12960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12961   fi
12962   rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (ac_try="$ac_link"
12964 case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_link") 2>conftest.er1
12970   ac_status=$?
12971   grep -v '^ *+' conftest.er1 >conftest.err
12972   rm -f conftest.er1
12973   cat conftest.err >&5
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } &&
12976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12977   { (case "(($ac_try" in
12978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979   *) ac_try_echo=$ac_try;;
12980 esac
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982   (eval "$ac_try") 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (case "(($ac_try" in
12988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989   *) ac_try_echo=$ac_try;;
12990 esac
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992   (eval "$ac_try") 2>&5
12993   ac_status=$?
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); }; }; then
12996   ac_cv_search_pthread_mutex_lock=$ac_res
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002 fi
13003
13004 rm -f core conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext
13006   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13007   break
13008 fi
13009 done
13010 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13011   :
13012 else
13013   ac_cv_search_pthread_mutex_lock=no
13014 fi
13015 rm conftest.$ac_ext
13016 LIBS=$ac_func_search_save_LIBS
13017 fi
13018 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13019 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13020 ac_res=$ac_cv_search_pthread_mutex_lock
13021 if test "$ac_res" != no; then
13022   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_PTHREAD_MUTEX_LOCK 1
13026 _ACEOF
13027
13028 fi
13029
13030   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13031 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13032 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13033   echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035   ac_func_search_save_LIBS=$LIBS
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042
13043 /* Override any GCC internal prototype to avoid an error.
13044    Use char because int might match the return type of a GCC
13045    builtin and then its argument prototype would still apply.  */
13046 #ifdef __cplusplus
13047 extern "C"
13048 #endif
13049 char pthread_rwlock_init ();
13050 int
13051 main ()
13052 {
13053 return pthread_rwlock_init ();
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 for ac_lib in '' pthread; do
13059   if test -z "$ac_lib"; then
13060     ac_res="none required"
13061   else
13062     ac_res=-l$ac_lib
13063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13064   fi
13065   rm -f conftest.$ac_objext conftest$ac_exeext
13066 if { (ac_try="$ac_link"
13067 case "(($ac_try" in
13068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069   *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072   (eval "$ac_link") 2>conftest.er1
13073   ac_status=$?
13074   grep -v '^ *+' conftest.er1 >conftest.err
13075   rm -f conftest.er1
13076   cat conftest.err >&5
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); } &&
13079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; } &&
13089          { ac_try='test -s conftest$ac_exeext'
13090   { (case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095   (eval "$ac_try") 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099   ac_cv_search_pthread_rwlock_init=$ac_res
13100 else
13101   echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.$ac_ext >&5
13103
13104
13105 fi
13106
13107 rm -f core conftest.err conftest.$ac_objext \
13108       conftest$ac_exeext
13109   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13110   break
13111 fi
13112 done
13113 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13114   :
13115 else
13116   ac_cv_search_pthread_rwlock_init=no
13117 fi
13118 rm conftest.$ac_ext
13119 LIBS=$ac_func_search_save_LIBS
13120 fi
13121 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13122 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13123 ac_res=$ac_cv_search_pthread_rwlock_init
13124 if test "$ac_res" != no; then
13125   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13126
13127 cat >>confdefs.h <<\_ACEOF
13128 #define HAVE_PTHREAD_RWLOCK_INIT 1
13129 _ACEOF
13130
13131 fi
13132
13133   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13134 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13135 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 else
13138   ac_func_search_save_LIBS=$LIBS
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147    Use char because int might match the return type of a GCC
13148    builtin and then its argument prototype would still apply.  */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char pthread_getspecific ();
13153 int
13154 main ()
13155 {
13156 return pthread_getspecific ();
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 for ac_lib in '' pthread; do
13162   if test -z "$ac_lib"; then
13163     ac_res="none required"
13164   else
13165     ac_res=-l$ac_lib
13166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13167   fi
13168   rm -f conftest.$ac_objext conftest$ac_exeext
13169 if { (ac_try="$ac_link"
13170 case "(($ac_try" in
13171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172   *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175   (eval "$ac_link") 2>conftest.er1
13176   ac_status=$?
13177   grep -v '^ *+' conftest.er1 >conftest.err
13178   rm -f conftest.er1
13179   cat conftest.err >&5
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); } &&
13182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13183   { (case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_try") 2>&5
13189   ac_status=$?
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); }; } &&
13192          { ac_try='test -s conftest$ac_exeext'
13193   { (case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198   (eval "$ac_try") 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_cv_search_pthread_getspecific=$ac_res
13203 else
13204   echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207
13208 fi
13209
13210 rm -f core conftest.err conftest.$ac_objext \
13211       conftest$ac_exeext
13212   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13213   break
13214 fi
13215 done
13216 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13217   :
13218 else
13219   ac_cv_search_pthread_getspecific=no
13220 fi
13221 rm conftest.$ac_ext
13222 LIBS=$ac_func_search_save_LIBS
13223 fi
13224 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13225 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13226 ac_res=$ac_cv_search_pthread_getspecific
13227 if test "$ac_res" != no; then
13228   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13229
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_PTHREAD_GETSPECIFIC 1
13232 _ACEOF
13233
13234 fi
13235
13236 fi
13237
13238
13239 # Check whether --with-udis86 was given.
13240 if test "${with_udis86+set}" = set; then
13241   withval=$with_udis86;
13242       USE_UDIS86=1
13243
13244       case "$withval" in
13245         /usr/lib|yes) ;;
13246         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13247       esac
13248
13249 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13250 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13251 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13252   echo $ECHO_N "(cached) $ECHO_C" >&6
13253 else
13254   ac_check_lib_save_LIBS=$LIBS
13255 LIBS="-ludis86  $LIBS"
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262
13263 /* Override any GCC internal prototype to avoid an error.
13264    Use char because int might match the return type of a GCC
13265    builtin and then its argument prototype would still apply.  */
13266 #ifdef __cplusplus
13267 extern "C"
13268 #endif
13269 char ud_init ();
13270 int
13271 main ()
13272 {
13273 return ud_init ();
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext conftest$ac_exeext
13279 if { (ac_try="$ac_link"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_link") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; } &&
13302          { ac_try='test -s conftest$ac_exeext'
13303   { (case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_try") 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_lib_udis86_ud_init=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317         ac_cv_lib_udis86_ud_init=no
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext \
13321       conftest$ac_exeext conftest.$ac_ext
13322 LIBS=$ac_check_lib_save_LIBS
13323 fi
13324 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13325 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13326 if test $ac_cv_lib_udis86_ud_init = yes; then
13327   cat >>confdefs.h <<_ACEOF
13328 #define HAVE_LIBUDIS86 1
13329 _ACEOF
13330
13331   LIBS="-ludis86 $LIBS"
13332
13333 else
13334
13335         echo "Error! You need to have libudis86 around."
13336         exit -1
13337
13338 fi
13339
13340
13341 else
13342   USE_UDIS86=0
13343
13344 fi
13345
13346
13347 cat >>confdefs.h <<_ACEOF
13348 #define USE_UDIS86 $USE_UDIS86
13349 _ACEOF
13350
13351
13352
13353 # Check whether --with-oprofile was given.
13354 if test "${with_oprofile+set}" = set; then
13355   withval=$with_oprofile;
13356       USE_OPROFILE=1
13357
13358       case "$withval" in
13359         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13360         no) llvm_cv_oppath=
13361             USE_OPROFILE=0
13362  ;;
13363         *) llvm_cv_oppath="${withval}/lib/oprofile"
13364            CPPFLAGS="-I${withval}/include";;
13365       esac
13366       if test -n "$llvm_cv_oppath" ; then
13367         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13368                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13369 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13370 if test "${ac_cv_search_bfd_init+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_func_search_save_LIBS=$LIBS
13374 cat >conftest.$ac_ext <<_ACEOF
13375 /* confdefs.h.  */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h.  */
13380
13381 /* Override any GCC internal prototype to avoid an error.
13382    Use char because int might match the return type of a GCC
13383    builtin and then its argument prototype would still apply.  */
13384 #ifdef __cplusplus
13385 extern "C"
13386 #endif
13387 char bfd_init ();
13388 int
13389 main ()
13390 {
13391 return bfd_init ();
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 for ac_lib in '' bfd; do
13397   if test -z "$ac_lib"; then
13398     ac_res="none required"
13399   else
13400     ac_res=-l$ac_lib
13401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13402   fi
13403   rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest$ac_exeext'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_search_bfd_init=$ac_res
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442
13443 fi
13444
13445 rm -f core conftest.err conftest.$ac_objext \
13446       conftest$ac_exeext
13447   if test "${ac_cv_search_bfd_init+set}" = set; then
13448   break
13449 fi
13450 done
13451 if test "${ac_cv_search_bfd_init+set}" = set; then
13452   :
13453 else
13454   ac_cv_search_bfd_init=no
13455 fi
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13458 fi
13459 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13460 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13461 ac_res=$ac_cv_search_bfd_init
13462 if test "$ac_res" != no; then
13463   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13464
13465 fi
13466
13467         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13468 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13469 if test "${ac_cv_search_op_open_agent+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   ac_func_search_save_LIBS=$LIBS
13473 cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479
13480 /* Override any GCC internal prototype to avoid an error.
13481    Use char because int might match the return type of a GCC
13482    builtin and then its argument prototype would still apply.  */
13483 #ifdef __cplusplus
13484 extern "C"
13485 #endif
13486 char op_open_agent ();
13487 int
13488 main ()
13489 {
13490 return op_open_agent ();
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 for ac_lib in '' opagent; do
13496   if test -z "$ac_lib"; then
13497     ac_res="none required"
13498   else
13499     ac_res=-l$ac_lib
13500     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13501   fi
13502   rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506   *) ac_try_echo=$ac_try;;
13507 esac
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509   (eval "$ac_link") 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13517   { (case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_try") 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest$ac_exeext'
13527   { (case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_try") 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_cv_search_op_open_agent=$ac_res
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541
13542 fi
13543
13544 rm -f core conftest.err conftest.$ac_objext \
13545       conftest$ac_exeext
13546   if test "${ac_cv_search_op_open_agent+set}" = set; then
13547   break
13548 fi
13549 done
13550 if test "${ac_cv_search_op_open_agent+set}" = set; then
13551   :
13552 else
13553   ac_cv_search_op_open_agent=no
13554 fi
13555 rm conftest.$ac_ext
13556 LIBS=$ac_func_search_save_LIBS
13557 fi
13558 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13559 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13560 ac_res=$ac_cv_search_op_open_agent
13561 if test "$ac_res" != no; then
13562   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13563
13564 else
13565
13566           echo "Error! You need to have libopagent around."
13567           exit -1
13568
13569 fi
13570
13571         if test "${ac_cv_header_opagent_h+set}" = set; then
13572   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13573 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13574 if test "${ac_cv_header_opagent_h+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 fi
13577 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13578 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13579 else
13580   # Is the header compilable?
13581 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13582 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589 $ac_includes_default
13590 #include <opagent.h>
13591 _ACEOF
13592 rm -f conftest.$ac_objext
13593 if { (ac_try="$ac_compile"
13594 case "(($ac_try" in
13595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596   *) ac_try_echo=$ac_try;;
13597 esac
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599   (eval "$ac_compile") 2>conftest.er1
13600   ac_status=$?
13601   grep -v '^ *+' conftest.er1 >conftest.err
13602   rm -f conftest.er1
13603   cat conftest.err >&5
13604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605   (exit $ac_status); } &&
13606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607   { (case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_try") 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; } &&
13616          { ac_try='test -s conftest.$ac_objext'
13617   { (case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_try") 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_header_compiler=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631         ac_header_compiler=no
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636 echo "${ECHO_T}$ac_header_compiler" >&6; }
13637
13638 # Is the header present?
13639 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13640 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 #include <opagent.h>
13648 _ACEOF
13649 if { (ac_try="$ac_cpp conftest.$ac_ext"
13650 case "(($ac_try" in
13651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652   *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13656   ac_status=$?
13657   grep -v '^ *+' conftest.er1 >conftest.err
13658   rm -f conftest.er1
13659   cat conftest.err >&5
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } >/dev/null; then
13662   if test -s conftest.err; then
13663     ac_cpp_err=$ac_c_preproc_warn_flag
13664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13665   else
13666     ac_cpp_err=
13667   fi
13668 else
13669   ac_cpp_err=yes
13670 fi
13671 if test -z "$ac_cpp_err"; then
13672   ac_header_preproc=yes
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677   ac_header_preproc=no
13678 fi
13679
13680 rm -f conftest.err conftest.$ac_ext
13681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682 echo "${ECHO_T}$ac_header_preproc" >&6; }
13683
13684 # So?  What about this header?
13685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13686   yes:no: )
13687     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13688 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13690 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13691     ac_header_preproc=yes
13692     ;;
13693   no:yes:* )
13694     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13695 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13696     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13697 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13698     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13699 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13700     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13701 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13702     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13703 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13704     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13705 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13706     ( cat <<\_ASBOX
13707 ## ------------------------------------ ##
13708 ## Report this to http://llvm.org/bugs/ ##
13709 ## ------------------------------------ ##
13710 _ASBOX
13711      ) | sed "s/^/$as_me: WARNING:     /" >&2
13712     ;;
13713 esac
13714 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13715 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13716 if test "${ac_cv_header_opagent_h+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   ac_cv_header_opagent_h=$ac_header_preproc
13720 fi
13721 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13722 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13723
13724 fi
13725 if test $ac_cv_header_opagent_h = yes; then
13726   :
13727 else
13728
13729           echo "Error! You need to have opagent.h around."
13730           exit -1
13731
13732 fi
13733
13734
13735       fi
13736
13737 else
13738
13739       USE_OPROFILE=0
13740
13741
13742 fi
13743
13744
13745 cat >>confdefs.h <<_ACEOF
13746 #define USE_OPROFILE $USE_OPROFILE
13747 _ACEOF
13748
13749
13750
13751
13752
13753
13754
13755
13756 ac_header_dirent=no
13757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13758   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13759 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13760 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13762   echo $ECHO_N "(cached) $ECHO_C" >&6
13763 else
13764   cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 #include <sys/types.h>
13771 #include <$ac_hdr>
13772
13773 int
13774 main ()
13775 {
13776 if ((DIR *) 0)
13777 return 0;
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext
13783 if { (ac_try="$ac_compile"
13784 case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789   (eval "$ac_compile") 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797   { (case "(($ac_try" in
13798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799   *) ac_try_echo=$ac_try;;
13800 esac
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802   (eval "$ac_try") 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; } &&
13806          { ac_try='test -s conftest.$ac_objext'
13807   { (case "(($ac_try" in
13808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809   *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812   (eval "$ac_try") 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; }; then
13816   eval "$as_ac_Header=yes"
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821         eval "$as_ac_Header=no"
13822 fi
13823
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 ac_res=`eval echo '${'$as_ac_Header'}'`
13827                { echo "$as_me:$LINENO: result: $ac_res" >&5
13828 echo "${ECHO_T}$ac_res" >&6; }
13829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830   cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13832 _ACEOF
13833
13834 ac_header_dirent=$ac_hdr; break
13835 fi
13836
13837 done
13838 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13839 if test $ac_header_dirent = dirent.h; then
13840   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13841 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13842 if test "${ac_cv_search_opendir+set}" = set; then
13843   echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845   ac_func_search_save_LIBS=$LIBS
13846 cat >conftest.$ac_ext <<_ACEOF
13847 /* confdefs.h.  */
13848 _ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h.  */
13852
13853 /* Override any GCC internal prototype to avoid an error.
13854    Use char because int might match the return type of a GCC
13855    builtin and then its argument prototype would still apply.  */
13856 #ifdef __cplusplus
13857 extern "C"
13858 #endif
13859 char opendir ();
13860 int
13861 main ()
13862 {
13863 return opendir ();
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 for ac_lib in '' dir; do
13869   if test -z "$ac_lib"; then
13870     ac_res="none required"
13871   else
13872     ac_res=-l$ac_lib
13873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13874   fi
13875   rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_link") 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890   { (case "(($ac_try" in
13891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892   *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895   (eval "$ac_try") 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; } &&
13899          { ac_try='test -s conftest$ac_exeext'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   ac_cv_search_opendir=$ac_res
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext \
13918       conftest$ac_exeext
13919   if test "${ac_cv_search_opendir+set}" = set; then
13920   break
13921 fi
13922 done
13923 if test "${ac_cv_search_opendir+set}" = set; then
13924   :
13925 else
13926   ac_cv_search_opendir=no
13927 fi
13928 rm conftest.$ac_ext
13929 LIBS=$ac_func_search_save_LIBS
13930 fi
13931 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13932 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13933 ac_res=$ac_cv_search_opendir
13934 if test "$ac_res" != no; then
13935   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13936
13937 fi
13938
13939 else
13940   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13941 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13942 if test "${ac_cv_search_opendir+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945   ac_func_search_save_LIBS=$LIBS
13946 cat >conftest.$ac_ext <<_ACEOF
13947 /* confdefs.h.  */
13948 _ACEOF
13949 cat confdefs.h >>conftest.$ac_ext
13950 cat >>conftest.$ac_ext <<_ACEOF
13951 /* end confdefs.h.  */
13952
13953 /* Override any GCC internal prototype to avoid an error.
13954    Use char because int might match the return type of a GCC
13955    builtin and then its argument prototype would still apply.  */
13956 #ifdef __cplusplus
13957 extern "C"
13958 #endif
13959 char opendir ();
13960 int
13961 main ()
13962 {
13963 return opendir ();
13964   ;
13965   return 0;
13966 }
13967 _ACEOF
13968 for ac_lib in '' x; do
13969   if test -z "$ac_lib"; then
13970     ac_res="none required"
13971   else
13972     ac_res=-l$ac_lib
13973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13974   fi
13975   rm -f conftest.$ac_objext conftest$ac_exeext
13976 if { (ac_try="$ac_link"
13977 case "(($ac_try" in
13978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979   *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982   (eval "$ac_link") 2>conftest.er1
13983   ac_status=$?
13984   grep -v '^ *+' conftest.er1 >conftest.err
13985   rm -f conftest.er1
13986   cat conftest.err >&5
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13990   { (case "(($ac_try" in
13991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992   *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995   (eval "$ac_try") 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest$ac_exeext'
14000   { (case "(($ac_try" in
14001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14002   *) ac_try_echo=$ac_try;;
14003 esac
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005   (eval "$ac_try") 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   ac_cv_search_opendir=$ac_res
14010 else
14011   echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014
14015 fi
14016
14017 rm -f core conftest.err conftest.$ac_objext \
14018       conftest$ac_exeext
14019   if test "${ac_cv_search_opendir+set}" = set; then
14020   break
14021 fi
14022 done
14023 if test "${ac_cv_search_opendir+set}" = set; then
14024   :
14025 else
14026   ac_cv_search_opendir=no
14027 fi
14028 rm conftest.$ac_ext
14029 LIBS=$ac_func_search_save_LIBS
14030 fi
14031 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14032 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14033 ac_res=$ac_cv_search_opendir
14034 if test "$ac_res" != no; then
14035   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14036
14037 fi
14038
14039 fi
14040
14041 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14042 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_mmap_anon+set}" = set; then
14044   echo $ECHO_N "(cached) $ECHO_C" >&6
14045 else
14046    ac_ext=c
14047 ac_cpp='$CPP $CPPFLAGS'
14048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14051
14052   cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 #include <sys/mman.h>
14059 #include <unistd.h>
14060 #include <fcntl.h>
14061 int
14062 main ()
14063 {
14064 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14065   ;
14066   return 0;
14067 }
14068 _ACEOF
14069 rm -f conftest.$ac_objext
14070 if { (ac_try="$ac_compile"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_compile") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084   { (case "(($ac_try" in
14085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086   *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089   (eval "$ac_try") 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; } &&
14093          { ac_try='test -s conftest.$ac_objext'
14094   { (case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_try") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   ac_cv_header_mmap_anon=yes
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108         ac_cv_header_mmap_anon=no
14109 fi
14110
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112   ac_ext=c
14113 ac_cpp='$CPP $CPPFLAGS'
14114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14117
14118
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14121 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14122 if test "$ac_cv_header_mmap_anon" = yes; then
14123
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_MMAP_ANONYMOUS 1
14126 _ACEOF
14127
14128 fi
14129
14130 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14131 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14132 if test "${ac_cv_header_stat_broken+set}" = set; then
14133   echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135   cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 #include <sys/types.h>
14142 #include <sys/stat.h>
14143
14144 #if defined S_ISBLK && defined S_IFDIR
14145 # if S_ISBLK (S_IFDIR)
14146 You lose.
14147 # endif
14148 #endif
14149
14150 #if defined S_ISBLK && defined S_IFCHR
14151 # if S_ISBLK (S_IFCHR)
14152 You lose.
14153 # endif
14154 #endif
14155
14156 #if defined S_ISLNK && defined S_IFREG
14157 # if S_ISLNK (S_IFREG)
14158 You lose.
14159 # endif
14160 #endif
14161
14162 #if defined S_ISSOCK && defined S_IFREG
14163 # if S_ISSOCK (S_IFREG)
14164 You lose.
14165 # endif
14166 #endif
14167
14168 _ACEOF
14169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14170   $EGREP "You lose" >/dev/null 2>&1; then
14171   ac_cv_header_stat_broken=yes
14172 else
14173   ac_cv_header_stat_broken=no
14174 fi
14175 rm -f conftest*
14176
14177 fi
14178 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14179 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14180 if test $ac_cv_header_stat_broken = yes; then
14181
14182 cat >>confdefs.h <<\_ACEOF
14183 #define STAT_MACROS_BROKEN 1
14184 _ACEOF
14185
14186 fi
14187
14188 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14189 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14190 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 #include <sys/types.h>
14200 #include <sys/wait.h>
14201 #ifndef WEXITSTATUS
14202 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14203 #endif
14204 #ifndef WIFEXITED
14205 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14206 #endif
14207
14208 int
14209 main ()
14210 {
14211   int s;
14212   wait (&s);
14213   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14214   ;
14215   return 0;
14216 }
14217 _ACEOF
14218 rm -f conftest.$ac_objext
14219 if { (ac_try="$ac_compile"
14220 case "(($ac_try" in
14221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222   *) ac_try_echo=$ac_try;;
14223 esac
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225   (eval "$ac_compile") 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } &&
14232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14233   { (case "(($ac_try" in
14234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235   *) ac_try_echo=$ac_try;;
14236 esac
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238   (eval "$ac_try") 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; } &&
14242          { ac_try='test -s conftest.$ac_objext'
14243   { (case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_try") 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; }; then
14252   ac_cv_header_sys_wait_h=yes
14253 else
14254   echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257         ac_cv_header_sys_wait_h=no
14258 fi
14259
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 fi
14262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14263 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14264 if test $ac_cv_header_sys_wait_h = yes; then
14265
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_SYS_WAIT_H 1
14268 _ACEOF
14269
14270 fi
14271
14272 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14273 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14274 if test "${ac_cv_header_time+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 #include <sys/types.h>
14284 #include <sys/time.h>
14285 #include <time.h>
14286
14287 int
14288 main ()
14289 {
14290 if ((struct tm *) 0)
14291 return 0;
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300   *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303   (eval "$ac_compile") 2>conftest.er1
14304   ac_status=$?
14305   grep -v '^ *+' conftest.er1 >conftest.err
14306   rm -f conftest.er1
14307   cat conftest.err >&5
14308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309   (exit $ac_status); } &&
14310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311   { (case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316   (eval "$ac_try") 2>&5
14317   ac_status=$?
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); }; } &&
14320          { ac_try='test -s conftest.$ac_objext'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_cv_header_time=yes
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335         ac_cv_header_time=no
14336 fi
14337
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 fi
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14341 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14342 if test $ac_cv_header_time = yes; then
14343
14344 cat >>confdefs.h <<\_ACEOF
14345 #define TIME_WITH_SYS_TIME 1
14346 _ACEOF
14347
14348 fi
14349
14350
14351
14352
14353
14354
14355
14356
14357 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14358 do
14359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14361   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14364   echo $ECHO_N "(cached) $ECHO_C" >&6
14365 fi
14366 ac_res=`eval echo '${'$as_ac_Header'}'`
14367                { echo "$as_me:$LINENO: result: $ac_res" >&5
14368 echo "${ECHO_T}$ac_res" >&6; }
14369 else
14370   # Is the header compilable?
14371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 $ac_includes_default
14380 #include <$ac_header>
14381 _ACEOF
14382 rm -f conftest.$ac_objext
14383 if { (ac_try="$ac_compile"
14384 case "(($ac_try" in
14385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386   *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389   (eval "$ac_compile") 2>conftest.er1
14390   ac_status=$?
14391   grep -v '^ *+' conftest.er1 >conftest.err
14392   rm -f conftest.er1
14393   cat conftest.err >&5
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } &&
14396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14397   { (case "(($ac_try" in
14398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399   *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402   (eval "$ac_try") 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; } &&
14406          { ac_try='test -s conftest.$ac_objext'
14407   { (case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_try") 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   ac_header_compiler=yes
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421         ac_header_compiler=no
14422 fi
14423
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14426 echo "${ECHO_T}$ac_header_compiler" >&6; }
14427
14428 # Is the header present?
14429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h.  */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h.  */
14437 #include <$ac_header>
14438 _ACEOF
14439 if { (ac_try="$ac_cpp conftest.$ac_ext"
14440 case "(($ac_try" in
14441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442   *) ac_try_echo=$ac_try;;
14443 esac
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14446   ac_status=$?
14447   grep -v '^ *+' conftest.er1 >conftest.err
14448   rm -f conftest.er1
14449   cat conftest.err >&5
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); } >/dev/null; then
14452   if test -s conftest.err; then
14453     ac_cpp_err=$ac_c_preproc_warn_flag
14454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14455   else
14456     ac_cpp_err=
14457   fi
14458 else
14459   ac_cpp_err=yes
14460 fi
14461 if test -z "$ac_cpp_err"; then
14462   ac_header_preproc=yes
14463 else
14464   echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467   ac_header_preproc=no
14468 fi
14469
14470 rm -f conftest.err conftest.$ac_ext
14471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14472 echo "${ECHO_T}$ac_header_preproc" >&6; }
14473
14474 # So?  What about this header?
14475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14476   yes:no: )
14477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14481     ac_header_preproc=yes
14482     ;;
14483   no:yes:* )
14484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14496     ( cat <<\_ASBOX
14497 ## ------------------------------------ ##
14498 ## Report this to http://llvm.org/bugs/ ##
14499 ## ------------------------------------ ##
14500 _ASBOX
14501      ) | sed "s/^/$as_me: WARNING:     /" >&2
14502     ;;
14503 esac
14504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509   eval "$as_ac_Header=\$ac_header_preproc"
14510 fi
14511 ac_res=`eval echo '${'$as_ac_Header'}'`
14512                { echo "$as_me:$LINENO: result: $ac_res" >&5
14513 echo "${ECHO_T}$ac_res" >&6; }
14514
14515 fi
14516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14517   cat >>confdefs.h <<_ACEOF
14518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14519 _ACEOF
14520
14521 fi
14522
14523 done
14524
14525
14526
14527
14528
14529
14530
14531 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14532 do
14533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 fi
14540 ac_res=`eval echo '${'$as_ac_Header'}'`
14541                { echo "$as_me:$LINENO: result: $ac_res" >&5
14542 echo "${ECHO_T}$ac_res" >&6; }
14543 else
14544   # Is the header compilable?
14545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h.  */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h.  */
14553 $ac_includes_default
14554 #include <$ac_header>
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (ac_try="$ac_compile"
14558 case "(($ac_try" in
14559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560   *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563   (eval "$ac_compile") 2>conftest.er1
14564   ac_status=$?
14565   grep -v '^ *+' conftest.er1 >conftest.err
14566   rm -f conftest.er1
14567   cat conftest.err >&5
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); } &&
14570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571   { (case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_try") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; } &&
14580          { ac_try='test -s conftest.$ac_objext'
14581   { (case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_try") 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_header_compiler=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595         ac_header_compiler=no
14596 fi
14597
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14600 echo "${ECHO_T}$ac_header_compiler" >&6; }
14601
14602 # Is the header present?
14603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611 #include <$ac_header>
14612 _ACEOF
14613 if { (ac_try="$ac_cpp conftest.$ac_ext"
14614 case "(($ac_try" in
14615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616   *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } >/dev/null; then
14626   if test -s conftest.err; then
14627     ac_cpp_err=$ac_c_preproc_warn_flag
14628     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14629   else
14630     ac_cpp_err=
14631   fi
14632 else
14633   ac_cpp_err=yes
14634 fi
14635 if test -z "$ac_cpp_err"; then
14636   ac_header_preproc=yes
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641   ac_header_preproc=no
14642 fi
14643
14644 rm -f conftest.err conftest.$ac_ext
14645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14646 echo "${ECHO_T}$ac_header_preproc" >&6; }
14647
14648 # So?  What about this header?
14649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14650   yes:no: )
14651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14655     ac_header_preproc=yes
14656     ;;
14657   no:yes:* )
14658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14670     ( cat <<\_ASBOX
14671 ## ------------------------------------ ##
14672 ## Report this to http://llvm.org/bugs/ ##
14673 ## ------------------------------------ ##
14674 _ASBOX
14675      ) | sed "s/^/$as_me: WARNING:     /" >&2
14676     ;;
14677 esac
14678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14681   echo $ECHO_N "(cached) $ECHO_C" >&6
14682 else
14683   eval "$as_ac_Header=\$ac_header_preproc"
14684 fi
14685 ac_res=`eval echo '${'$as_ac_Header'}'`
14686                { echo "$as_me:$LINENO: result: $ac_res" >&5
14687 echo "${ECHO_T}$ac_res" >&6; }
14688
14689 fi
14690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14691   cat >>confdefs.h <<_ACEOF
14692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14693 _ACEOF
14694
14695 fi
14696
14697 done
14698
14699
14700
14701 for ac_header in utime.h windows.h
14702 do
14703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 fi
14710 ac_res=`eval echo '${'$as_ac_Header'}'`
14711                { echo "$as_me:$LINENO: result: $ac_res" >&5
14712 echo "${ECHO_T}$ac_res" >&6; }
14713 else
14714   # Is the header compilable?
14715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723 $ac_includes_default
14724 #include <$ac_header>
14725 _ACEOF
14726 rm -f conftest.$ac_objext
14727 if { (ac_try="$ac_compile"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_compile") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14741   { (case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746   (eval "$ac_try") 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; } &&
14750          { ac_try='test -s conftest.$ac_objext'
14751   { (case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_try") 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   ac_header_compiler=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765         ac_header_compiler=no
14766 fi
14767
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770 echo "${ECHO_T}$ac_header_compiler" >&6; }
14771
14772 # Is the header present?
14773 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14775 cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h.  */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h.  */
14781 #include <$ac_header>
14782 _ACEOF
14783 if { (ac_try="$ac_cpp conftest.$ac_ext"
14784 case "(($ac_try" in
14785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786   *) ac_try_echo=$ac_try;;
14787 esac
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14790   ac_status=$?
14791   grep -v '^ *+' conftest.er1 >conftest.err
14792   rm -f conftest.er1
14793   cat conftest.err >&5
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); } >/dev/null; then
14796   if test -s conftest.err; then
14797     ac_cpp_err=$ac_c_preproc_warn_flag
14798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14799   else
14800     ac_cpp_err=
14801   fi
14802 else
14803   ac_cpp_err=yes
14804 fi
14805 if test -z "$ac_cpp_err"; then
14806   ac_header_preproc=yes
14807 else
14808   echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811   ac_header_preproc=no
14812 fi
14813
14814 rm -f conftest.err conftest.$ac_ext
14815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14816 echo "${ECHO_T}$ac_header_preproc" >&6; }
14817
14818 # So?  What about this header?
14819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14820   yes:no: )
14821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14825     ac_header_preproc=yes
14826     ;;
14827   no:yes:* )
14828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14840     ( cat <<\_ASBOX
14841 ## ------------------------------------ ##
14842 ## Report this to http://llvm.org/bugs/ ##
14843 ## ------------------------------------ ##
14844 _ASBOX
14845      ) | sed "s/^/$as_me: WARNING:     /" >&2
14846     ;;
14847 esac
14848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853   eval "$as_ac_Header=\$ac_header_preproc"
14854 fi
14855 ac_res=`eval echo '${'$as_ac_Header'}'`
14856                { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14858
14859 fi
14860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14861   cat >>confdefs.h <<_ACEOF
14862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14863 _ACEOF
14864
14865 fi
14866
14867 done
14868
14869
14870
14871
14872
14873
14874 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14875 do
14876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14878   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 fi
14883 ac_res=`eval echo '${'$as_ac_Header'}'`
14884                { echo "$as_me:$LINENO: result: $ac_res" >&5
14885 echo "${ECHO_T}$ac_res" >&6; }
14886 else
14887   # Is the header compilable?
14888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14890 cat >conftest.$ac_ext <<_ACEOF
14891 /* confdefs.h.  */
14892 _ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h.  */
14896 $ac_includes_default
14897 #include <$ac_header>
14898 _ACEOF
14899 rm -f conftest.$ac_objext
14900 if { (ac_try="$ac_compile"
14901 case "(($ac_try" in
14902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903   *) ac_try_echo=$ac_try;;
14904 esac
14905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14906   (eval "$ac_compile") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } &&
14913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14914   { (case "(($ac_try" in
14915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916   *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919   (eval "$ac_try") 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; } &&
14923          { ac_try='test -s conftest.$ac_objext'
14924   { (case "(($ac_try" in
14925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926   *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929   (eval "$ac_try") 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; }; then
14933   ac_header_compiler=yes
14934 else
14935   echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14937
14938         ac_header_compiler=no
14939 fi
14940
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14943 echo "${ECHO_T}$ac_header_compiler" >&6; }
14944
14945 # Is the header present?
14946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954 #include <$ac_header>
14955 _ACEOF
14956 if { (ac_try="$ac_cpp conftest.$ac_ext"
14957 case "(($ac_try" in
14958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959   *) ac_try_echo=$ac_try;;
14960 esac
14961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14963   ac_status=$?
14964   grep -v '^ *+' conftest.er1 >conftest.err
14965   rm -f conftest.er1
14966   cat conftest.err >&5
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } >/dev/null; then
14969   if test -s conftest.err; then
14970     ac_cpp_err=$ac_c_preproc_warn_flag
14971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14972   else
14973     ac_cpp_err=
14974   fi
14975 else
14976   ac_cpp_err=yes
14977 fi
14978 if test -z "$ac_cpp_err"; then
14979   ac_header_preproc=yes
14980 else
14981   echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984   ac_header_preproc=no
14985 fi
14986
14987 rm -f conftest.err conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14989 echo "${ECHO_T}$ac_header_preproc" >&6; }
14990
14991 # So?  What about this header?
14992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14993   yes:no: )
14994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14998     ac_header_preproc=yes
14999     ;;
15000   no:yes:* )
15001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15013     ( cat <<\_ASBOX
15014 ## ------------------------------------ ##
15015 ## Report this to http://llvm.org/bugs/ ##
15016 ## ------------------------------------ ##
15017 _ASBOX
15018      ) | sed "s/^/$as_me: WARNING:     /" >&2
15019     ;;
15020 esac
15021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   eval "$as_ac_Header=\$ac_header_preproc"
15027 fi
15028 ac_res=`eval echo '${'$as_ac_Header'}'`
15029                { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15031
15032 fi
15033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15034   cat >>confdefs.h <<_ACEOF
15035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15036 _ACEOF
15037
15038 fi
15039
15040 done
15041
15042
15043
15044
15045
15046 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15047 do
15048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 fi
15055 ac_res=`eval echo '${'$as_ac_Header'}'`
15056                { echo "$as_me:$LINENO: result: $ac_res" >&5
15057 echo "${ECHO_T}$ac_res" >&6; }
15058 else
15059   # Is the header compilable?
15060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 $ac_includes_default
15069 #include <$ac_header>
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_compile") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086   { (case "(($ac_try" in
15087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088   *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091   (eval "$ac_try") 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; } &&
15095          { ac_try='test -s conftest.$ac_objext'
15096   { (case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_try") 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_header_compiler=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110         ac_header_compiler=no
15111 fi
15112
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15115 echo "${ECHO_T}$ac_header_compiler" >&6; }
15116
15117 # Is the header present?
15118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 #include <$ac_header>
15127 _ACEOF
15128 if { (ac_try="$ac_cpp conftest.$ac_ext"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } >/dev/null; then
15141   if test -s conftest.err; then
15142     ac_cpp_err=$ac_c_preproc_warn_flag
15143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15144   else
15145     ac_cpp_err=
15146   fi
15147 else
15148   ac_cpp_err=yes
15149 fi
15150 if test -z "$ac_cpp_err"; then
15151   ac_header_preproc=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156   ac_header_preproc=no
15157 fi
15158
15159 rm -f conftest.err conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15161 echo "${ECHO_T}$ac_header_preproc" >&6; }
15162
15163 # So?  What about this header?
15164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15165   yes:no: )
15166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15170     ac_header_preproc=yes
15171     ;;
15172   no:yes:* )
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15185     ( cat <<\_ASBOX
15186 ## ------------------------------------ ##
15187 ## Report this to http://llvm.org/bugs/ ##
15188 ## ------------------------------------ ##
15189 _ASBOX
15190      ) | sed "s/^/$as_me: WARNING:     /" >&2
15191     ;;
15192 esac
15193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15196   echo $ECHO_N "(cached) $ECHO_C" >&6
15197 else
15198   eval "$as_ac_Header=\$ac_header_preproc"
15199 fi
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201                { echo "$as_me:$LINENO: result: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15203
15204 fi
15205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15206   cat >>confdefs.h <<_ACEOF
15207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15208 _ACEOF
15209
15210 fi
15211
15212 done
15213
15214
15215 for ac_header in valgrind/valgrind.h
15216 do
15217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 fi
15224 ac_res=`eval echo '${'$as_ac_Header'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 else
15228   # Is the header compilable?
15229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 $ac_includes_default
15238 #include <$ac_header>
15239 _ACEOF
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244   *) ac_try_echo=$ac_try;;
15245 esac
15246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15247   (eval "$ac_compile") 2>conftest.er1
15248   ac_status=$?
15249   grep -v '^ *+' conftest.er1 >conftest.err
15250   rm -f conftest.er1
15251   cat conftest.err >&5
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); } &&
15254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15255   { (case "(($ac_try" in
15256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257   *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260   (eval "$ac_try") 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest.$ac_objext'
15265   { (case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_try") 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_header_compiler=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279         ac_header_compiler=no
15280 fi
15281
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } >/dev/null; then
15310   if test -s conftest.err; then
15311     ac_cpp_err=$ac_c_preproc_warn_flag
15312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313   else
15314     ac_cpp_err=
15315   fi
15316 else
15317   ac_cpp_err=yes
15318 fi
15319 if test -z "$ac_cpp_err"; then
15320   ac_header_preproc=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325   ac_header_preproc=no
15326 fi
15327
15328 rm -f conftest.err conftest.$ac_ext
15329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6; }
15331
15332 # So?  What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334   yes:no: )
15335     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339     ac_header_preproc=yes
15340     ;;
15341   no:yes:* )
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354     ( cat <<\_ASBOX
15355 ## ------------------------------------ ##
15356 ## Report this to http://llvm.org/bugs/ ##
15357 ## ------------------------------------ ##
15358 _ASBOX
15359      ) | sed "s/^/$as_me: WARNING:     /" >&2
15360     ;;
15361 esac
15362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365   echo $ECHO_N "(cached) $ECHO_C" >&6
15366 else
15367   eval "$as_ac_Header=\$ac_header_preproc"
15368 fi
15369 ac_res=`eval echo '${'$as_ac_Header'}'`
15370                { echo "$as_me:$LINENO: result: $ac_res" >&5
15371 echo "${ECHO_T}$ac_res" >&6; }
15372
15373 fi
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375   cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15378
15379 fi
15380
15381 done
15382
15383
15384 for ac_header in fenv.h
15385 do
15386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 fi
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394                { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 else
15397   # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 $ac_includes_default
15407 #include <$ac_header>
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_compile") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_header_compiler=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448         ac_header_compiler=no
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15454
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h.  */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h.  */
15464 #include <$ac_header>
15465 _ACEOF
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } >/dev/null; then
15479   if test -s conftest.err; then
15480     ac_cpp_err=$ac_c_preproc_warn_flag
15481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482   else
15483     ac_cpp_err=
15484   fi
15485 else
15486   ac_cpp_err=yes
15487 fi
15488 if test -z "$ac_cpp_err"; then
15489   ac_header_preproc=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494   ac_header_preproc=no
15495 fi
15496
15497 rm -f conftest.err conftest.$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6; }
15500
15501 # So?  What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503   yes:no: )
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508     ac_header_preproc=yes
15509     ;;
15510   no:yes:* )
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15523     ( cat <<\_ASBOX
15524 ## ------------------------------------ ##
15525 ## Report this to http://llvm.org/bugs/ ##
15526 ## ------------------------------------ ##
15527 _ASBOX
15528      ) | sed "s/^/$as_me: WARNING:     /" >&2
15529     ;;
15530 esac
15531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   eval "$as_ac_Header=\$ac_header_preproc"
15537 fi
15538 ac_res=`eval echo '${'$as_ac_Header'}'`
15539                { echo "$as_me:$LINENO: result: $ac_res" >&5
15540 echo "${ECHO_T}$ac_res" >&6; }
15541
15542 fi
15543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15544   cat >>confdefs.h <<_ACEOF
15545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15546 _ACEOF
15547
15548 fi
15549
15550 done
15551
15552 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15553
15554 for ac_header in pthread.h
15555 do
15556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15558   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15561   echo $ECHO_N "(cached) $ECHO_C" >&6
15562 fi
15563 ac_res=`eval echo '${'$as_ac_Header'}'`
15564                { echo "$as_me:$LINENO: result: $ac_res" >&5
15565 echo "${ECHO_T}$ac_res" >&6; }
15566 else
15567   # Is the header compilable?
15568 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h.  */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h.  */
15576 $ac_includes_default
15577 #include <$ac_header>
15578 _ACEOF
15579 rm -f conftest.$ac_objext
15580 if { (ac_try="$ac_compile"
15581 case "(($ac_try" in
15582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583   *) ac_try_echo=$ac_try;;
15584 esac
15585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586   (eval "$ac_compile") 2>conftest.er1
15587   ac_status=$?
15588   grep -v '^ *+' conftest.er1 >conftest.err
15589   rm -f conftest.er1
15590   cat conftest.err >&5
15591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592   (exit $ac_status); } &&
15593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15594   { (case "(($ac_try" in
15595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596   *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599   (eval "$ac_try") 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; } &&
15603          { ac_try='test -s conftest.$ac_objext'
15604   { (case "(($ac_try" in
15605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15606   *) ac_try_echo=$ac_try;;
15607 esac
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609   (eval "$ac_try") 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_header_compiler=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618         ac_header_compiler=no
15619 fi
15620
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15623 echo "${ECHO_T}$ac_header_compiler" >&6; }
15624
15625 # Is the header present?
15626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h.  */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h.  */
15634 #include <$ac_header>
15635 _ACEOF
15636 if { (ac_try="$ac_cpp conftest.$ac_ext"
15637 case "(($ac_try" in
15638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639   *) ac_try_echo=$ac_try;;
15640 esac
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } >/dev/null; then
15649   if test -s conftest.err; then
15650     ac_cpp_err=$ac_c_preproc_warn_flag
15651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15652   else
15653     ac_cpp_err=
15654   fi
15655 else
15656   ac_cpp_err=yes
15657 fi
15658 if test -z "$ac_cpp_err"; then
15659   ac_header_preproc=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664   ac_header_preproc=no
15665 fi
15666
15667 rm -f conftest.err conftest.$ac_ext
15668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15669 echo "${ECHO_T}$ac_header_preproc" >&6; }
15670
15671 # So?  What about this header?
15672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15673   yes:no: )
15674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15678     ac_header_preproc=yes
15679     ;;
15680   no:yes:* )
15681     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15683     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15684 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15685     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15687     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15688 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15693     ( cat <<\_ASBOX
15694 ## ------------------------------------ ##
15695 ## Report this to http://llvm.org/bugs/ ##
15696 ## ------------------------------------ ##
15697 _ASBOX
15698      ) | sed "s/^/$as_me: WARNING:     /" >&2
15699     ;;
15700 esac
15701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   eval "$as_ac_Header=\$ac_header_preproc"
15707 fi
15708 ac_res=`eval echo '${'$as_ac_Header'}'`
15709                { echo "$as_me:$LINENO: result: $ac_res" >&5
15710 echo "${ECHO_T}$ac_res" >&6; }
15711
15712 fi
15713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15714   cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15716 _ACEOF
15717  HAVE_PTHREAD=1
15718
15719 else
15720   HAVE_PTHREAD=0
15721
15722 fi
15723
15724 done
15725
15726 else
15727   HAVE_PTHREAD=0
15728
15729 fi
15730
15731 if test "$llvm_cv_enable_libffi" = "yes" ; then
15732
15733
15734 for ac_header in ffi.h ffi/ffi.h
15735 do
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 fi
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744                { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746 else
15747   # Is the header compilable?
15748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 $ac_includes_default
15757 #include <$ac_header>
15758 _ACEOF
15759 rm -f conftest.$ac_objext
15760 if { (ac_try="$ac_compile"
15761 case "(($ac_try" in
15762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15763   *) ac_try_echo=$ac_try;;
15764 esac
15765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15766   (eval "$ac_compile") 2>conftest.er1
15767   ac_status=$?
15768   grep -v '^ *+' conftest.er1 >conftest.err
15769   rm -f conftest.er1
15770   cat conftest.err >&5
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15774   { (case "(($ac_try" in
15775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776   *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779   (eval "$ac_try") 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest.$ac_objext'
15784   { (case "(($ac_try" in
15785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786   *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789   (eval "$ac_try") 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   ac_header_compiler=yes
15794 else
15795   echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.$ac_ext >&5
15797
15798         ac_header_compiler=no
15799 fi
15800
15801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15803 echo "${ECHO_T}$ac_header_compiler" >&6; }
15804
15805 # Is the header present?
15806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 #include <$ac_header>
15815 _ACEOF
15816 if { (ac_try="$ac_cpp conftest.$ac_ext"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } >/dev/null; then
15829   if test -s conftest.err; then
15830     ac_cpp_err=$ac_c_preproc_warn_flag
15831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15832   else
15833     ac_cpp_err=
15834   fi
15835 else
15836   ac_cpp_err=yes
15837 fi
15838 if test -z "$ac_cpp_err"; then
15839   ac_header_preproc=yes
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844   ac_header_preproc=no
15845 fi
15846
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15850
15851 # So?  What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15853   yes:no: )
15854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15858     ac_header_preproc=yes
15859     ;;
15860   no:yes:* )
15861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15873     ( cat <<\_ASBOX
15874 ## ------------------------------------ ##
15875 ## Report this to http://llvm.org/bugs/ ##
15876 ## ------------------------------------ ##
15877 _ASBOX
15878      ) | sed "s/^/$as_me: WARNING:     /" >&2
15879     ;;
15880 esac
15881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   eval "$as_ac_Header=\$ac_header_preproc"
15887 fi
15888 ac_res=`eval echo '${'$as_ac_Header'}'`
15889                { echo "$as_me:$LINENO: result: $ac_res" >&5
15890 echo "${ECHO_T}$ac_res" >&6; }
15891
15892 fi
15893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15894   cat >>confdefs.h <<_ACEOF
15895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15896 _ACEOF
15897
15898 fi
15899
15900 done
15901
15902 fi
15903
15904
15905 for ac_header in CrashReporterClient.h
15906 do
15907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15912   echo $ECHO_N "(cached) $ECHO_C" >&6
15913 fi
15914 ac_res=`eval echo '${'$as_ac_Header'}'`
15915                { echo "$as_me:$LINENO: result: $ac_res" >&5
15916 echo "${ECHO_T}$ac_res" >&6; }
15917 else
15918   # Is the header compilable?
15919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927 $ac_includes_default
15928 #include <$ac_header>
15929 _ACEOF
15930 rm -f conftest.$ac_objext
15931 if { (ac_try="$ac_compile"
15932 case "(($ac_try" in
15933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15934   *) ac_try_echo=$ac_try;;
15935 esac
15936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15937   (eval "$ac_compile") 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15945   { (case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_try") 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; } &&
15954          { ac_try='test -s conftest.$ac_objext'
15955   { (case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_try") 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964   ac_header_compiler=yes
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969         ac_header_compiler=no
15970 fi
15971
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974 echo "${ECHO_T}$ac_header_compiler" >&6; }
15975
15976 # Is the header present?
15977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985 #include <$ac_header>
15986 _ACEOF
15987 if { (ac_try="$ac_cpp conftest.$ac_ext"
15988 case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } >/dev/null; then
16000   if test -s conftest.err; then
16001     ac_cpp_err=$ac_c_preproc_warn_flag
16002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16003   else
16004     ac_cpp_err=
16005   fi
16006 else
16007   ac_cpp_err=yes
16008 fi
16009 if test -z "$ac_cpp_err"; then
16010   ac_header_preproc=yes
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015   ac_header_preproc=no
16016 fi
16017
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16021
16022 # So?  What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16024   yes:no: )
16025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16029     ac_header_preproc=yes
16030     ;;
16031   no:yes:* )
16032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16044     ( cat <<\_ASBOX
16045 ## ------------------------------------ ##
16046 ## Report this to http://llvm.org/bugs/ ##
16047 ## ------------------------------------ ##
16048 _ASBOX
16049      ) | sed "s/^/$as_me: WARNING:     /" >&2
16050     ;;
16051 esac
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055   echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057   eval "$as_ac_Header=\$ac_header_preproc"
16058 fi
16059 ac_res=`eval echo '${'$as_ac_Header'}'`
16060                { echo "$as_me:$LINENO: result: $ac_res" >&5
16061 echo "${ECHO_T}$ac_res" >&6; }
16062
16063 fi
16064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16065   cat >>confdefs.h <<_ACEOF
16066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16067 _ACEOF
16068
16069 fi
16070
16071 done
16072
16073
16074 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16075 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 extern const char *__crashreporter_info__;
16083       int main() {
16084         __crashreporter_info__ = "test";
16085         return 0;
16086       }
16087
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096   (eval "$ac_link") 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16104   { (case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_try") 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; } &&
16113          { ac_try='test -s conftest$ac_exeext'
16114   { (case "(($ac_try" in
16115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116   *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119   (eval "$ac_try") 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); }; }; then
16123   { echo "$as_me:$LINENO: result: yes" >&5
16124 echo "${ECHO_T}yes" >&6; }
16125
16126 cat >>confdefs.h <<\_ACEOF
16127 #define HAVE_CRASHREPORTER_INFO 1
16128 _ACEOF
16129
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134         { echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6; }
16136
16137 cat >>confdefs.h <<\_ACEOF
16138 #define HAVE_CRASHREPORTER_INFO 0
16139 _ACEOF
16140
16141 fi
16142
16143 rm -f core conftest.err conftest.$ac_objext \
16144       conftest$ac_exeext conftest.$ac_ext
16145
16146
16147
16148
16149   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16150 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16151 if test "${ac_cv_huge_val_sanity+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154
16155     ac_ext=cpp
16156 ac_cpp='$CXXCPP $CPPFLAGS'
16157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16160
16161     ac_save_CXXFLAGS=$CXXFLAGS
16162     CXXFLAGS=-pedantic
16163     if test "$cross_compiling" = yes; then
16164   ac_cv_huge_val_sanity=yes
16165 else
16166   cat >conftest.$ac_ext <<_ACEOF
16167 /* confdefs.h.  */
16168 _ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h.  */
16172 #include <math.h>
16173 int
16174 main ()
16175 {
16176 double x = HUGE_VAL; return x != x;
16177   ;
16178   return 0;
16179 }
16180 _ACEOF
16181 rm -f conftest$ac_exeext
16182 if { (ac_try="$ac_link"
16183 case "(($ac_try" in
16184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185   *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188   (eval "$ac_link") 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16192   { (case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_try") 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; }; then
16201   ac_cv_huge_val_sanity=yes
16202 else
16203   echo "$as_me: program exited with status $ac_status" >&5
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207 ( exit $ac_status )
16208 ac_cv_huge_val_sanity=no
16209 fi
16210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16211 fi
16212
16213
16214     CXXFLAGS=$ac_save_CXXFLAGS
16215     ac_ext=c
16216 ac_cpp='$CPP $CPPFLAGS'
16217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16220
16221
16222 fi
16223 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16224 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16225   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16226
16227
16228 { echo "$as_me:$LINENO: checking for pid_t" >&5
16229 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16230 if test "${ac_cv_type_pid_t+set}" = set; then
16231   echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233   cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h.  */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h.  */
16239 $ac_includes_default
16240 typedef pid_t ac__type_new_;
16241 int
16242 main ()
16243 {
16244 if ((ac__type_new_ *) 0)
16245   return 0;
16246 if (sizeof (ac__type_new_))
16247   return 0;
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_compile") 2>conftest.er1
16260   ac_status=$?
16261   grep -v '^ *+' conftest.er1 >conftest.err
16262   rm -f conftest.er1
16263   cat conftest.err >&5
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } &&
16266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16267   { (case "(($ac_try" in
16268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269   *) ac_try_echo=$ac_try;;
16270 esac
16271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272   (eval "$ac_try") 2>&5
16273   ac_status=$?
16274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); }; } &&
16276          { ac_try='test -s conftest.$ac_objext'
16277   { (case "(($ac_try" in
16278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279   *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282   (eval "$ac_try") 2>&5
16283   ac_status=$?
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); }; }; then
16286   ac_cv_type_pid_t=yes
16287 else
16288   echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291         ac_cv_type_pid_t=no
16292 fi
16293
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 fi
16296 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16297 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16298 if test $ac_cv_type_pid_t = yes; then
16299   :
16300 else
16301
16302 cat >>confdefs.h <<_ACEOF
16303 #define pid_t int
16304 _ACEOF
16305
16306 fi
16307
16308 { echo "$as_me:$LINENO: checking for size_t" >&5
16309 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16310 if test "${ac_cv_type_size_t+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319 $ac_includes_default
16320 typedef size_t ac__type_new_;
16321 int
16322 main ()
16323 {
16324 if ((ac__type_new_ *) 0)
16325   return 0;
16326 if (sizeof (ac__type_new_))
16327   return 0;
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 rm -f conftest.$ac_objext
16333 if { (ac_try="$ac_compile"
16334 case "(($ac_try" in
16335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336   *) ac_try_echo=$ac_try;;
16337 esac
16338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16339   (eval "$ac_compile") 2>conftest.er1
16340   ac_status=$?
16341   grep -v '^ *+' conftest.er1 >conftest.err
16342   rm -f conftest.er1
16343   cat conftest.err >&5
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } &&
16346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16347   { (case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352   (eval "$ac_try") 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest.$ac_objext'
16357   { (case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_try") 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ac_cv_type_size_t=yes
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371         ac_cv_type_size_t=no
16372 fi
16373
16374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375 fi
16376 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16377 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16378 if test $ac_cv_type_size_t = yes; then
16379   :
16380 else
16381
16382 cat >>confdefs.h <<_ACEOF
16383 #define size_t unsigned int
16384 _ACEOF
16385
16386 fi
16387
16388
16389 cat >>confdefs.h <<_ACEOF
16390 #define RETSIGTYPE void
16391 _ACEOF
16392
16393 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16395 if test "${ac_cv_struct_tm+set}" = set; then
16396   echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398   cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404 #include <sys/types.h>
16405 #include <time.h>
16406
16407 int
16408 main ()
16409 {
16410 struct tm *tp; tp->tm_sec;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext
16416 if { (ac_try="$ac_compile"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_compile") 2>conftest.er1
16423   ac_status=$?
16424   grep -v '^ *+' conftest.er1 >conftest.err
16425   rm -f conftest.er1
16426   cat conftest.err >&5
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } &&
16429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16430   { (case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435   (eval "$ac_try") 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; } &&
16439          { ac_try='test -s conftest.$ac_objext'
16440   { (case "(($ac_try" in
16441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442   *) ac_try_echo=$ac_try;;
16443 esac
16444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445   (eval "$ac_try") 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); }; }; then
16449   ac_cv_struct_tm=time.h
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454         ac_cv_struct_tm=sys/time.h
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 fi
16459 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16460 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16461 if test $ac_cv_struct_tm = sys/time.h; then
16462
16463 cat >>confdefs.h <<\_ACEOF
16464 #define TM_IN_SYS_TIME 1
16465 _ACEOF
16466
16467 fi
16468
16469 { echo "$as_me:$LINENO: checking for int64_t" >&5
16470 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16471 if test "${ac_cv_type_int64_t+set}" = set; then
16472   echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474   cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h.  */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h.  */
16480 $ac_includes_default
16481 typedef int64_t ac__type_new_;
16482 int
16483 main ()
16484 {
16485 if ((ac__type_new_ *) 0)
16486   return 0;
16487 if (sizeof (ac__type_new_))
16488   return 0;
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (ac_try="$ac_compile"
16495 case "(($ac_try" in
16496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497   *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500   (eval "$ac_compile") 2>conftest.er1
16501   ac_status=$?
16502   grep -v '^ *+' conftest.er1 >conftest.err
16503   rm -f conftest.er1
16504   cat conftest.err >&5
16505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506   (exit $ac_status); } &&
16507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16508   { (case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_try") 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest.$ac_objext'
16518   { (case "(($ac_try" in
16519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520   *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523   (eval "$ac_try") 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527   ac_cv_type_int64_t=yes
16528 else
16529   echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16531
16532         ac_cv_type_int64_t=no
16533 fi
16534
16535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16536 fi
16537 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16538 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16539 if test $ac_cv_type_int64_t = yes; then
16540
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_INT64_T 1
16543 _ACEOF
16544
16545
16546 else
16547   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16548 echo "$as_me: error: Type int64_t required but not found" >&2;}
16549    { (exit 1); exit 1; }; }
16550 fi
16551
16552 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16553 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16554 if test "${ac_cv_type_uint64_t+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 $ac_includes_default
16564 typedef uint64_t ac__type_new_;
16565 int
16566 main ()
16567 {
16568 if ((ac__type_new_ *) 0)
16569   return 0;
16570 if (sizeof (ac__type_new_))
16571   return 0;
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 rm -f conftest.$ac_objext
16577 if { (ac_try="$ac_compile"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_compile") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } &&
16590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest.$ac_objext'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_cv_type_uint64_t=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615         ac_cv_type_uint64_t=no
16616 fi
16617
16618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16619 fi
16620 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16621 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16622 if test $ac_cv_type_uint64_t = yes; then
16623
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_UINT64_T 1
16626 _ACEOF
16627
16628
16629 else
16630   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16631 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16632 if test "${ac_cv_type_u_int64_t+set}" = set; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   cat >conftest.$ac_ext <<_ACEOF
16636 /* confdefs.h.  */
16637 _ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h.  */
16641 $ac_includes_default
16642 typedef u_int64_t ac__type_new_;
16643 int
16644 main ()
16645 {
16646 if ((ac__type_new_ *) 0)
16647   return 0;
16648 if (sizeof (ac__type_new_))
16649   return 0;
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661   (eval "$ac_compile") 2>conftest.er1
16662   ac_status=$?
16663   grep -v '^ *+' conftest.er1 >conftest.err
16664   rm -f conftest.er1
16665   cat conftest.err >&5
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); } &&
16668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16669   { (case "(($ac_try" in
16670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671   *) ac_try_echo=$ac_try;;
16672 esac
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674   (eval "$ac_try") 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; } &&
16678          { ac_try='test -s conftest.$ac_objext'
16679   { (case "(($ac_try" in
16680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681   *) ac_try_echo=$ac_try;;
16682 esac
16683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16684   (eval "$ac_try") 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; }; then
16688   ac_cv_type_u_int64_t=yes
16689 else
16690   echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16692
16693         ac_cv_type_u_int64_t=no
16694 fi
16695
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 fi
16698 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16699 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16700 if test $ac_cv_type_u_int64_t = yes; then
16701
16702 cat >>confdefs.h <<_ACEOF
16703 #define HAVE_U_INT64_T 1
16704 _ACEOF
16705
16706
16707 else
16708   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16709 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16710    { (exit 1); exit 1; }; }
16711 fi
16712
16713 fi
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16725 do
16726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16730   echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732   cat >conftest.$ac_ext <<_ACEOF
16733 /* confdefs.h.  */
16734 _ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h.  */
16738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16740 #define $ac_func innocuous_$ac_func
16741
16742 /* System header to define __stub macros and hopefully few prototypes,
16743     which can conflict with char $ac_func (); below.
16744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16745     <limits.h> exists even on freestanding compilers.  */
16746
16747 #ifdef __STDC__
16748 # include <limits.h>
16749 #else
16750 # include <assert.h>
16751 #endif
16752
16753 #undef $ac_func
16754
16755 /* Override any GCC internal prototype to avoid an error.
16756    Use char because int might match the return type of a GCC
16757    builtin and then its argument prototype would still apply.  */
16758 #ifdef __cplusplus
16759 extern "C"
16760 #endif
16761 char $ac_func ();
16762 /* The GNU C library defines this for functions which it implements
16763     to always fail with ENOSYS.  Some functions are actually named
16764     something starting with __ and the normal name is an alias.  */
16765 #if defined __stub_$ac_func || defined __stub___$ac_func
16766 choke me
16767 #endif
16768
16769 int
16770 main ()
16771 {
16772 return $ac_func ();
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_link") 2>conftest.er1
16785   ac_status=$?
16786   grep -v '^ *+' conftest.er1 >conftest.err
16787   rm -f conftest.er1
16788   cat conftest.err >&5
16789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790   (exit $ac_status); } &&
16791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16792   { (case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16797   (eval "$ac_try") 2>&5
16798   ac_status=$?
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); }; } &&
16801          { ac_try='test -s conftest$ac_exeext'
16802   { (case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_try") 2>&5
16808   ac_status=$?
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); }; }; then
16811   eval "$as_ac_var=yes"
16812 else
16813   echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16815
16816         eval "$as_ac_var=no"
16817 fi
16818
16819 rm -f core conftest.err conftest.$ac_objext \
16820       conftest$ac_exeext conftest.$ac_ext
16821 fi
16822 ac_res=`eval echo '${'$as_ac_var'}'`
16823                { echo "$as_me:$LINENO: result: $ac_res" >&5
16824 echo "${ECHO_T}$ac_res" >&6; }
16825 if test `eval echo '${'$as_ac_var'}'` = yes; then
16826   cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16828 _ACEOF
16829
16830 fi
16831 done
16832
16833
16834
16835
16836
16837 for ac_func in powf fmodf strtof round
16838 do
16839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16840 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
16845   cat >conftest.$ac_ext <<_ACEOF
16846 /* confdefs.h.  */
16847 _ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h.  */
16851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16853 #define $ac_func innocuous_$ac_func
16854
16855 /* System header to define __stub macros and hopefully few prototypes,
16856     which can conflict with char $ac_func (); below.
16857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16858     <limits.h> exists even on freestanding compilers.  */
16859
16860 #ifdef __STDC__
16861 # include <limits.h>
16862 #else
16863 # include <assert.h>
16864 #endif
16865
16866 #undef $ac_func
16867
16868 /* Override any GCC internal prototype to avoid an error.
16869    Use char because int might match the return type of a GCC
16870    builtin and then its argument prototype would still apply.  */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 char $ac_func ();
16875 /* The GNU C library defines this for functions which it implements
16876     to always fail with ENOSYS.  Some functions are actually named
16877     something starting with __ and the normal name is an alias.  */
16878 #if defined __stub_$ac_func || defined __stub___$ac_func
16879 choke me
16880 #endif
16881
16882 int
16883 main ()
16884 {
16885 return $ac_func ();
16886   ;
16887   return 0;
16888 }
16889 _ACEOF
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_link") 2>conftest.er1
16898   ac_status=$?
16899   grep -v '^ *+' conftest.er1 >conftest.err
16900   rm -f conftest.er1
16901   cat conftest.err >&5
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; } &&
16914          { ac_try='test -s conftest$ac_exeext'
16915   { (case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_try") 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   eval "$as_ac_var=yes"
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929         eval "$as_ac_var=no"
16930 fi
16931
16932 rm -f core conftest.err conftest.$ac_objext \
16933       conftest$ac_exeext conftest.$ac_ext
16934 fi
16935 ac_res=`eval echo '${'$as_ac_var'}'`
16936                { echo "$as_me:$LINENO: result: $ac_res" >&5
16937 echo "${ECHO_T}$ac_res" >&6; }
16938 if test `eval echo '${'$as_ac_var'}'` = yes; then
16939   cat >>confdefs.h <<_ACEOF
16940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941 _ACEOF
16942
16943 fi
16944 done
16945
16946
16947
16948
16949
16950
16951 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16952 do
16953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16957   echo $ECHO_N "(cached) $ECHO_C" >&6
16958 else
16959   cat >conftest.$ac_ext <<_ACEOF
16960 /* confdefs.h.  */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h.  */
16965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16967 #define $ac_func innocuous_$ac_func
16968
16969 /* System header to define __stub macros and hopefully few prototypes,
16970     which can conflict with char $ac_func (); below.
16971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972     <limits.h> exists even on freestanding compilers.  */
16973
16974 #ifdef __STDC__
16975 # include <limits.h>
16976 #else
16977 # include <assert.h>
16978 #endif
16979
16980 #undef $ac_func
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983    Use char because int might match the return type of a GCC
16984    builtin and then its argument prototype would still apply.  */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char $ac_func ();
16989 /* The GNU C library defines this for functions which it implements
16990     to always fail with ENOSYS.  Some functions are actually named
16991     something starting with __ and the normal name is an alias.  */
16992 #if defined __stub_$ac_func || defined __stub___$ac_func
16993 choke me
16994 #endif
16995
16996 int
16997 main ()
16998 {
16999 return $ac_func ();
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext conftest$ac_exeext
17005 if { (ac_try="$ac_link"
17006 case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011   (eval "$ac_link") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } &&
17018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019   { (case "(($ac_try" in
17020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021   *) ac_try_echo=$ac_try;;
17022 esac
17023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024   (eval "$ac_try") 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; } &&
17028          { ac_try='test -s conftest$ac_exeext'
17029   { (case "(($ac_try" in
17030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031   *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034   (eval "$ac_try") 2>&5
17035   ac_status=$?
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); }; }; then
17038   eval "$as_ac_var=yes"
17039 else
17040   echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043         eval "$as_ac_var=no"
17044 fi
17045
17046 rm -f core conftest.err conftest.$ac_objext \
17047       conftest$ac_exeext conftest.$ac_ext
17048 fi
17049 ac_res=`eval echo '${'$as_ac_var'}'`
17050                { echo "$as_me:$LINENO: result: $ac_res" >&5
17051 echo "${ECHO_T}$ac_res" >&6; }
17052 if test `eval echo '${'$as_ac_var'}'` = yes; then
17053   cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17055 _ACEOF
17056
17057 fi
17058 done
17059
17060
17061
17062
17063 for ac_func in isatty mkdtemp mkstemp
17064 do
17065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17079 #define $ac_func innocuous_$ac_func
17080
17081 /* System header to define __stub macros and hopefully few prototypes,
17082     which can conflict with char $ac_func (); below.
17083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084     <limits.h> exists even on freestanding compilers.  */
17085
17086 #ifdef __STDC__
17087 # include <limits.h>
17088 #else
17089 # include <assert.h>
17090 #endif
17091
17092 #undef $ac_func
17093
17094 /* Override any GCC internal prototype to avoid an error.
17095    Use char because int might match the return type of a GCC
17096    builtin and then its argument prototype would still apply.  */
17097 #ifdef __cplusplus
17098 extern "C"
17099 #endif
17100 char $ac_func ();
17101 /* The GNU C library defines this for functions which it implements
17102     to always fail with ENOSYS.  Some functions are actually named
17103     something starting with __ and the normal name is an alias.  */
17104 #if defined __stub_$ac_func || defined __stub___$ac_func
17105 choke me
17106 #endif
17107
17108 int
17109 main ()
17110 {
17111 return $ac_func ();
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_link") 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } &&
17130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17131   { (case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_try") 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; } &&
17140          { ac_try='test -s conftest$ac_exeext'
17141   { (case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; }; then
17150   eval "$as_ac_var=yes"
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155         eval "$as_ac_var=no"
17156 fi
17157
17158 rm -f core conftest.err conftest.$ac_objext \
17159       conftest$ac_exeext conftest.$ac_ext
17160 fi
17161 ac_res=`eval echo '${'$as_ac_var'}'`
17162                { echo "$as_me:$LINENO: result: $ac_res" >&5
17163 echo "${ECHO_T}$ac_res" >&6; }
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165   cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17167 _ACEOF
17168
17169 fi
17170 done
17171
17172
17173
17174
17175
17176
17177
17178
17179 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17180 do
17181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17195 #define $ac_func innocuous_$ac_func
17196
17197 /* System header to define __stub macros and hopefully few prototypes,
17198     which can conflict with char $ac_func (); below.
17199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200     <limits.h> exists even on freestanding compilers.  */
17201
17202 #ifdef __STDC__
17203 # include <limits.h>
17204 #else
17205 # include <assert.h>
17206 #endif
17207
17208 #undef $ac_func
17209
17210 /* Override any GCC internal prototype to avoid an error.
17211    Use char because int might match the return type of a GCC
17212    builtin and then its argument prototype would still apply.  */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 char $ac_func ();
17217 /* The GNU C library defines this for functions which it implements
17218     to always fail with ENOSYS.  Some functions are actually named
17219     something starting with __ and the normal name is an alias.  */
17220 #if defined __stub_$ac_func || defined __stub___$ac_func
17221 choke me
17222 #endif
17223
17224 int
17225 main ()
17226 {
17227 return $ac_func ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_link") 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } &&
17246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247   { (case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252   (eval "$ac_try") 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; } &&
17256          { ac_try='test -s conftest$ac_exeext'
17257   { (case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_try") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; }; then
17266   eval "$as_ac_var=yes"
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271         eval "$as_ac_var=no"
17272 fi
17273
17274 rm -f core conftest.err conftest.$ac_objext \
17275       conftest$ac_exeext conftest.$ac_ext
17276 fi
17277 ac_res=`eval echo '${'$as_ac_var'}'`
17278                { echo "$as_me:$LINENO: result: $ac_res" >&5
17279 echo "${ECHO_T}$ac_res" >&6; }
17280 if test `eval echo '${'$as_ac_var'}'` = yes; then
17281   cat >>confdefs.h <<_ACEOF
17282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17283 _ACEOF
17284
17285 fi
17286 done
17287
17288
17289
17290
17291 for ac_func in strerror strerror_r setenv
17292 do
17293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297   echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299   cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h.  */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h.  */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17307 #define $ac_func innocuous_$ac_func
17308
17309 /* System header to define __stub macros and hopefully few prototypes,
17310     which can conflict with char $ac_func (); below.
17311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312     <limits.h> exists even on freestanding compilers.  */
17313
17314 #ifdef __STDC__
17315 # include <limits.h>
17316 #else
17317 # include <assert.h>
17318 #endif
17319
17320 #undef $ac_func
17321
17322 /* Override any GCC internal prototype to avoid an error.
17323    Use char because int might match the return type of a GCC
17324    builtin and then its argument prototype would still apply.  */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char $ac_func ();
17329 /* The GNU C library defines this for functions which it implements
17330     to always fail with ENOSYS.  Some functions are actually named
17331     something starting with __ and the normal name is an alias.  */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17333 choke me
17334 #endif
17335
17336 int
17337 main ()
17338 {
17339 return $ac_func ();
17340   ;
17341   return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348   *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351   (eval "$ac_link") 2>conftest.er1
17352   ac_status=$?
17353   grep -v '^ *+' conftest.er1 >conftest.err
17354   rm -f conftest.er1
17355   cat conftest.err >&5
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); } &&
17358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359   { (case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_try") 2>&5
17365   ac_status=$?
17366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367   (exit $ac_status); }; } &&
17368          { ac_try='test -s conftest$ac_exeext'
17369   { (case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_try") 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; }; then
17378   eval "$as_ac_var=yes"
17379 else
17380   echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17382
17383         eval "$as_ac_var=no"
17384 fi
17385
17386 rm -f core conftest.err conftest.$ac_objext \
17387       conftest$ac_exeext conftest.$ac_ext
17388 fi
17389 ac_res=`eval echo '${'$as_ac_var'}'`
17390                { echo "$as_me:$LINENO: result: $ac_res" >&5
17391 echo "${ECHO_T}$ac_res" >&6; }
17392 if test `eval echo '${'$as_ac_var'}'` = yes; then
17393   cat >>confdefs.h <<_ACEOF
17394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17395 _ACEOF
17396
17397 fi
17398 done
17399
17400
17401
17402
17403
17404 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17405 do
17406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17420 #define $ac_func innocuous_$ac_func
17421
17422 /* System header to define __stub macros and hopefully few prototypes,
17423     which can conflict with char $ac_func (); below.
17424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425     <limits.h> exists even on freestanding compilers.  */
17426
17427 #ifdef __STDC__
17428 # include <limits.h>
17429 #else
17430 # include <assert.h>
17431 #endif
17432
17433 #undef $ac_func
17434
17435 /* Override any GCC internal prototype to avoid an error.
17436    Use char because int might match the return type of a GCC
17437    builtin and then its argument prototype would still apply.  */
17438 #ifdef __cplusplus
17439 extern "C"
17440 #endif
17441 char $ac_func ();
17442 /* The GNU C library defines this for functions which it implements
17443     to always fail with ENOSYS.  Some functions are actually named
17444     something starting with __ and the normal name is an alias.  */
17445 #if defined __stub_$ac_func || defined __stub___$ac_func
17446 choke me
17447 #endif
17448
17449 int
17450 main ()
17451 {
17452 return $ac_func ();
17453   ;
17454   return 0;
17455 }
17456 _ACEOF
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_link") 2>conftest.er1
17465   ac_status=$?
17466   grep -v '^ *+' conftest.er1 >conftest.err
17467   rm -f conftest.er1
17468   cat conftest.err >&5
17469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470   (exit $ac_status); } &&
17471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472   { (case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_try") 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   eval "$as_ac_var=yes"
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496         eval "$as_ac_var=no"
17497 fi
17498
17499 rm -f core conftest.err conftest.$ac_objext \
17500       conftest$ac_exeext conftest.$ac_ext
17501 fi
17502 ac_res=`eval echo '${'$as_ac_var'}'`
17503                { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF
17509
17510 fi
17511 done
17512
17513
17514
17515
17516
17517
17518 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17519 do
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526   cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h.  */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h.  */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17534 #define $ac_func innocuous_$ac_func
17535
17536 /* System header to define __stub macros and hopefully few prototypes,
17537     which can conflict with char $ac_func (); below.
17538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539     <limits.h> exists even on freestanding compilers.  */
17540
17541 #ifdef __STDC__
17542 # include <limits.h>
17543 #else
17544 # include <assert.h>
17545 #endif
17546
17547 #undef $ac_func
17548
17549 /* Override any GCC internal prototype to avoid an error.
17550    Use char because int might match the return type of a GCC
17551    builtin and then its argument prototype would still apply.  */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557     to always fail with ENOSYS.  Some functions are actually named
17558     something starting with __ and the normal name is an alias.  */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17560 choke me
17561 #endif
17562
17563 int
17564 main ()
17565 {
17566 return $ac_func ();
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575   *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578   (eval "$ac_link") 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17586   { (case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_try") 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_try") 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   eval "$as_ac_var=yes"
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610         eval "$as_ac_var=no"
17611 fi
17612
17613 rm -f core conftest.err conftest.$ac_objext \
17614       conftest$ac_exeext conftest.$ac_ext
17615 fi
17616 ac_res=`eval echo '${'$as_ac_var'}'`
17617                { echo "$as_me:$LINENO: result: $ac_res" >&5
17618 echo "${ECHO_T}$ac_res" >&6; }
17619 if test `eval echo '${'$as_ac_var'}'` = yes; then
17620   cat >>confdefs.h <<_ACEOF
17621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17622 _ACEOF
17623
17624 fi
17625 done
17626
17627 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17628 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17629 if test "${llvm_cv_c_printf_a+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632   ac_ext=c
17633 ac_cpp='$CPP $CPPFLAGS'
17634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17637
17638  if test "$cross_compiling" = yes; then
17639   llvmac_cv_c_printf_a=no
17640 else
17641   cat >conftest.$ac_ext <<_ACEOF
17642
17643   /* confdefs.h.  */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h.  */
17648
17649 #include <stdio.h>
17650 #include <stdlib.h>
17651
17652 int
17653 main ()
17654 {
17655
17656 volatile double A, B;
17657 char Buffer[100];
17658 A = 1;
17659 A /= 10.0;
17660 sprintf(Buffer, "%a", A);
17661 B = atof(Buffer);
17662 if (A != B)
17663   return (1);
17664 if (A != 0x1.999999999999ap-4)
17665   return (1);
17666 return (0);
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest$ac_exeext
17672 if { (ac_try="$ac_link"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_link") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17682   { (case "(($ac_try" in
17683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684   *) ac_try_echo=$ac_try;;
17685 esac
17686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687   (eval "$ac_try") 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; }; then
17691   llvm_cv_c_printf_a=yes
17692 else
17693   echo "$as_me: program exited with status $ac_status" >&5
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697 ( exit $ac_status )
17698 llvmac_cv_c_printf_a=no
17699 fi
17700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17701 fi
17702
17703
17704  ac_ext=c
17705 ac_cpp='$CPP $CPPFLAGS'
17706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
17710 fi
17711 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17712 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17713  if test "$llvm_cv_c_printf_a" = "yes"; then
17714
17715 cat >>confdefs.h <<\_ACEOF
17716 #define HAVE_PRINTF_A 1
17717 _ACEOF
17718
17719  fi
17720
17721
17722 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17723 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17724 if test "${ac_cv_func_rand48+set}" = set; then
17725   echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727   ac_ext=cpp
17728 ac_cpp='$CXXCPP $CPPFLAGS'
17729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17732
17733    cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 #include <stdlib.h>
17740 int
17741 main ()
17742 {
17743 srand48(0);lrand48();drand48();
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_compile") 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } &&
17762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17763   { (case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_try") 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; } &&
17772          { ac_try='test -s conftest.$ac_objext'
17773   { (case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_try") 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   ac_cv_func_rand48=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787         ac_cv_func_rand48=no
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791   ac_ext=c
17792 ac_cpp='$CPP $CPPFLAGS'
17793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17796
17797 fi
17798 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17799 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17800
17801 if test "$ac_cv_func_rand48" = "yes" ; then
17802
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_RAND48 1
17805 _ACEOF
17806
17807 fi
17808
17809
17810 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17811 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17812 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17813   echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815   cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h.  */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h.  */
17821 $ac_includes_default
17822 int
17823 main ()
17824 {
17825 #ifndef strerror_s
17826   char *p = (char *) strerror_s;
17827   return !p;
17828 #endif
17829
17830   ;
17831   return 0;
17832 }
17833 _ACEOF
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
17836 case "(($ac_try" in
17837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838   *) ac_try_echo=$ac_try;;
17839 esac
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841   (eval "$ac_compile") 2>conftest.er1
17842   ac_status=$?
17843   grep -v '^ *+' conftest.er1 >conftest.err
17844   rm -f conftest.er1
17845   cat conftest.err >&5
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } &&
17848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17849   { (case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_try") 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; } &&
17858          { ac_try='test -s conftest.$ac_objext'
17859   { (case "(($ac_try" in
17860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861   *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864   (eval "$ac_try") 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   ac_cv_have_decl_strerror_s=yes
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873         ac_cv_have_decl_strerror_s=no
17874 fi
17875
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 fi
17878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17879 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17880 if test $ac_cv_have_decl_strerror_s = yes; then
17881
17882 cat >>confdefs.h <<_ACEOF
17883 #define HAVE_DECL_STRERROR_S 1
17884 _ACEOF
17885
17886
17887 else
17888   cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_STRERROR_S 0
17890 _ACEOF
17891
17892
17893 fi
17894
17895
17896
17897 if test "$llvm_cv_os_type" = "MingW" ; then
17898   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17899 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17900 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903   ac_check_lib_save_LIBS=$LIBS
17904 LIBS="-lgcc  $LIBS"
17905 cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 /* Override any GCC internal prototype to avoid an error.
17913    Use char because int might match the return type of a GCC
17914    builtin and then its argument prototype would still apply.  */
17915 #ifdef __cplusplus
17916 extern "C"
17917 #endif
17918 char _alloca ();
17919 int
17920 main ()
17921 {
17922 return _alloca ();
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931   *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934   (eval "$ac_link") 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } &&
17941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942   { (case "(($ac_try" in
17943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944   *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947   (eval "$ac_try") 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); }; } &&
17951          { ac_try='test -s conftest$ac_exeext'
17952   { (case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957   (eval "$ac_try") 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; }; then
17961   ac_cv_lib_gcc__alloca=yes
17962 else
17963   echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966         ac_cv_lib_gcc__alloca=no
17967 fi
17968
17969 rm -f core conftest.err conftest.$ac_objext \
17970       conftest$ac_exeext conftest.$ac_ext
17971 LIBS=$ac_check_lib_save_LIBS
17972 fi
17973 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17974 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17975 if test $ac_cv_lib_gcc__alloca = yes; then
17976
17977 cat >>confdefs.h <<\_ACEOF
17978 #define HAVE__ALLOCA 1
17979 _ACEOF
17980
17981 fi
17982
17983   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17984 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17985 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17986   echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988   ac_check_lib_save_LIBS=$LIBS
17989 LIBS="-lgcc  $LIBS"
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996
17997 /* Override any GCC internal prototype to avoid an error.
17998    Use char because int might match the return type of a GCC
17999    builtin and then its argument prototype would still apply.  */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 char __alloca ();
18004 int
18005 main ()
18006 {
18007 return __alloca ();
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (ac_try="$ac_link"
18014 case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_link") 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } &&
18026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027   { (case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_try") 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest$ac_exeext'
18037   { (case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_try") 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; }; then
18046   ac_cv_lib_gcc___alloca=yes
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         ac_cv_lib_gcc___alloca=no
18052 fi
18053
18054 rm -f core conftest.err conftest.$ac_objext \
18055       conftest$ac_exeext conftest.$ac_ext
18056 LIBS=$ac_check_lib_save_LIBS
18057 fi
18058 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18059 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18060 if test $ac_cv_lib_gcc___alloca = yes; then
18061
18062 cat >>confdefs.h <<\_ACEOF
18063 #define HAVE___ALLOCA 1
18064 _ACEOF
18065
18066 fi
18067
18068   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18069 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18070 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18071   echo $ECHO_N "(cached) $ECHO_C" >&6
18072 else
18073   ac_check_lib_save_LIBS=$LIBS
18074 LIBS="-lgcc  $LIBS"
18075 cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081
18082 /* Override any GCC internal prototype to avoid an error.
18083    Use char because int might match the return type of a GCC
18084    builtin and then its argument prototype would still apply.  */
18085 #ifdef __cplusplus
18086 extern "C"
18087 #endif
18088 char __chkstk ();
18089 int
18090 main ()
18091 {
18092 return __chkstk ();
18093   ;
18094   return 0;
18095 }
18096 _ACEOF
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101   *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104   (eval "$ac_link") 2>conftest.er1
18105   ac_status=$?
18106   grep -v '^ *+' conftest.er1 >conftest.err
18107   rm -f conftest.er1
18108   cat conftest.err >&5
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } &&
18111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112   { (case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117   (eval "$ac_try") 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest$ac_exeext'
18122   { (case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_try") 2>&5
18128   ac_status=$?
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); }; }; then
18131   ac_cv_lib_gcc___chkstk=yes
18132 else
18133   echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18135
18136         ac_cv_lib_gcc___chkstk=no
18137 fi
18138
18139 rm -f core conftest.err conftest.$ac_objext \
18140       conftest$ac_exeext conftest.$ac_ext
18141 LIBS=$ac_check_lib_save_LIBS
18142 fi
18143 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18144 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18145 if test $ac_cv_lib_gcc___chkstk = yes; then
18146
18147 cat >>confdefs.h <<\_ACEOF
18148 #define HAVE___CHKSTK 1
18149 _ACEOF
18150
18151 fi
18152
18153   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18154 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18155 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   ac_check_lib_save_LIBS=$LIBS
18159 LIBS="-lgcc  $LIBS"
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166
18167 /* Override any GCC internal prototype to avoid an error.
18168    Use char because int might match the return type of a GCC
18169    builtin and then its argument prototype would still apply.  */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 char ___chkstk ();
18174 int
18175 main ()
18176 {
18177 return ___chkstk ();
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_link") 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; } &&
18206          { ac_try='test -s conftest$ac_exeext'
18207   { (case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_try") 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ac_cv_lib_gcc____chkstk=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221         ac_cv_lib_gcc____chkstk=no
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext \
18225       conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18227 fi
18228 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18229 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18230 if test $ac_cv_lib_gcc____chkstk = yes; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE____CHKSTK 1
18234 _ACEOF
18235
18236 fi
18237
18238
18239   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18240 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18241 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18242   echo $ECHO_N "(cached) $ECHO_C" >&6
18243 else
18244   ac_check_lib_save_LIBS=$LIBS
18245 LIBS="-lgcc  $LIBS"
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h.  */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h.  */
18252
18253 /* Override any GCC internal prototype to avoid an error.
18254    Use char because int might match the return type of a GCC
18255    builtin and then its argument prototype would still apply.  */
18256 #ifdef __cplusplus
18257 extern "C"
18258 #endif
18259 char __ashldi3 ();
18260 int
18261 main ()
18262 {
18263 return __ashldi3 ();
18264   ;
18265   return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_link") 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } &&
18282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18283   { (case "(($ac_try" in
18284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285   *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288   (eval "$ac_try") 2>&5
18289   ac_status=$?
18290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291   (exit $ac_status); }; } &&
18292          { ac_try='test -s conftest$ac_exeext'
18293   { (case "(($ac_try" in
18294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295   *) ac_try_echo=$ac_try;;
18296 esac
18297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298   (eval "$ac_try") 2>&5
18299   ac_status=$?
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); }; }; then
18302   ac_cv_lib_gcc___ashldi3=yes
18303 else
18304   echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18306
18307         ac_cv_lib_gcc___ashldi3=no
18308 fi
18309
18310 rm -f core conftest.err conftest.$ac_objext \
18311       conftest$ac_exeext conftest.$ac_ext
18312 LIBS=$ac_check_lib_save_LIBS
18313 fi
18314 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18315 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18316 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18317
18318 cat >>confdefs.h <<\_ACEOF
18319 #define HAVE___ASHLDI3 1
18320 _ACEOF
18321
18322 fi
18323
18324   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18325 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18326 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18327   echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329   ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lgcc  $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337
18338 /* Override any GCC internal prototype to avoid an error.
18339    Use char because int might match the return type of a GCC
18340    builtin and then its argument prototype would still apply.  */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 char __ashrdi3 ();
18345 int
18346 main ()
18347 {
18348 return __ashrdi3 ();
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (ac_try="$ac_link"
18355 case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_link") 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368   { (case "(($ac_try" in
18369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370   *) ac_try_echo=$ac_try;;
18371 esac
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373   (eval "$ac_try") 2>&5
18374   ac_status=$?
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); }; } &&
18377          { ac_try='test -s conftest$ac_exeext'
18378   { (case "(($ac_try" in
18379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380   *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383   (eval "$ac_try") 2>&5
18384   ac_status=$?
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); }; }; then
18387   ac_cv_lib_gcc___ashrdi3=yes
18388 else
18389   echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18391
18392         ac_cv_lib_gcc___ashrdi3=no
18393 fi
18394
18395 rm -f core conftest.err conftest.$ac_objext \
18396       conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18398 fi
18399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18400 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18401 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18402
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE___ASHRDI3 1
18405 _ACEOF
18406
18407 fi
18408
18409   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18410 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18411 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-lgcc  $LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423 /* Override any GCC internal prototype to avoid an error.
18424    Use char because int might match the return type of a GCC
18425    builtin and then its argument prototype would still apply.  */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 char __divdi3 ();
18430 int
18431 main ()
18432 {
18433 return __divdi3 ();
18434   ;
18435   return 0;
18436 }
18437 _ACEOF
18438 rm -f conftest.$ac_objext conftest$ac_exeext
18439 if { (ac_try="$ac_link"
18440 case "(($ac_try" in
18441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442   *) ac_try_echo=$ac_try;;
18443 esac
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445   (eval "$ac_link") 2>conftest.er1
18446   ac_status=$?
18447   grep -v '^ *+' conftest.er1 >conftest.err
18448   rm -f conftest.er1
18449   cat conftest.err >&5
18450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451   (exit $ac_status); } &&
18452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18453   { (case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458   (eval "$ac_try") 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (case "(($ac_try" in
18464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465   *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468   (eval "$ac_try") 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   ac_cv_lib_gcc___divdi3=yes
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         ac_cv_lib_gcc___divdi3=no
18478 fi
18479
18480 rm -f core conftest.err conftest.$ac_objext \
18481       conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18483 fi
18484 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18485 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18486 if test $ac_cv_lib_gcc___divdi3 = yes; then
18487
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE___DIVDI3 1
18490 _ACEOF
18491
18492 fi
18493
18494   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18495 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18496 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499   ac_check_lib_save_LIBS=$LIBS
18500 LIBS="-lgcc  $LIBS"
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 /* Override any GCC internal prototype to avoid an error.
18509    Use char because int might match the return type of a GCC
18510    builtin and then its argument prototype would still apply.  */
18511 #ifdef __cplusplus
18512 extern "C"
18513 #endif
18514 char __fixdfdi ();
18515 int
18516 main ()
18517 {
18518 return __fixdfdi ();
18519   ;
18520   return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (ac_try="$ac_link"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_link") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18538   { (case "(($ac_try" in
18539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540   *) ac_try_echo=$ac_try;;
18541 esac
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543   (eval "$ac_try") 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest$ac_exeext'
18548   { (case "(($ac_try" in
18549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550   *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553   (eval "$ac_try") 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_lib_gcc___fixdfdi=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562         ac_cv_lib_gcc___fixdfdi=no
18563 fi
18564
18565 rm -f core conftest.err conftest.$ac_objext \
18566       conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18568 fi
18569 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18570 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18571 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18572
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE___FIXDFDI 1
18575 _ACEOF
18576
18577 fi
18578
18579   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18580 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584   ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lgcc  $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592
18593 /* Override any GCC internal prototype to avoid an error.
18594    Use char because int might match the return type of a GCC
18595    builtin and then its argument prototype would still apply.  */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 char __fixsfdi ();
18600 int
18601 main ()
18602 {
18603 return __fixsfdi ();
18604   ;
18605   return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612   *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615   (eval "$ac_link") 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } &&
18622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18623   { (case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_try") 2>&5
18629   ac_status=$?
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); }; } &&
18632          { ac_try='test -s conftest$ac_exeext'
18633   { (case "(($ac_try" in
18634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635   *) ac_try_echo=$ac_try;;
18636 esac
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638   (eval "$ac_try") 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; }; then
18642   ac_cv_lib_gcc___fixsfdi=yes
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         ac_cv_lib_gcc___fixsfdi=no
18648 fi
18649
18650 rm -f core conftest.err conftest.$ac_objext \
18651       conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18653 fi
18654 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18655 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18656 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18657
18658 cat >>confdefs.h <<\_ACEOF
18659 #define HAVE___FIXSFDI 1
18660 _ACEOF
18661
18662 fi
18663
18664   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18665 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-lgcc  $LIBS"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 /* Override any GCC internal prototype to avoid an error.
18679    Use char because int might match the return type of a GCC
18680    builtin and then its argument prototype would still apply.  */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char __floatdidf ();
18685 int
18686 main ()
18687 {
18688 return __floatdidf ();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_link") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } &&
18707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18708   { (case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_try") 2>&5
18714   ac_status=$?
18715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716   (exit $ac_status); }; } &&
18717          { ac_try='test -s conftest$ac_exeext'
18718   { (case "(($ac_try" in
18719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720   *) ac_try_echo=$ac_try;;
18721 esac
18722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723   (eval "$ac_try") 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_lib_gcc___floatdidf=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732         ac_cv_lib_gcc___floatdidf=no
18733 fi
18734
18735 rm -f core conftest.err conftest.$ac_objext \
18736       conftest$ac_exeext conftest.$ac_ext
18737 LIBS=$ac_check_lib_save_LIBS
18738 fi
18739 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18740 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18741 if test $ac_cv_lib_gcc___floatdidf = yes; then
18742
18743 cat >>confdefs.h <<\_ACEOF
18744 #define HAVE___FLOATDIDF 1
18745 _ACEOF
18746
18747 fi
18748
18749   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18750 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18751 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18752   echo $ECHO_N "(cached) $ECHO_C" >&6
18753 else
18754   ac_check_lib_save_LIBS=$LIBS
18755 LIBS="-lgcc  $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764    Use char because int might match the return type of a GCC
18765    builtin and then its argument prototype would still apply.  */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char __lshrdi3 ();
18770 int
18771 main ()
18772 {
18773 return __lshrdi3 ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782   *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785   (eval "$ac_link") 2>conftest.er1
18786   ac_status=$?
18787   grep -v '^ *+' conftest.er1 >conftest.err
18788   rm -f conftest.er1
18789   cat conftest.err >&5
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); } &&
18792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_try") 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   ac_cv_lib_gcc___lshrdi3=yes
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817         ac_cv_lib_gcc___lshrdi3=no
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext \
18821       conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18823 fi
18824 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18825 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18826 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18827
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE___LSHRDI3 1
18830 _ACEOF
18831
18832 fi
18833
18834   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18835 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18836 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   ac_check_lib_save_LIBS=$LIBS
18840 LIBS="-lgcc  $LIBS"
18841 cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h.  */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h.  */
18847
18848 /* Override any GCC internal prototype to avoid an error.
18849    Use char because int might match the return type of a GCC
18850    builtin and then its argument prototype would still apply.  */
18851 #ifdef __cplusplus
18852 extern "C"
18853 #endif
18854 char __moddi3 ();
18855 int
18856 main ()
18857 {
18858 return __moddi3 ();
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870   (eval "$ac_link") 2>conftest.er1
18871   ac_status=$?
18872   grep -v '^ *+' conftest.er1 >conftest.err
18873   rm -f conftest.er1
18874   cat conftest.err >&5
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } &&
18877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18878   { (case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_try") 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; } &&
18887          { ac_try='test -s conftest$ac_exeext'
18888   { (case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_try") 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; }; then
18897   ac_cv_lib_gcc___moddi3=yes
18898 else
18899   echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902         ac_cv_lib_gcc___moddi3=no
18903 fi
18904
18905 rm -f core conftest.err conftest.$ac_objext \
18906       conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18908 fi
18909 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18910 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18911 if test $ac_cv_lib_gcc___moddi3 = yes; then
18912
18913 cat >>confdefs.h <<\_ACEOF
18914 #define HAVE___MODDI3 1
18915 _ACEOF
18916
18917 fi
18918
18919   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18920 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18921 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924   ac_check_lib_save_LIBS=$LIBS
18925 LIBS="-lgcc  $LIBS"
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932
18933 /* Override any GCC internal prototype to avoid an error.
18934    Use char because int might match the return type of a GCC
18935    builtin and then its argument prototype would still apply.  */
18936 #ifdef __cplusplus
18937 extern "C"
18938 #endif
18939 char __udivdi3 ();
18940 int
18941 main ()
18942 {
18943 return __udivdi3 ();
18944   ;
18945   return 0;
18946 }
18947 _ACEOF
18948 rm -f conftest.$ac_objext conftest$ac_exeext
18949 if { (ac_try="$ac_link"
18950 case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955   (eval "$ac_link") 2>conftest.er1
18956   ac_status=$?
18957   grep -v '^ *+' conftest.er1 >conftest.err
18958   rm -f conftest.er1
18959   cat conftest.err >&5
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); } &&
18962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18963   { (case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_try") 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; } &&
18972          { ac_try='test -s conftest$ac_exeext'
18973   { (case "(($ac_try" in
18974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18975   *) ac_try_echo=$ac_try;;
18976 esac
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978   (eval "$ac_try") 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; }; then
18982   ac_cv_lib_gcc___udivdi3=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987         ac_cv_lib_gcc___udivdi3=no
18988 fi
18989
18990 rm -f core conftest.err conftest.$ac_objext \
18991       conftest$ac_exeext conftest.$ac_ext
18992 LIBS=$ac_check_lib_save_LIBS
18993 fi
18994 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18995 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18996 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18997
18998 cat >>confdefs.h <<\_ACEOF
18999 #define HAVE___UDIVDI3 1
19000 _ACEOF
19001
19002 fi
19003
19004   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19005 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   ac_check_lib_save_LIBS=$LIBS
19010 LIBS="-lgcc  $LIBS"
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h.  */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h.  */
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019    Use char because int might match the return type of a GCC
19020    builtin and then its argument prototype would still apply.  */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char __umoddi3 ();
19025 int
19026 main ()
19027 {
19028 return __umoddi3 ();
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037   *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040   (eval "$ac_link") 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048   { (case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; } &&
19057          { ac_try='test -s conftest$ac_exeext'
19058   { (case "(($ac_try" in
19059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060   *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063   (eval "$ac_try") 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_cv_lib_gcc___umoddi3=yes
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072         ac_cv_lib_gcc___umoddi3=no
19073 fi
19074
19075 rm -f core conftest.err conftest.$ac_objext \
19076       conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19078 fi
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19081 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19082
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___UMODDI3 1
19085 _ACEOF
19086
19087 fi
19088
19089
19090   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19091 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_gcc___main+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   ac_check_lib_save_LIBS=$LIBS
19096 LIBS="-lgcc  $LIBS"
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h.  */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h.  */
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105    Use char because int might match the return type of a GCC
19106    builtin and then its argument prototype would still apply.  */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char __main ();
19111 int
19112 main ()
19113 {
19114 return __main ();
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_link") 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } &&
19133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19134   { (case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_try") 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; } &&
19143          { ac_try='test -s conftest$ac_exeext'
19144   { (case "(($ac_try" in
19145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146   *) ac_try_echo=$ac_try;;
19147 esac
19148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19149   (eval "$ac_try") 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; }; then
19153   ac_cv_lib_gcc___main=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         ac_cv_lib_gcc___main=no
19159 fi
19160
19161 rm -f core conftest.err conftest.$ac_objext \
19162       conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19164 fi
19165 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19166 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19167 if test $ac_cv_lib_gcc___main = yes; then
19168
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE___MAIN 1
19171 _ACEOF
19172
19173 fi
19174
19175   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19176 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19177 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   ac_check_lib_save_LIBS=$LIBS
19181 LIBS="-lgcc  $LIBS"
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188
19189 /* Override any GCC internal prototype to avoid an error.
19190    Use char because int might match the return type of a GCC
19191    builtin and then its argument prototype would still apply.  */
19192 #ifdef __cplusplus
19193 extern "C"
19194 #endif
19195 char __cmpdi2 ();
19196 int
19197 main ()
19198 {
19199 return __cmpdi2 ();
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211   (eval "$ac_link") 2>conftest.er1
19212   ac_status=$?
19213   grep -v '^ *+' conftest.er1 >conftest.err
19214   rm -f conftest.er1
19215   cat conftest.err >&5
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); } &&
19218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19219   { (case "(($ac_try" in
19220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221   *) ac_try_echo=$ac_try;;
19222 esac
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224   (eval "$ac_try") 2>&5
19225   ac_status=$?
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); }; } &&
19228          { ac_try='test -s conftest$ac_exeext'
19229   { (case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_try") 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_cv_lib_gcc___cmpdi2=yes
19239 else
19240   echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19242
19243         ac_cv_lib_gcc___cmpdi2=no
19244 fi
19245
19246 rm -f core conftest.err conftest.$ac_objext \
19247       conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19251 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19252 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19253
19254 cat >>confdefs.h <<\_ACEOF
19255 #define HAVE___CMPDI2 1
19256 _ACEOF
19257
19258 fi
19259
19260 fi
19261
19262 if test "$llvm_cv_os_type" = "MingW" ; then
19263   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19264 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19265   cat >conftest.$ac_ext <<_ACEOF
19266 #include <windows.h>
19267 #include <imagehlp.h>
19268 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19269 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19270 _ACEOF
19271 rm -f conftest.$ac_objext
19272 if { (ac_try="$ac_compile"
19273 case "(($ac_try" in
19274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275   *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278   (eval "$ac_compile") 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } &&
19285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286   { (case "(($ac_try" in
19287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288   *) ac_try_echo=$ac_try;;
19289 esac
19290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19291   (eval "$ac_try") 2>&5
19292   ac_status=$?
19293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); }; } &&
19295          { ac_try='test -s conftest.$ac_objext'
19296   { (case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_try") 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); }; }; then
19305
19306   { echo "$as_me:$LINENO: result: yes" >&5
19307 echo "${ECHO_T}yes" >&6; }
19308   llvm_cv_win32_elmcb_pcstr="PCSTR"
19309
19310 else
19311   echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314
19315   { echo "$as_me:$LINENO: result: no" >&5
19316 echo "${ECHO_T}no" >&6; }
19317   llvm_cv_win32_elmcb_pcstr="PSTR"
19318
19319 fi
19320
19321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19325 _ACEOF
19326
19327 fi
19328
19329
19330 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19331 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19332 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_ext=cpp
19336 ac_cpp='$CXXCPP $CPPFLAGS'
19337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19340
19341    cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 #include <math.h>
19348 int
19349 main ()
19350 {
19351 float f; isnan(f);
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (ac_try="$ac_compile"
19358 case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_compile") 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } &&
19370          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19371   { (case "(($ac_try" in
19372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373   *) ac_try_echo=$ac_try;;
19374 esac
19375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19376   (eval "$ac_try") 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; } &&
19380          { ac_try='test -s conftest.$ac_objext'
19381   { (case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_try") 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_func_isnan_in_math_h=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395         ac_cv_func_isnan_in_math_h=no
19396 fi
19397
19398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399   ac_ext=c
19400 ac_cpp='$CPP $CPPFLAGS'
19401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404
19405 fi
19406 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19407 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19408
19409
19410 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19411
19412 cat >>confdefs.h <<\_ACEOF
19413 #define HAVE_ISNAN_IN_MATH_H 1
19414 _ACEOF
19415
19416 fi
19417
19418 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19419 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19420 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_ext=cpp
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19428
19429    cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h.  */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h.  */
19435 #include <cmath>
19436 int
19437 main ()
19438 {
19439 float f; isnan(f);
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext
19445 if { (ac_try="$ac_compile"
19446 case "(($ac_try" in
19447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448   *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451   (eval "$ac_compile") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19459   { (case "(($ac_try" in
19460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461   *) ac_try_echo=$ac_try;;
19462 esac
19463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464   (eval "$ac_try") 2>&5
19465   ac_status=$?
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); }; } &&
19468          { ac_try='test -s conftest.$ac_objext'
19469   { (case "(($ac_try" in
19470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471   *) ac_try_echo=$ac_try;;
19472 esac
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474   (eval "$ac_try") 2>&5
19475   ac_status=$?
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); }; }; then
19478   ac_cv_func_isnan_in_cmath=yes
19479 else
19480   echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19482
19483         ac_cv_func_isnan_in_cmath=no
19484 fi
19485
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487   ac_ext=c
19488 ac_cpp='$CPP $CPPFLAGS'
19489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19492
19493 fi
19494 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19495 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19496
19497 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19498
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE_ISNAN_IN_CMATH 1
19501 _ACEOF
19502
19503 fi
19504
19505 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19506 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19507 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19508   echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510   ac_ext=cpp
19511 ac_cpp='$CXXCPP $CPPFLAGS'
19512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19515
19516    cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h.  */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h.  */
19522 #include <cmath>
19523 int
19524 main ()
19525 {
19526 float f; std::isnan(f);
19527   ;
19528   return 0;
19529 }
19530 _ACEOF
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_compile") 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19546   { (case "(($ac_try" in
19547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548   *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551   (eval "$ac_try") 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); }; } &&
19555          { ac_try='test -s conftest.$ac_objext'
19556   { (case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_try") 2>&5
19562   ac_status=$?
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); }; }; then
19565   ac_cv_func_std_isnan_in_cmath=yes
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570         ac_cv_func_std_isnan_in_cmath=no
19571 fi
19572
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574   ac_ext=c
19575 ac_cpp='$CPP $CPPFLAGS'
19576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579
19580 fi
19581 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19582 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19583
19584 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19585
19586 cat >>confdefs.h <<\_ACEOF
19587 #define HAVE_STD_ISNAN_IN_CMATH 1
19588 _ACEOF
19589
19590 fi
19591
19592
19593 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19594 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19595 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   ac_ext=cpp
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
19604    cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 #include <math.h>
19611 int
19612 main ()
19613 {
19614 float f; isinf(f);
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626   (eval "$ac_compile") 2>conftest.er1
19627   ac_status=$?
19628   grep -v '^ *+' conftest.er1 >conftest.err
19629   rm -f conftest.er1
19630   cat conftest.err >&5
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19634   { (case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_try") 2>&5
19640   ac_status=$?
19641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642   (exit $ac_status); }; } &&
19643          { ac_try='test -s conftest.$ac_objext'
19644   { (case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_try") 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; }; then
19653   ac_cv_func_isinf_in_math_h=yes
19654 else
19655   echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19657
19658         ac_cv_func_isinf_in_math_h=no
19659 fi
19660
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19662   ac_ext=c
19663 ac_cpp='$CPP $CPPFLAGS'
19664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668 fi
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19670 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19671
19672 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_ISINF_IN_MATH_H 1
19676 _ACEOF
19677
19678 fi
19679
19680 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19681 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19682 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   ac_ext=cpp
19686 ac_cpp='$CXXCPP $CPPFLAGS'
19687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19690
19691    cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697 #include <cmath>
19698 int
19699 main ()
19700 {
19701 float f; isinf(f);
19702   ;
19703   return 0;
19704 }
19705 _ACEOF
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710   *) ac_try_echo=$ac_try;;
19711 esac
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713   (eval "$ac_compile") 2>conftest.er1
19714   ac_status=$?
19715   grep -v '^ *+' conftest.er1 >conftest.err
19716   rm -f conftest.er1
19717   cat conftest.err >&5
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } &&
19720          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19721   { (case "(($ac_try" in
19722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723   *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726   (eval "$ac_try") 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }; } &&
19730          { ac_try='test -s conftest.$ac_objext'
19731   { (case "(($ac_try" in
19732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733   *) ac_try_echo=$ac_try;;
19734 esac
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736   (eval "$ac_try") 2>&5
19737   ac_status=$?
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); }; }; then
19740   ac_cv_func_isinf_in_cmath=yes
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745         ac_cv_func_isinf_in_cmath=no
19746 fi
19747
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749   ac_ext=c
19750 ac_cpp='$CPP $CPPFLAGS'
19751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19754
19755 fi
19756 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19757 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19758
19759 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19760
19761 cat >>confdefs.h <<\_ACEOF
19762 #define HAVE_ISINF_IN_CMATH 1
19763 _ACEOF
19764
19765 fi
19766
19767 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19768 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19769 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   ac_ext=cpp
19773 ac_cpp='$CXXCPP $CPPFLAGS'
19774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778    cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 #include <cmath>
19785 int
19786 main ()
19787 {
19788 float f; std::isinf(f)}
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_compile") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19808   { (case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_try") 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; } &&
19817          { ac_try='test -s conftest.$ac_objext'
19818   { (case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_try") 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   ac_cv_func_std_isinf_in_cmath=yes
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832         ac_cv_func_std_isinf_in_cmath=no
19833 fi
19834
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836   ac_ext=c
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19841
19842 fi
19843 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19844 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19845
19846 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19847
19848 cat >>confdefs.h <<\_ACEOF
19849 #define HAVE_STD_ISINF_IN_CMATH 1
19850 _ACEOF
19851
19852 fi
19853
19854 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19855 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19856 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19857   echo $ECHO_N "(cached) $ECHO_C" >&6
19858 else
19859   ac_ext=cpp
19860 ac_cpp='$CXXCPP $CPPFLAGS'
19861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19864
19865    cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871 #include <ieeefp.h>
19872 int
19873 main ()
19874 {
19875 float f; finite(f);
19876   ;
19877   return 0;
19878 }
19879 _ACEOF
19880 rm -f conftest.$ac_objext
19881 if { (ac_try="$ac_compile"
19882 case "(($ac_try" in
19883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884   *) ac_try_echo=$ac_try;;
19885 esac
19886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19887   (eval "$ac_compile") 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19895   { (case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_try") 2>&5
19901   ac_status=$?
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); }; } &&
19904          { ac_try='test -s conftest.$ac_objext'
19905   { (case "(($ac_try" in
19906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907   *) ac_try_echo=$ac_try;;
19908 esac
19909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910   (eval "$ac_try") 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); }; }; then
19914   ac_cv_func_finite_in_ieeefp_h=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919         ac_cv_func_finite_in_ieeefp_h=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923   ac_ext=c
19924 ac_cpp='$CPP $CPPFLAGS'
19925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19928
19929 fi
19930 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19931 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19932
19933 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19934
19935 cat >>confdefs.h <<\_ACEOF
19936 #define HAVE_FINITE_IN_IEEEFP_H 1
19937 _ACEOF
19938
19939 fi
19940
19941
19942
19943 if test "$llvm_cv_platform_type" = "Unix" ; then
19944
19945
19946 for ac_header in stdlib.h unistd.h
19947 do
19948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19953   echo $ECHO_N "(cached) $ECHO_C" >&6
19954 fi
19955 ac_res=`eval echo '${'$as_ac_Header'}'`
19956                { echo "$as_me:$LINENO: result: $ac_res" >&5
19957 echo "${ECHO_T}$ac_res" >&6; }
19958 else
19959   # Is the header compilable?
19960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 #include <$ac_header>
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (ac_try="$ac_compile"
19973 case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_compile") 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19986   { (case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_try") 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); }; } &&
19995          { ac_try='test -s conftest.$ac_objext'
19996   { (case "(($ac_try" in
19997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998   *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001   (eval "$ac_try") 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; }; then
20005   ac_header_compiler=yes
20006 else
20007   echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010         ac_header_compiler=no
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015 echo "${ECHO_T}$ac_header_compiler" >&6; }
20016
20017 # Is the header present?
20018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20020 cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <$ac_header>
20027 _ACEOF
20028 if { (ac_try="$ac_cpp conftest.$ac_ext"
20029 case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } >/dev/null; then
20041   if test -s conftest.err; then
20042     ac_cpp_err=$ac_c_preproc_warn_flag
20043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20044   else
20045     ac_cpp_err=
20046   fi
20047 else
20048   ac_cpp_err=yes
20049 fi
20050 if test -z "$ac_cpp_err"; then
20051   ac_header_preproc=yes
20052 else
20053   echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056   ac_header_preproc=no
20057 fi
20058
20059 rm -f conftest.err conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6; }
20062
20063 # So?  What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065   yes:no: )
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070     ac_header_preproc=yes
20071     ;;
20072   no:yes:* )
20073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20085     ( cat <<\_ASBOX
20086 ## ------------------------------------ ##
20087 ## Report this to http://llvm.org/bugs/ ##
20088 ## ------------------------------------ ##
20089 _ASBOX
20090      ) | sed "s/^/$as_me: WARNING:     /" >&2
20091     ;;
20092 esac
20093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   eval "$as_ac_Header=\$ac_header_preproc"
20099 fi
20100 ac_res=`eval echo '${'$as_ac_Header'}'`
20101                { echo "$as_me:$LINENO: result: $ac_res" >&5
20102 echo "${ECHO_T}$ac_res" >&6; }
20103
20104 fi
20105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20106   cat >>confdefs.h <<_ACEOF
20107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20108 _ACEOF
20109
20110 fi
20111
20112 done
20113
20114
20115 for ac_func in getpagesize
20116 do
20117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20131 #define $ac_func innocuous_$ac_func
20132
20133 /* System header to define __stub macros and hopefully few prototypes,
20134     which can conflict with char $ac_func (); below.
20135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136     <limits.h> exists even on freestanding compilers.  */
20137
20138 #ifdef __STDC__
20139 # include <limits.h>
20140 #else
20141 # include <assert.h>
20142 #endif
20143
20144 #undef $ac_func
20145
20146 /* Override any GCC internal prototype to avoid an error.
20147    Use char because int might match the return type of a GCC
20148    builtin and then its argument prototype would still apply.  */
20149 #ifdef __cplusplus
20150 extern "C"
20151 #endif
20152 char $ac_func ();
20153 /* The GNU C library defines this for functions which it implements
20154     to always fail with ENOSYS.  Some functions are actually named
20155     something starting with __ and the normal name is an alias.  */
20156 #if defined __stub_$ac_func || defined __stub___$ac_func
20157 choke me
20158 #endif
20159
20160 int
20161 main ()
20162 {
20163 return $ac_func ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext conftest$ac_exeext
20169 if { (ac_try="$ac_link"
20170 case "(($ac_try" in
20171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172   *) ac_try_echo=$ac_try;;
20173 esac
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175   (eval "$ac_link") 2>conftest.er1
20176   ac_status=$?
20177   grep -v '^ *+' conftest.er1 >conftest.err
20178   rm -f conftest.er1
20179   cat conftest.err >&5
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); } &&
20182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20183   { (case "(($ac_try" in
20184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185   *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188   (eval "$ac_try") 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest$ac_exeext'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   eval "$as_ac_var=yes"
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         eval "$as_ac_var=no"
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext \
20211       conftest$ac_exeext conftest.$ac_ext
20212 fi
20213 ac_res=`eval echo '${'$as_ac_var'}'`
20214                { echo "$as_me:$LINENO: result: $ac_res" >&5
20215 echo "${ECHO_T}$ac_res" >&6; }
20216 if test `eval echo '${'$as_ac_var'}'` = yes; then
20217   cat >>confdefs.h <<_ACEOF
20218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20219 _ACEOF
20220
20221 fi
20222 done
20223
20224 { echo "$as_me:$LINENO: checking for working mmap" >&5
20225 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20226 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20227   echo $ECHO_N "(cached) $ECHO_C" >&6
20228 else
20229   if test "$cross_compiling" = yes; then
20230   ac_cv_func_mmap_fixed_mapped=no
20231 else
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 $ac_includes_default
20239 /* malloc might have been renamed as rpl_malloc. */
20240 #undef malloc
20241
20242 /* Thanks to Mike Haertel and Jim Avera for this test.
20243    Here is a matrix of mmap possibilities:
20244         mmap private not fixed
20245         mmap private fixed at somewhere currently unmapped
20246         mmap private fixed at somewhere already mapped
20247         mmap shared not fixed
20248         mmap shared fixed at somewhere currently unmapped
20249         mmap shared fixed at somewhere already mapped
20250    For private mappings, we should verify that changes cannot be read()
20251    back from the file, nor mmap's back from the file at a different
20252    address.  (There have been systems where private was not correctly
20253    implemented like the infamous i386 svr4.0, and systems where the
20254    VM page cache was not coherent with the file system buffer cache
20255    like early versions of FreeBSD and possibly contemporary NetBSD.)
20256    For shared mappings, we should conversely verify that changes get
20257    propagated back to all the places they're supposed to be.
20258
20259    Grep wants private fixed already mapped.
20260    The main things grep needs to know about mmap are:
20261    * does it exist and is it safe to write into the mmap'd area
20262    * how to use it (BSD variants)  */
20263
20264 #include <fcntl.h>
20265 #include <sys/mman.h>
20266
20267 #if !STDC_HEADERS && !HAVE_STDLIB_H
20268 char *malloc ();
20269 #endif
20270
20271 /* This mess was copied from the GNU getpagesize.h.  */
20272 #if !HAVE_GETPAGESIZE
20273 /* Assume that all systems that can run configure have sys/param.h.  */
20274 # if !HAVE_SYS_PARAM_H
20275 #  define HAVE_SYS_PARAM_H 1
20276 # endif
20277
20278 # ifdef _SC_PAGESIZE
20279 #  define getpagesize() sysconf(_SC_PAGESIZE)
20280 # else /* no _SC_PAGESIZE */
20281 #  if HAVE_SYS_PARAM_H
20282 #   include <sys/param.h>
20283 #   ifdef EXEC_PAGESIZE
20284 #    define getpagesize() EXEC_PAGESIZE
20285 #   else /* no EXEC_PAGESIZE */
20286 #    ifdef NBPG
20287 #     define getpagesize() NBPG * CLSIZE
20288 #     ifndef CLSIZE
20289 #      define CLSIZE 1
20290 #     endif /* no CLSIZE */
20291 #    else /* no NBPG */
20292 #     ifdef NBPC
20293 #      define getpagesize() NBPC
20294 #     else /* no NBPC */
20295 #      ifdef PAGESIZE
20296 #       define getpagesize() PAGESIZE
20297 #      endif /* PAGESIZE */
20298 #     endif /* no NBPC */
20299 #    endif /* no NBPG */
20300 #   endif /* no EXEC_PAGESIZE */
20301 #  else /* no HAVE_SYS_PARAM_H */
20302 #   define getpagesize() 8192   /* punt totally */
20303 #  endif /* no HAVE_SYS_PARAM_H */
20304 # endif /* no _SC_PAGESIZE */
20305
20306 #endif /* no HAVE_GETPAGESIZE */
20307
20308 int
20309 main ()
20310 {
20311   char *data, *data2, *data3;
20312   int i, pagesize;
20313   int fd;
20314
20315   pagesize = getpagesize ();
20316
20317   /* First, make a file with some known garbage in it. */
20318   data = (char *) malloc (pagesize);
20319   if (!data)
20320     return 1;
20321   for (i = 0; i < pagesize; ++i)
20322     *(data + i) = rand ();
20323   umask (0);
20324   fd = creat ("conftest.mmap", 0600);
20325   if (fd < 0)
20326     return 1;
20327   if (write (fd, data, pagesize) != pagesize)
20328     return 1;
20329   close (fd);
20330
20331   /* Next, try to mmap the file at a fixed address which already has
20332      something else allocated at it.  If we can, also make sure that
20333      we see the same garbage.  */
20334   fd = open ("conftest.mmap", O_RDWR);
20335   if (fd < 0)
20336     return 1;
20337   data2 = (char *) malloc (2 * pagesize);
20338   if (!data2)
20339     return 1;
20340   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20341   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20342                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20343     return 1;
20344   for (i = 0; i < pagesize; ++i)
20345     if (*(data + i) != *(data2 + i))
20346       return 1;
20347
20348   /* Finally, make sure that changes to the mapped area do not
20349      percolate back to the file as seen by read().  (This is a bug on
20350      some variants of i386 svr4.0.)  */
20351   for (i = 0; i < pagesize; ++i)
20352     *(data2 + i) = *(data2 + i) + 1;
20353   data3 = (char *) malloc (pagesize);
20354   if (!data3)
20355     return 1;
20356   if (read (fd, data3, pagesize) != pagesize)
20357     return 1;
20358   for (i = 0; i < pagesize; ++i)
20359     if (*(data + i) != *(data3 + i))
20360       return 1;
20361   close (fd);
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest$ac_exeext
20366 if { (ac_try="$ac_link"
20367 case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_link") 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20376   { (case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_try") 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_cv_func_mmap_fixed_mapped=yes
20386 else
20387   echo "$as_me: program exited with status $ac_status" >&5
20388 echo "$as_me: failed program was:" >&5
20389 sed 's/^/| /' conftest.$ac_ext >&5
20390
20391 ( exit $ac_status )
20392 ac_cv_func_mmap_fixed_mapped=no
20393 fi
20394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20395 fi
20396
20397
20398 fi
20399 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20400 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20401 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20402
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_MMAP 1
20405 _ACEOF
20406
20407 fi
20408 rm -f conftest.mmap
20409
20410   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20411 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20412 if test "${ac_cv_func_mmap_file+set}" = set; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415    ac_ext=c
20416 ac_cpp='$CPP $CPPFLAGS'
20417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20420
20421   if test "$cross_compiling" = yes; then
20422   ac_cv_func_mmap_file=no
20423 else
20424   cat >conftest.$ac_ext <<_ACEOF
20425
20426     /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20431
20432 #include <sys/types.h>
20433 #include <sys/mman.h>
20434 #include <fcntl.h>
20435
20436 int
20437 main ()
20438 {
20439
20440   int fd;
20441   fd = creat ("foo",0777);
20442   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20443   unlink ("foo");
20444   return (fd != (int) MAP_FAILED);
20445   ;
20446   return 0;
20447 }
20448 _ACEOF
20449 rm -f conftest$ac_exeext
20450 if { (ac_try="$ac_link"
20451 case "(($ac_try" in
20452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453   *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456   (eval "$ac_link") 2>&5
20457   ac_status=$?
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20460   { (case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_try") 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; }; then
20469   ac_cv_func_mmap_file=yes
20470 else
20471   echo "$as_me: program exited with status $ac_status" >&5
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475 ( exit $ac_status )
20476 ac_cv_func_mmap_file=no
20477 fi
20478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20479 fi
20480
20481
20482   ac_ext=c
20483 ac_cpp='$CPP $CPPFLAGS'
20484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20487
20488
20489 fi
20490 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20491 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20492 if test "$ac_cv_func_mmap_file" = yes; then
20493
20494 cat >>confdefs.h <<\_ACEOF
20495 #define HAVE_MMAP_FILE
20496 _ACEOF
20497
20498    MMAP_FILE=yes
20499
20500 fi
20501
20502   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20503 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20504 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20505   echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507   if test "$llvm_cv_os_type" = "Interix" ; then
20508    ac_cv_need_dev_zero_for_mmap=yes
20509  else
20510    ac_cv_need_dev_zero_for_mmap=no
20511  fi
20512
20513 fi
20514 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20515 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20516 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20517
20518 cat >>confdefs.h <<\_ACEOF
20519 #define NEED_DEV_ZERO_FOR_MMAP 1
20520 _ACEOF
20521
20522 fi
20523
20524   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20525   then
20526     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20527 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20528   fi
20529   if test "$ac_cv_func_mmap_file" = "no"
20530   then
20531     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20532 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20533   fi
20534 fi
20535
20536 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20537 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20538 ac_ext=cpp
20539 ac_cpp='$CXXCPP $CPPFLAGS'
20540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20543
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 int main() {
20551         volatile unsigned long val = 1;
20552         __sync_synchronize();
20553         __sync_val_compare_and_swap(&val, 1, 0);
20554         __sync_add_and_fetch(&val, 1);
20555         __sync_sub_and_fetch(&val, 1);
20556         return 0;
20557       }
20558
20559 _ACEOF
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564   *) ac_try_echo=$ac_try;;
20565 esac
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567   (eval "$ac_link") 2>conftest.er1
20568   ac_status=$?
20569   grep -v '^ *+' conftest.er1 >conftest.err
20570   rm -f conftest.er1
20571   cat conftest.err >&5
20572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573   (exit $ac_status); } &&
20574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575   { (case "(($ac_try" in
20576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577   *) ac_try_echo=$ac_try;;
20578 esac
20579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580   (eval "$ac_try") 2>&5
20581   ac_status=$?
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); }; } &&
20584          { ac_try='test -s conftest$ac_exeext'
20585   { (case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_try") 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; }; then
20594   ac_ext=c
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20599
20600   { echo "$as_me:$LINENO: result: yes" >&5
20601 echo "${ECHO_T}yes" >&6; }
20602
20603 cat >>confdefs.h <<\_ACEOF
20604 #define LLVM_HAS_ATOMICS 1
20605 _ACEOF
20606
20607 else
20608   echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611         { echo "$as_me:$LINENO: result: no" >&5
20612 echo "${ECHO_T}no" >&6; }
20613
20614 cat >>confdefs.h <<\_ACEOF
20615 #define LLVM_HAS_ATOMICS 0
20616 _ACEOF
20617
20618   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20619 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext \
20623       conftest$ac_exeext conftest.$ac_ext
20624
20625
20626 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20627   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20628 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20629 if test "${llvm_cv_linux_mixed+set}" = set; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632    ac_ext=c
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20637
20638   cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644 #ifndef __x86_64__
20645        error: Not x86-64 even if uname says so!
20646       #endif
20647
20648 int
20649 main ()
20650 {
20651
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_compile") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } &&
20670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20671   { (case "(($ac_try" in
20672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673   *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676   (eval "$ac_try") 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; } &&
20680          { ac_try='test -s conftest.$ac_objext'
20681   { (case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_try") 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   llvm_cv_linux_mixed=no
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20694
20695         llvm_cv_linux_mixed=yes
20696 fi
20697
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699   ac_ext=c
20700 ac_cpp='$CPP $CPPFLAGS'
20701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20704
20705
20706 fi
20707 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20708 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20709
20710   if test "$llvm_cv_linux_mixed" = "yes"; then
20711     llvm_cv_target_arch="x86"
20712     ARCH="x86"
20713   fi
20714 fi
20715
20716
20717 for ac_func in __dso_handle
20718 do
20719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20723   echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725   cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20733 #define $ac_func innocuous_$ac_func
20734
20735 /* System header to define __stub macros and hopefully few prototypes,
20736     which can conflict with char $ac_func (); below.
20737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20738     <limits.h> exists even on freestanding compilers.  */
20739
20740 #ifdef __STDC__
20741 # include <limits.h>
20742 #else
20743 # include <assert.h>
20744 #endif
20745
20746 #undef $ac_func
20747
20748 /* Override any GCC internal prototype to avoid an error.
20749    Use char because int might match the return type of a GCC
20750    builtin and then its argument prototype would still apply.  */
20751 #ifdef __cplusplus
20752 extern "C"
20753 #endif
20754 char $ac_func ();
20755 /* The GNU C library defines this for functions which it implements
20756     to always fail with ENOSYS.  Some functions are actually named
20757     something starting with __ and the normal name is an alias.  */
20758 #if defined __stub_$ac_func || defined __stub___$ac_func
20759 choke me
20760 #endif
20761
20762 int
20763 main ()
20764 {
20765 return $ac_func ();
20766   ;
20767   return 0;
20768 }
20769 _ACEOF
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774   *) ac_try_echo=$ac_try;;
20775 esac
20776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20777   (eval "$ac_link") 2>conftest.er1
20778   ac_status=$?
20779   grep -v '^ *+' conftest.er1 >conftest.err
20780   rm -f conftest.er1
20781   cat conftest.err >&5
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); } &&
20784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20785   { (case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790   (eval "$ac_try") 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; } &&
20794          { ac_try='test -s conftest$ac_exeext'
20795   { (case "(($ac_try" in
20796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797   *) ac_try_echo=$ac_try;;
20798 esac
20799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20800   (eval "$ac_try") 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; }; then
20804   eval "$as_ac_var=yes"
20805 else
20806   echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809         eval "$as_ac_var=no"
20810 fi
20811
20812 rm -f core conftest.err conftest.$ac_objext \
20813       conftest$ac_exeext conftest.$ac_ext
20814 fi
20815 ac_res=`eval echo '${'$as_ac_var'}'`
20816                { echo "$as_me:$LINENO: result: $ac_res" >&5
20817 echo "${ECHO_T}$ac_res" >&6; }
20818 if test `eval echo '${'$as_ac_var'}'` = yes; then
20819   cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20821 _ACEOF
20822
20823 fi
20824 done
20825
20826
20827 SHLIBEXT=$libltdl_cv_shlibext
20828
20829
20830 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20831
20832
20833 # Translate the various configuration directories and other basic
20834 # information into substitutions that will end up in Makefile.config.in
20835 # that these configured values can be used by the makefiles
20836 if test "${prefix}" = "NONE" ; then
20837   prefix="/usr/local"
20838 fi
20839 eval LLVM_PREFIX="${prefix}";
20840 eval LLVM_BINDIR="${prefix}/bin";
20841 eval LLVM_LIBDIR="${prefix}/lib";
20842 eval LLVM_DATADIR="${prefix}/share/llvm";
20843 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20844 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20845 eval LLVM_INCLUDEDIR="${prefix}/include";
20846 eval LLVM_INFODIR="${prefix}/info";
20847 eval LLVM_MANDIR="${prefix}/man";
20848 LLVM_CONFIGTIME=`date`
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860 # Place the various directores into the config.h file as #defines so that we
20861 # can know about the installation paths within LLVM.
20862
20863 cat >>confdefs.h <<_ACEOF
20864 #define LLVM_PREFIX "$LLVM_PREFIX"
20865 _ACEOF
20866
20867
20868 cat >>confdefs.h <<_ACEOF
20869 #define LLVM_BINDIR "$LLVM_BINDIR"
20870 _ACEOF
20871
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20875 _ACEOF
20876
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define LLVM_DATADIR "$LLVM_DATADIR"
20880 _ACEOF
20881
20882
20883 cat >>confdefs.h <<_ACEOF
20884 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20885 _ACEOF
20886
20887
20888 cat >>confdefs.h <<_ACEOF
20889 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20890 _ACEOF
20891
20892
20893 cat >>confdefs.h <<_ACEOF
20894 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20895 _ACEOF
20896
20897
20898 cat >>confdefs.h <<_ACEOF
20899 #define LLVM_INFODIR "$LLVM_INFODIR"
20900 _ACEOF
20901
20902
20903 cat >>confdefs.h <<_ACEOF
20904 #define LLVM_MANDIR "$LLVM_MANDIR"
20905 _ACEOF
20906
20907
20908 cat >>confdefs.h <<_ACEOF
20909 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20910 _ACEOF
20911
20912
20913 cat >>confdefs.h <<_ACEOF
20914 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20915 _ACEOF
20916
20917
20918 # Determine which bindings to build.
20919 if test "$BINDINGS_TO_BUILD" = auto ; then
20920   BINDINGS_TO_BUILD=""
20921   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20922     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20923   fi
20924 fi
20925 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20926
20927
20928 # This isn't really configurey, but it avoids having to repeat the list in
20929 # other files.
20930 ALL_BINDINGS=ocaml
20931
20932
20933 # Do any work necessary to ensure that bindings have what they need.
20934 binding_prereqs_failed=0
20935 for a_binding in $BINDINGS_TO_BUILD ; do
20936   case "$a_binding" in
20937   ocaml)
20938     if test "x$OCAMLC" = x ; then
20939       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20941       binding_prereqs_failed=1
20942     fi
20943     if test "x$OCAMLDEP" = x ; then
20944       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20946       binding_prereqs_failed=1
20947     fi
20948     if test "x$OCAMLOPT" = x ; then
20949       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20951           fi
20952     if test "x$with_ocaml_libdir" != xauto ; then
20953       OCAML_LIBDIR=$with_ocaml_libdir
20954
20955     else
20956       ocaml_stdlib="`"$OCAMLC" -where`"
20957       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20958       then
20959         # ocaml stdlib is beneath our prefix; use stdlib
20960         OCAML_LIBDIR=$ocaml_stdlib
20961
20962       else
20963         # ocaml stdlib is outside our prefix; use libdir/ocaml
20964         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20965
20966       fi
20967     fi
20968     ;;
20969   esac
20970 done
20971 if test "$binding_prereqs_failed" = 1 ; then
20972   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20973 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20974    { (exit 1); exit 1; }; }
20975 fi
20976
20977 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20978 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20979 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982    ac_ext=cpp
20983 ac_cpp='$CXXCPP $CPPFLAGS'
20984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20987
20988   oldcxxflags="$CXXFLAGS"
20989   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden -Werror"
20990   cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20997 int
20998 main ()
20999 {
21000 X<int>().f();
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_compile") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } &&
21019          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21020   { (case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_try") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_try") 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }; then
21039   llvm_cv_cxx_visibility_inlines_hidden=yes
21040 else
21041   echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044         llvm_cv_cxx_visibility_inlines_hidden=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048   CXXFLAGS="$oldcxxflags"
21049   ac_ext=c
21050 ac_cpp='$CPP $CPPFLAGS'
21051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21054
21055
21056 fi
21057 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21058 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21059 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21060   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21061
21062 else
21063   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21064
21065 fi
21066
21067
21068 if test "$llvm_cv_link_use_r" = "yes" ; then
21069   RPATH="-Wl,-R"
21070 else
21071   RPATH="-Wl,-rpath"
21072 fi
21073
21074
21075 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21076   RDYNAMIC="-Wl,-export-dynamic"
21077 else
21078   RDYNAMIC=""
21079 fi
21080
21081
21082
21083 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21084
21085
21086
21087
21088
21089
21090 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21091
21092 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21093
21094 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21095
21096 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21097
21098 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21099
21100
21101 ac_config_files="$ac_config_files Makefile.config"
21102
21103
21104 ac_config_files="$ac_config_files llvm.spec"
21105
21106
21107 ac_config_files="$ac_config_files docs/doxygen.cfg"
21108
21109 if test -f ${srcdir}/tools/clang/README.txt; then
21110   ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21111
21112 fi
21113
21114 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21115
21116
21117 ac_config_commands="$ac_config_commands setup"
21118
21119 ac_config_commands="$ac_config_commands Makefile"
21120
21121
21122 ac_config_commands="$ac_config_commands Makefile.common"
21123
21124
21125 ac_config_commands="$ac_config_commands examples/Makefile"
21126
21127
21128 ac_config_commands="$ac_config_commands lib/Makefile"
21129
21130
21131 ac_config_commands="$ac_config_commands runtime/Makefile"
21132
21133
21134 ac_config_commands="$ac_config_commands test/Makefile"
21135
21136
21137 ac_config_commands="$ac_config_commands test/Makefile.tests"
21138
21139
21140 ac_config_commands="$ac_config_commands unittests/Makefile"
21141
21142
21143 ac_config_commands="$ac_config_commands tools/Makefile"
21144
21145
21146 ac_config_commands="$ac_config_commands utils/Makefile"
21147
21148
21149 ac_config_commands="$ac_config_commands projects/Makefile"
21150
21151
21152 ac_config_commands="$ac_config_commands bindings/Makefile"
21153
21154
21155 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21156
21157
21158
21159 cat >confcache <<\_ACEOF
21160 # This file is a shell script that caches the results of configure
21161 # tests run on this system so they can be shared between configure
21162 # scripts and configure runs, see configure's option --config-cache.
21163 # It is not useful on other systems.  If it contains results you don't
21164 # want to keep, you may remove or edit it.
21165 #
21166 # config.status only pays attention to the cache file if you give it
21167 # the --recheck option to rerun configure.
21168 #
21169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21171 # following values.
21172
21173 _ACEOF
21174
21175 # The following way of writing the cache mishandles newlines in values,
21176 # but we know of no workaround that is simple, portable, and efficient.
21177 # So, we kill variables containing newlines.
21178 # Ultrix sh set writes to stderr and can't be redirected directly,
21179 # and sets the high bit in the cache file unless we assign to the vars.
21180 (
21181   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21182     eval ac_val=\$$ac_var
21183     case $ac_val in #(
21184     *${as_nl}*)
21185       case $ac_var in #(
21186       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21187 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21188       esac
21189       case $ac_var in #(
21190       _ | IFS | as_nl) ;; #(
21191       *) $as_unset $ac_var ;;
21192       esac ;;
21193     esac
21194   done
21195
21196   (set) 2>&1 |
21197     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21198     *${as_nl}ac_space=\ *)
21199       # `set' does not quote correctly, so add quotes (double-quote
21200       # substitution turns \\\\ into \\, and sed turns \\ into \).
21201       sed -n \
21202         "s/'/'\\\\''/g;
21203           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21204       ;; #(
21205     *)
21206       # `set' quotes correctly as required by POSIX, so do not add quotes.
21207       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21208       ;;
21209     esac |
21210     sort
21211 ) |
21212   sed '
21213      /^ac_cv_env_/b end
21214      t clear
21215      :clear
21216      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21217      t end
21218      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21219      :end' >>confcache
21220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21221   if test -w "$cache_file"; then
21222     test "x$cache_file" != "x/dev/null" &&
21223       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21224 echo "$as_me: updating cache $cache_file" >&6;}
21225     cat confcache >$cache_file
21226   else
21227     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21228 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21229   fi
21230 fi
21231 rm -f confcache
21232
21233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21234 # Let make expand exec_prefix.
21235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21236
21237 DEFS=-DHAVE_CONFIG_H
21238
21239 ac_libobjs=
21240 ac_ltlibobjs=
21241 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21242   # 1. Remove the extension, and $U if already installed.
21243   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21244   ac_i=`echo "$ac_i" | sed "$ac_script"`
21245   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21246   #    will be set to the directory where LIBOBJS objects are built.
21247   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21248   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21249 done
21250 LIBOBJS=$ac_libobjs
21251
21252 LTLIBOBJS=$ac_ltlibobjs
21253
21254
21255 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21256   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21257 Usually this means the macro was only invoked conditionally." >&5
21258 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21259 Usually this means the macro was only invoked conditionally." >&2;}
21260    { (exit 1); exit 1; }; }
21261 fi
21262 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21263   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21264 Usually this means the macro was only invoked conditionally." >&5
21265 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21266 Usually this means the macro was only invoked conditionally." >&2;}
21267    { (exit 1); exit 1; }; }
21268 fi
21269
21270 : ${CONFIG_STATUS=./config.status}
21271 ac_clean_files_save=$ac_clean_files
21272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21273 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21274 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21275 cat >$CONFIG_STATUS <<_ACEOF
21276 #! $SHELL
21277 # Generated by $as_me.
21278 # Run this file to recreate the current configuration.
21279 # Compiler output produced by configure, useful for debugging
21280 # configure, is in config.log if it exists.
21281
21282 debug=false
21283 ac_cs_recheck=false
21284 ac_cs_silent=false
21285 SHELL=\${CONFIG_SHELL-$SHELL}
21286 _ACEOF
21287
21288 cat >>$CONFIG_STATUS <<\_ACEOF
21289 ## --------------------- ##
21290 ## M4sh Initialization.  ##
21291 ## --------------------- ##
21292
21293 # Be Bourne compatible
21294 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21295   emulate sh
21296   NULLCMD=:
21297   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21298   # is contrary to our usage.  Disable this feature.
21299   alias -g '${1+"$@"}'='"$@"'
21300   setopt NO_GLOB_SUBST
21301 else
21302   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21303 fi
21304 BIN_SH=xpg4; export BIN_SH # for Tru64
21305 DUALCASE=1; export DUALCASE # for MKS sh
21306
21307
21308 # PATH needs CR
21309 # Avoid depending upon Character Ranges.
21310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21313 as_cr_digits='0123456789'
21314 as_cr_alnum=$as_cr_Letters$as_cr_digits
21315
21316 # The user is always right.
21317 if test "${PATH_SEPARATOR+set}" != set; then
21318   echo "#! /bin/sh" >conf$$.sh
21319   echo  "exit 0"   >>conf$$.sh
21320   chmod +x conf$$.sh
21321   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21322     PATH_SEPARATOR=';'
21323   else
21324     PATH_SEPARATOR=:
21325   fi
21326   rm -f conf$$.sh
21327 fi
21328
21329 # Support unset when possible.
21330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21331   as_unset=unset
21332 else
21333   as_unset=false
21334 fi
21335
21336
21337 # IFS
21338 # We need space, tab and new line, in precisely that order.  Quoting is
21339 # there to prevent editors from complaining about space-tab.
21340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21341 # splitting by setting IFS to empty value.)
21342 as_nl='
21343 '
21344 IFS=" ""        $as_nl"
21345
21346 # Find who we are.  Look in the path if we contain no directory separator.
21347 case $0 in
21348   *[\\/]* ) as_myself=$0 ;;
21349   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21351 do
21352   IFS=$as_save_IFS
21353   test -z "$as_dir" && as_dir=.
21354   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21355 done
21356 IFS=$as_save_IFS
21357
21358      ;;
21359 esac
21360 # We did not find ourselves, most probably we were run as `sh COMMAND'
21361 # in which case we are not to be found in the path.
21362 if test "x$as_myself" = x; then
21363   as_myself=$0
21364 fi
21365 if test ! -f "$as_myself"; then
21366   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21367   { (exit 1); exit 1; }
21368 fi
21369
21370 # Work around bugs in pre-3.0 UWIN ksh.
21371 for as_var in ENV MAIL MAILPATH
21372 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21373 done
21374 PS1='$ '
21375 PS2='> '
21376 PS4='+ '
21377
21378 # NLS nuisances.
21379 for as_var in \
21380   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21381   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21382   LC_TELEPHONE LC_TIME
21383 do
21384   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21385     eval $as_var=C; export $as_var
21386   else
21387     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21388   fi
21389 done
21390
21391 # Required to use basename.
21392 if expr a : '\(a\)' >/dev/null 2>&1 &&
21393    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21394   as_expr=expr
21395 else
21396   as_expr=false
21397 fi
21398
21399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21400   as_basename=basename
21401 else
21402   as_basename=false
21403 fi
21404
21405
21406 # Name of the executable.
21407 as_me=`$as_basename -- "$0" ||
21408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21409          X"$0" : 'X\(//\)$' \| \
21410          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21411 echo X/"$0" |
21412     sed '/^.*\/\([^/][^/]*\)\/*$/{
21413             s//\1/
21414             q
21415           }
21416           /^X\/\(\/\/\)$/{
21417             s//\1/
21418             q
21419           }
21420           /^X\/\(\/\).*/{
21421             s//\1/
21422             q
21423           }
21424           s/.*/./; q'`
21425
21426 # CDPATH.
21427 $as_unset CDPATH
21428
21429
21430
21431   as_lineno_1=$LINENO
21432   as_lineno_2=$LINENO
21433   test "x$as_lineno_1" != "x$as_lineno_2" &&
21434   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21435
21436   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21437   # uniformly replaced by the line number.  The first 'sed' inserts a
21438   # line-number line after each line using $LINENO; the second 'sed'
21439   # does the real work.  The second script uses 'N' to pair each
21440   # line-number line with the line containing $LINENO, and appends
21441   # trailing '-' during substitution so that $LINENO is not a special
21442   # case at line end.
21443   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21444   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21445   # E. McMahon (1931-1989) for sed's syntax.  :-)
21446   sed -n '
21447     p
21448     /[$]LINENO/=
21449   ' <$as_myself |
21450     sed '
21451       s/[$]LINENO.*/&-/
21452       t lineno
21453       b
21454       :lineno
21455       N
21456       :loop
21457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21458       t loop
21459       s/-\n.*//
21460     ' >$as_me.lineno &&
21461   chmod +x "$as_me.lineno" ||
21462     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21463    { (exit 1); exit 1; }; }
21464
21465   # Don't try to exec as it changes $[0], causing all sort of problems
21466   # (the dirname of $[0] is not the place where we might find the
21467   # original and so on.  Autoconf is especially sensitive to this).
21468   . "./$as_me.lineno"
21469   # Exit status is that of the last command.
21470   exit
21471 }
21472
21473
21474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21475   as_dirname=dirname
21476 else
21477   as_dirname=false
21478 fi
21479
21480 ECHO_C= ECHO_N= ECHO_T=
21481 case `echo -n x` in
21482 -n*)
21483   case `echo 'x\c'` in
21484   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21485   *)   ECHO_C='\c';;
21486   esac;;
21487 *)
21488   ECHO_N='-n';;
21489 esac
21490
21491 if expr a : '\(a\)' >/dev/null 2>&1 &&
21492    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21493   as_expr=expr
21494 else
21495   as_expr=false
21496 fi
21497
21498 rm -f conf$$ conf$$.exe conf$$.file
21499 if test -d conf$$.dir; then
21500   rm -f conf$$.dir/conf$$.file
21501 else
21502   rm -f conf$$.dir
21503   mkdir conf$$.dir
21504 fi
21505 echo >conf$$.file
21506 if ln -s conf$$.file conf$$ 2>/dev/null; then
21507   as_ln_s='ln -s'
21508   # ... but there are two gotchas:
21509   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21510   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21511   # In both cases, we have to default to `cp -p'.
21512   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21513     as_ln_s='cp -p'
21514 elif ln conf$$.file conf$$ 2>/dev/null; then
21515   as_ln_s=ln
21516 else
21517   as_ln_s='cp -p'
21518 fi
21519 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21520 rmdir conf$$.dir 2>/dev/null
21521
21522 if mkdir -p . 2>/dev/null; then
21523   as_mkdir_p=:
21524 else
21525   test -d ./-p && rmdir ./-p
21526   as_mkdir_p=false
21527 fi
21528
21529 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21530 # systems may use methods other than mode bits to determine executability.
21531 cat >conf$$.file <<_ASEOF
21532 #! /bin/sh
21533 exit 0
21534 _ASEOF
21535 chmod +x conf$$.file
21536 if test -x conf$$.file >/dev/null 2>&1; then
21537   as_executable_p="test -x"
21538 else
21539   as_executable_p=:
21540 fi
21541 rm -f conf$$.file
21542
21543 # Sed expression to map a string onto a valid CPP name.
21544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21545
21546 # Sed expression to map a string onto a valid variable name.
21547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21548
21549
21550 exec 6>&1
21551
21552 # Save the log message, to keep $[0] and so on meaningful, and to
21553 # report actual input values of CONFIG_FILES etc. instead of their
21554 # values after options handling.
21555 ac_log="
21556 This file was extended by LLVM $as_me 3.1svn, which was
21557 generated by GNU Autoconf 2.60.  Invocation command line was
21558
21559   CONFIG_FILES    = $CONFIG_FILES
21560   CONFIG_HEADERS  = $CONFIG_HEADERS
21561   CONFIG_LINKS    = $CONFIG_LINKS
21562   CONFIG_COMMANDS = $CONFIG_COMMANDS
21563   $ $0 $@
21564
21565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21566 "
21567
21568 _ACEOF
21569
21570 cat >>$CONFIG_STATUS <<_ACEOF
21571 # Files that config.status was made for.
21572 config_files="$ac_config_files"
21573 config_headers="$ac_config_headers"
21574 config_commands="$ac_config_commands"
21575
21576 _ACEOF
21577
21578 cat >>$CONFIG_STATUS <<\_ACEOF
21579 ac_cs_usage="\
21580 \`$as_me' instantiates files from templates according to the
21581 current configuration.
21582
21583 Usage: $0 [OPTIONS] [FILE]...
21584
21585   -h, --help       print this help, then exit
21586   -V, --version    print version number, then exit
21587   -q, --quiet      do not print progress messages
21588   -d, --debug      don't remove temporary files
21589       --recheck    update $as_me by reconfiguring in the same conditions
21590   --file=FILE[:TEMPLATE]
21591                    instantiate the configuration file FILE
21592   --header=FILE[:TEMPLATE]
21593                    instantiate the configuration header FILE
21594
21595 Configuration files:
21596 $config_files
21597
21598 Configuration headers:
21599 $config_headers
21600
21601 Configuration commands:
21602 $config_commands
21603
21604 Report bugs to <bug-autoconf@gnu.org>."
21605
21606 _ACEOF
21607 cat >>$CONFIG_STATUS <<_ACEOF
21608 ac_cs_version="\\
21609 LLVM config.status 3.1svn
21610 configured by $0, generated by GNU Autoconf 2.60,
21611   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21612
21613 Copyright (C) 2006 Free Software Foundation, Inc.
21614 This config.status script is free software; the Free Software Foundation
21615 gives unlimited permission to copy, distribute and modify it."
21616
21617 ac_pwd='$ac_pwd'
21618 srcdir='$srcdir'
21619 INSTALL='$INSTALL'
21620 _ACEOF
21621
21622 cat >>$CONFIG_STATUS <<\_ACEOF
21623 # If no file are specified by the user, then we need to provide default
21624 # value.  By we need to know if files were specified by the user.
21625 ac_need_defaults=:
21626 while test $# != 0
21627 do
21628   case $1 in
21629   --*=*)
21630     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21631     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21632     ac_shift=:
21633     ;;
21634   *)
21635     ac_option=$1
21636     ac_optarg=$2
21637     ac_shift=shift
21638     ;;
21639   esac
21640
21641   case $ac_option in
21642   # Handling of the options.
21643   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21644     ac_cs_recheck=: ;;
21645   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21646     echo "$ac_cs_version"; exit ;;
21647   --debug | --debu | --deb | --de | --d | -d )
21648     debug=: ;;
21649   --file | --fil | --fi | --f )
21650     $ac_shift
21651     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21652     ac_need_defaults=false;;
21653   --header | --heade | --head | --hea )
21654     $ac_shift
21655     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21656     ac_need_defaults=false;;
21657   --he | --h)
21658     # Conflict between --help and --header
21659     { echo "$as_me: error: ambiguous option: $1
21660 Try \`$0 --help' for more information." >&2
21661    { (exit 1); exit 1; }; };;
21662   --help | --hel | -h )
21663     echo "$ac_cs_usage"; exit ;;
21664   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21665   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21666     ac_cs_silent=: ;;
21667
21668   # This is an error.
21669   -*) { echo "$as_me: error: unrecognized option: $1
21670 Try \`$0 --help' for more information." >&2
21671    { (exit 1); exit 1; }; } ;;
21672
21673   *) ac_config_targets="$ac_config_targets $1"
21674      ac_need_defaults=false ;;
21675
21676   esac
21677   shift
21678 done
21679
21680 ac_configure_extra_args=
21681
21682 if $ac_cs_silent; then
21683   exec 6>/dev/null
21684   ac_configure_extra_args="$ac_configure_extra_args --silent"
21685 fi
21686
21687 _ACEOF
21688 cat >>$CONFIG_STATUS <<_ACEOF
21689 if \$ac_cs_recheck; then
21690   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21691   CONFIG_SHELL=$SHELL
21692   export CONFIG_SHELL
21693   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21694 fi
21695
21696 _ACEOF
21697 cat >>$CONFIG_STATUS <<\_ACEOF
21698 exec 5>>config.log
21699 {
21700   echo
21701   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21702 ## Running $as_me. ##
21703 _ASBOX
21704   echo "$ac_log"
21705 } >&5
21706
21707 _ACEOF
21708 cat >>$CONFIG_STATUS <<_ACEOF
21709 #
21710 # INIT-COMMANDS
21711 #
21712 llvm_src="${srcdir}"
21713
21714 _ACEOF
21715
21716 cat >>$CONFIG_STATUS <<\_ACEOF
21717
21718 # Handling of arguments.
21719 for ac_config_target in $ac_config_targets
21720 do
21721   case $ac_config_target in
21722     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21723     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21724     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21725     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21726     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21727     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21728     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21729     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21730     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21731     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21732     "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21733     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21734     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21735     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21736     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21737     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21738     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21739     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21740     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21741     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21742     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21743     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21744     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21745     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21746     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21747     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21748
21749   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21751    { (exit 1); exit 1; }; };;
21752   esac
21753 done
21754
21755
21756 # If the user did not use the arguments to specify the items to instantiate,
21757 # then the envvar interface is used.  Set only those that are not.
21758 # We use the long form for the default assignment because of an extremely
21759 # bizarre bug on SunOS 4.1.3.
21760 if $ac_need_defaults; then
21761   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21762   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21763   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21764 fi
21765
21766 # Have a temporary directory for convenience.  Make it in the build tree
21767 # simply because there is no reason against having it here, and in addition,
21768 # creating and moving files from /tmp can sometimes cause problems.
21769 # Hook for its removal unless debugging.
21770 # Note that there is a small window in which the directory will not be cleaned:
21771 # after its creation but before its name has been assigned to `$tmp'.
21772 $debug ||
21773 {
21774   tmp=
21775   trap 'exit_status=$?
21776   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21777 ' 0
21778   trap '{ (exit 1); exit 1; }' 1 2 13 15
21779 }
21780 # Create a (secure) tmp directory for tmp files.
21781
21782 {
21783   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21784   test -n "$tmp" && test -d "$tmp"
21785 }  ||
21786 {
21787   tmp=./conf$$-$RANDOM
21788   (umask 077 && mkdir "$tmp")
21789 } ||
21790 {
21791    echo "$me: cannot create a temporary directory in ." >&2
21792    { (exit 1); exit 1; }
21793 }
21794
21795 #
21796 # Set up the sed scripts for CONFIG_FILES section.
21797 #
21798
21799 # No need to generate the scripts if there are no CONFIG_FILES.
21800 # This happens for instance when ./config.status config.h
21801 if test -n "$CONFIG_FILES"; then
21802
21803 _ACEOF
21804
21805
21806
21807 ac_delim='%!_!# '
21808 for ac_last_try in false false false false false :; do
21809   cat >conf$$subs.sed <<_ACEOF
21810 SHELL!$SHELL$ac_delim
21811 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21812 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21813 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21814 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21815 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21816 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21817 exec_prefix!$exec_prefix$ac_delim
21818 prefix!$prefix$ac_delim
21819 program_transform_name!$program_transform_name$ac_delim
21820 bindir!$bindir$ac_delim
21821 sbindir!$sbindir$ac_delim
21822 libexecdir!$libexecdir$ac_delim
21823 datarootdir!$datarootdir$ac_delim
21824 datadir!$datadir$ac_delim
21825 sysconfdir!$sysconfdir$ac_delim
21826 sharedstatedir!$sharedstatedir$ac_delim
21827 localstatedir!$localstatedir$ac_delim
21828 includedir!$includedir$ac_delim
21829 oldincludedir!$oldincludedir$ac_delim
21830 docdir!$docdir$ac_delim
21831 infodir!$infodir$ac_delim
21832 htmldir!$htmldir$ac_delim
21833 dvidir!$dvidir$ac_delim
21834 pdfdir!$pdfdir$ac_delim
21835 psdir!$psdir$ac_delim
21836 libdir!$libdir$ac_delim
21837 localedir!$localedir$ac_delim
21838 mandir!$mandir$ac_delim
21839 DEFS!$DEFS$ac_delim
21840 ECHO_C!$ECHO_C$ac_delim
21841 ECHO_N!$ECHO_N$ac_delim
21842 ECHO_T!$ECHO_T$ac_delim
21843 LIBS!$LIBS$ac_delim
21844 build_alias!$build_alias$ac_delim
21845 host_alias!$host_alias$ac_delim
21846 target_alias!$target_alias$ac_delim
21847 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21848 CC!$CC$ac_delim
21849 CFLAGS!$CFLAGS$ac_delim
21850 LDFLAGS!$LDFLAGS$ac_delim
21851 CPPFLAGS!$CPPFLAGS$ac_delim
21852 ac_ct_CC!$ac_ct_CC$ac_delim
21853 EXEEXT!$EXEEXT$ac_delim
21854 OBJEXT!$OBJEXT$ac_delim
21855 CXX!$CXX$ac_delim
21856 CXXFLAGS!$CXXFLAGS$ac_delim
21857 ac_ct_CXX!$ac_ct_CXX$ac_delim
21858 CPP!$CPP$ac_delim
21859 subdirs!$subdirs$ac_delim
21860 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21861 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21862 build!$build$ac_delim
21863 build_cpu!$build_cpu$ac_delim
21864 build_vendor!$build_vendor$ac_delim
21865 build_os!$build_os$ac_delim
21866 host!$host$ac_delim
21867 host_cpu!$host_cpu$ac_delim
21868 host_vendor!$host_vendor$ac_delim
21869 host_os!$host_os$ac_delim
21870 target!$target$ac_delim
21871 target_cpu!$target_cpu$ac_delim
21872 target_vendor!$target_vendor$ac_delim
21873 target_os!$target_os$ac_delim
21874 OS!$OS$ac_delim
21875 HOST_OS!$HOST_OS$ac_delim
21876 TARGET_OS!$TARGET_OS$ac_delim
21877 LINKALL!$LINKALL$ac_delim
21878 NOLINKALL!$NOLINKALL$ac_delim
21879 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21880 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21881 ARCH!$ARCH$ac_delim
21882 ENDIAN!$ENDIAN$ac_delim
21883 GREP!$GREP$ac_delim
21884 EGREP!$EGREP$ac_delim
21885 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21886 BUILD_CC!$BUILD_CC$ac_delim
21887 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21888 BUILD_CXX!$BUILD_CXX$ac_delim
21889 CVSBUILD!$CVSBUILD$ac_delim
21890 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21891 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21892 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21893 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21894 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21895 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21896 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21897 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21898 JIT!$JIT$ac_delim
21899 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21900 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21901 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21902 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
21903 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21904 ENABLE_PIC!$ENABLE_PIC$ac_delim
21905 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21906 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21907 _ACEOF
21908
21909   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21910     break
21911   elif $ac_last_try; then
21912     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21914    { (exit 1); exit 1; }; }
21915   else
21916     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21917   fi
21918 done
21919
21920 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21921 if test -n "$ac_eof"; then
21922   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21923   ac_eof=`expr $ac_eof + 1`
21924 fi
21925
21926 cat >>$CONFIG_STATUS <<_ACEOF
21927 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21929 _ACEOF
21930 sed '
21931 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21932 s/^/s,@/; s/!/@,|#_!!_#|/
21933 :n
21934 t n
21935 s/'"$ac_delim"'$/,g/; t
21936 s/$/\\/; p
21937 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21938 ' >>$CONFIG_STATUS <conf$$subs.sed
21939 rm -f conf$$subs.sed
21940 cat >>$CONFIG_STATUS <<_ACEOF
21941 CEOF$ac_eof
21942 _ACEOF
21943
21944
21945 ac_delim='%!_!# '
21946 for ac_last_try in false false false false false :; do
21947   cat >conf$$subs.sed <<_ACEOF
21948 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21949 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21950 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21951 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21952 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21953 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21954 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21955 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21956 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21957 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21958 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
21959 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21960 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
21961 NM!$NM$ac_delim
21962 ifGNUmake!$ifGNUmake$ac_delim
21963 LN_S!$LN_S$ac_delim
21964 CMP!$CMP$ac_delim
21965 CP!$CP$ac_delim
21966 DATE!$DATE$ac_delim
21967 FIND!$FIND$ac_delim
21968 MKDIR!$MKDIR$ac_delim
21969 MV!$MV$ac_delim
21970 RANLIB!$RANLIB$ac_delim
21971 AR!$AR$ac_delim
21972 RM!$RM$ac_delim
21973 SED!$SED$ac_delim
21974 TAR!$TAR$ac_delim
21975 BINPWD!$BINPWD$ac_delim
21976 GRAPHVIZ!$GRAPHVIZ$ac_delim
21977 DOT!$DOT$ac_delim
21978 FDP!$FDP$ac_delim
21979 NEATO!$NEATO$ac_delim
21980 TWOPI!$TWOPI$ac_delim
21981 CIRCO!$CIRCO$ac_delim
21982 GV!$GV$ac_delim
21983 DOTTY!$DOTTY$ac_delim
21984 XDOT_PY!$XDOT_PY$ac_delim
21985 PERL!$PERL$ac_delim
21986 HAVE_PERL!$HAVE_PERL$ac_delim
21987 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21988 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21989 INSTALL_DATA!$INSTALL_DATA$ac_delim
21990 BZIP2!$BZIP2$ac_delim
21991 CAT!$CAT$ac_delim
21992 DOXYGEN!$DOXYGEN$ac_delim
21993 GROFF!$GROFF$ac_delim
21994 GZIPBIN!$GZIPBIN$ac_delim
21995 POD2HTML!$POD2HTML$ac_delim
21996 POD2MAN!$POD2MAN$ac_delim
21997 PDFROFF!$PDFROFF$ac_delim
21998 RUNTEST!$RUNTEST$ac_delim
21999 TCLSH!$TCLSH$ac_delim
22000 ZIP!$ZIP$ac_delim
22001 OCAMLC!$OCAMLC$ac_delim
22002 OCAMLOPT!$OCAMLOPT$ac_delim
22003 OCAMLDEP!$OCAMLDEP$ac_delim
22004 OCAMLDOC!$OCAMLDOC$ac_delim
22005 GAS!$GAS$ac_delim
22006 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22007 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22008 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22009 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22010 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22011 LIBADD_DL!$LIBADD_DL$ac_delim
22012 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22013 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22014 USE_UDIS86!$USE_UDIS86$ac_delim
22015 USE_OPROFILE!$USE_OPROFILE$ac_delim
22016 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22017 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22018 MMAP_FILE!$MMAP_FILE$ac_delim
22019 SHLIBEXT!$SHLIBEXT$ac_delim
22020 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22021 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22022 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22023 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22024 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22025 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22026 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22027 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22028 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22029 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22030 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22031 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22032 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22033 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22034 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22035 RPATH!$RPATH$ac_delim
22036 RDYNAMIC!$RDYNAMIC$ac_delim
22037 LIBOBJS!$LIBOBJS$ac_delim
22038 LTLIBOBJS!$LTLIBOBJS$ac_delim
22039 _ACEOF
22040
22041   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
22042     break
22043   elif $ac_last_try; then
22044     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22045 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22046    { (exit 1); exit 1; }; }
22047   else
22048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22049   fi
22050 done
22051
22052 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22053 if test -n "$ac_eof"; then
22054   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22055   ac_eof=`expr $ac_eof + 1`
22056 fi
22057
22058 cat >>$CONFIG_STATUS <<_ACEOF
22059 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22061 _ACEOF
22062 sed '
22063 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22064 s/^/s,@/; s/!/@,|#_!!_#|/
22065 :n
22066 t n
22067 s/'"$ac_delim"'$/,g/; t
22068 s/$/\\/; p
22069 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22070 ' >>$CONFIG_STATUS <conf$$subs.sed
22071 rm -f conf$$subs.sed
22072 cat >>$CONFIG_STATUS <<_ACEOF
22073 :end
22074 s/|#_!!_#|//g
22075 CEOF$ac_eof
22076 _ACEOF
22077
22078
22079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22081 # trailing colons and then remove the whole line if VPATH becomes empty
22082 # (actually we leave an empty line to preserve line numbers).
22083 if test "x$srcdir" = x.; then
22084   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22085 s/:*\$(srcdir):*/:/
22086 s/:*\${srcdir}:*/:/
22087 s/:*@srcdir@:*/:/
22088 s/^\([^=]*=[     ]*\):*/\1/
22089 s/:*$//
22090 s/^[^=]*=[       ]*$//
22091 }'
22092 fi
22093
22094 cat >>$CONFIG_STATUS <<\_ACEOF
22095 fi # test -n "$CONFIG_FILES"
22096
22097
22098 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22099 do
22100   case $ac_tag in
22101   :[FHLC]) ac_mode=$ac_tag; continue;;
22102   esac
22103   case $ac_mode$ac_tag in
22104   :[FHL]*:*);;
22105   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22106 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22107    { (exit 1); exit 1; }; };;
22108   :[FH]-) ac_tag=-:-;;
22109   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22110   esac
22111   ac_save_IFS=$IFS
22112   IFS=:
22113   set x $ac_tag
22114   IFS=$ac_save_IFS
22115   shift
22116   ac_file=$1
22117   shift
22118
22119   case $ac_mode in
22120   :L) ac_source=$1;;
22121   :[FH])
22122     ac_file_inputs=
22123     for ac_f
22124     do
22125       case $ac_f in
22126       -) ac_f="$tmp/stdin";;
22127       *) # Look for the file first in the build tree, then in the source tree
22128          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22129          # because $ac_f cannot contain `:'.
22130          test -f "$ac_f" ||
22131            case $ac_f in
22132            [\\/$]*) false;;
22133            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22134            esac ||
22135            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22136 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22137    { (exit 1); exit 1; }; };;
22138       esac
22139       ac_file_inputs="$ac_file_inputs $ac_f"
22140     done
22141
22142     # Let's still pretend it is `configure' which instantiates (i.e., don't
22143     # use $as_me), people would be surprised to read:
22144     #    /* config.h.  Generated by config.status.  */
22145     configure_input="Generated from "`IFS=:
22146           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22147     if test x"$ac_file" != x-; then
22148       configure_input="$ac_file.  $configure_input"
22149       { echo "$as_me:$LINENO: creating $ac_file" >&5
22150 echo "$as_me: creating $ac_file" >&6;}
22151     fi
22152
22153     case $ac_tag in
22154     *:-:* | *:-) cat >"$tmp/stdin";;
22155     esac
22156     ;;
22157   esac
22158
22159   ac_dir=`$as_dirname -- "$ac_file" ||
22160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22161          X"$ac_file" : 'X\(//\)[^/]' \| \
22162          X"$ac_file" : 'X\(//\)$' \| \
22163          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22164 echo X"$ac_file" |
22165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22166             s//\1/
22167             q
22168           }
22169           /^X\(\/\/\)[^/].*/{
22170             s//\1/
22171             q
22172           }
22173           /^X\(\/\/\)$/{
22174             s//\1/
22175             q
22176           }
22177           /^X\(\/\).*/{
22178             s//\1/
22179             q
22180           }
22181           s/.*/./; q'`
22182   { as_dir="$ac_dir"
22183   case $as_dir in #(
22184   -*) as_dir=./$as_dir;;
22185   esac
22186   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22187     as_dirs=
22188     while :; do
22189       case $as_dir in #(
22190       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22191       *) as_qdir=$as_dir;;
22192       esac
22193       as_dirs="'$as_qdir' $as_dirs"
22194       as_dir=`$as_dirname -- "$as_dir" ||
22195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22196          X"$as_dir" : 'X\(//\)[^/]' \| \
22197          X"$as_dir" : 'X\(//\)$' \| \
22198          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22199 echo X"$as_dir" |
22200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22201             s//\1/
22202             q
22203           }
22204           /^X\(\/\/\)[^/].*/{
22205             s//\1/
22206             q
22207           }
22208           /^X\(\/\/\)$/{
22209             s//\1/
22210             q
22211           }
22212           /^X\(\/\).*/{
22213             s//\1/
22214             q
22215           }
22216           s/.*/./; q'`
22217       test -d "$as_dir" && break
22218     done
22219     test -z "$as_dirs" || eval "mkdir $as_dirs"
22220   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22222    { (exit 1); exit 1; }; }; }
22223   ac_builddir=.
22224
22225 case "$ac_dir" in
22226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22227 *)
22228   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22229   # A ".." for each directory in $ac_dir_suffix.
22230   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22231   case $ac_top_builddir_sub in
22232   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22233   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22234   esac ;;
22235 esac
22236 ac_abs_top_builddir=$ac_pwd
22237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22238 # for backward compatibility:
22239 ac_top_builddir=$ac_top_build_prefix
22240
22241 case $srcdir in
22242   .)  # We are building in place.
22243     ac_srcdir=.
22244     ac_top_srcdir=$ac_top_builddir_sub
22245     ac_abs_top_srcdir=$ac_pwd ;;
22246   [\\/]* | ?:[\\/]* )  # Absolute name.
22247     ac_srcdir=$srcdir$ac_dir_suffix;
22248     ac_top_srcdir=$srcdir
22249     ac_abs_top_srcdir=$srcdir ;;
22250   *) # Relative name.
22251     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22252     ac_top_srcdir=$ac_top_build_prefix$srcdir
22253     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22254 esac
22255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22256
22257
22258   case $ac_mode in
22259   :F)
22260   #
22261   # CONFIG_FILE
22262   #
22263
22264   case $INSTALL in
22265   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22266   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22267   esac
22268 _ACEOF
22269
22270 cat >>$CONFIG_STATUS <<\_ACEOF
22271 # If the template does not know about datarootdir, expand it.
22272 # FIXME: This hack should be removed a few years after 2.60.
22273 ac_datarootdir_hack=; ac_datarootdir_seen=
22274
22275 case `sed -n '/datarootdir/ {
22276   p
22277   q
22278 }
22279 /@datadir@/p
22280 /@docdir@/p
22281 /@infodir@/p
22282 /@localedir@/p
22283 /@mandir@/p
22284 ' $ac_file_inputs` in
22285 *datarootdir*) ac_datarootdir_seen=yes;;
22286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22287   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22288 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<_ACEOF
22291   ac_datarootdir_hack='
22292   s&@datadir@&$datadir&g
22293   s&@docdir@&$docdir&g
22294   s&@infodir@&$infodir&g
22295   s&@localedir@&$localedir&g
22296   s&@mandir@&$mandir&g
22297     s&\\\${datarootdir}&$datarootdir&g' ;;
22298 esac
22299 _ACEOF
22300
22301 # Neutralize VPATH when `$srcdir' = `.'.
22302 # Shell code in configure.ac might set extrasub.
22303 # FIXME: do we really want to maintain this feature?
22304 cat >>$CONFIG_STATUS <<_ACEOF
22305   sed "$ac_vpsub
22306 $extrasub
22307 _ACEOF
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309 :t
22310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22311 s&@configure_input@&$configure_input&;t t
22312 s&@top_builddir@&$ac_top_builddir_sub&;t t
22313 s&@srcdir@&$ac_srcdir&;t t
22314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22315 s&@top_srcdir@&$ac_top_srcdir&;t t
22316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22317 s&@builddir@&$ac_builddir&;t t
22318 s&@abs_builddir@&$ac_abs_builddir&;t t
22319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22320 s&@INSTALL@&$ac_INSTALL&;t t
22321 $ac_datarootdir_hack
22322 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22323
22324 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22325   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22326   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22327   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22328 which seems to be undefined.  Please make sure it is defined." >&5
22329 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22330 which seems to be undefined.  Please make sure it is defined." >&2;}
22331
22332   rm -f "$tmp/stdin"
22333   case $ac_file in
22334   -) cat "$tmp/out"; rm -f "$tmp/out";;
22335   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22336   esac
22337  ;;
22338   :H)
22339   #
22340   # CONFIG_HEADER
22341   #
22342 _ACEOF
22343
22344 # Transform confdefs.h into a sed script `conftest.defines', that
22345 # substitutes the proper values into config.h.in to produce config.h.
22346 rm -f conftest.defines conftest.tail
22347 # First, append a space to every undef/define line, to ease matching.
22348 echo 's/$/ /' >conftest.defines
22349 # Then, protect against being on the right side of a sed subst, or in
22350 # an unquoted here document, in config.status.  If some macros were
22351 # called several times there might be several #defines for the same
22352 # symbol, which is useless.  But do not sort them, since the last
22353 # AC_DEFINE must be honored.
22354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22355 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22356 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22357 # PARAMS is the parameter list in the macro definition--in most cases, it's
22358 # just an empty string.
22359 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22360 ac_dB='\\)[      (].*,\\1define\\2'
22361 ac_dC=' '
22362 ac_dD=' ,'
22363
22364 uniq confdefs.h |
22365   sed -n '
22366         t rset
22367         :rset
22368         s/^[     ]*#[    ]*define[       ][      ]*//
22369         t ok
22370         d
22371         :ok
22372         s/[\\&,]/\\&/g
22373         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22374         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22375   ' >>conftest.defines
22376
22377 # Remove the space that was appended to ease matching.
22378 # Then replace #undef with comments.  This is necessary, for
22379 # example, in the case of _POSIX_SOURCE, which is predefined and required
22380 # on some systems where configure will not decide to define it.
22381 # (The regexp can be short, since the line contains either #define or #undef.)
22382 echo 's/ $//
22383 s,^[     #]*u.*,/* & */,' >>conftest.defines
22384
22385 # Break up conftest.defines:
22386 ac_max_sed_lines=50
22387
22388 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22389 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22390 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22391 # et cetera.
22392 ac_in='$ac_file_inputs'
22393 ac_out='"$tmp/out1"'
22394 ac_nxt='"$tmp/out2"'
22395
22396 while :
22397 do
22398   # Write a here document:
22399     cat >>$CONFIG_STATUS <<_ACEOF
22400     # First, check the format of the line:
22401     cat >"\$tmp/defines.sed" <<\\CEOF
22402 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22403 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22404 b
22405 :def
22406 _ACEOF
22407   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22408   echo 'CEOF
22409     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22410   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22411   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22412   grep . conftest.tail >/dev/null || break
22413   rm -f conftest.defines
22414   mv conftest.tail conftest.defines
22415 done
22416 rm -f conftest.defines conftest.tail
22417
22418 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22419 cat >>$CONFIG_STATUS <<\_ACEOF
22420   if test x"$ac_file" != x-; then
22421     echo "/* $configure_input  */" >"$tmp/config.h"
22422     cat "$ac_result" >>"$tmp/config.h"
22423     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22424       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22425 echo "$as_me: $ac_file is unchanged" >&6;}
22426     else
22427       rm -f $ac_file
22428       mv "$tmp/config.h" $ac_file
22429     fi
22430   else
22431     echo "/* $configure_input  */"
22432     cat "$ac_result"
22433   fi
22434   rm -f "$tmp/out12"
22435  ;;
22436
22437   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22438 echo "$as_me: executing $ac_file commands" >&6;}
22439  ;;
22440   esac
22441
22442
22443   case $ac_file$ac_mode in
22444     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22445    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22446     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22447    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22448     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22449    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22450     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22451    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22452     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22453    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22454     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22455    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22456     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22457    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22458     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22459    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22460     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22461    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22462     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22463    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22464     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22465    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22466     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22467    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22468     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22469    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22470
22471   esac
22472 done # for ac_tag
22473
22474
22475 { (exit 0); exit 0; }
22476 _ACEOF
22477 chmod +x $CONFIG_STATUS
22478 ac_clean_files=$ac_clean_files_save
22479
22480
22481 # configure is writing to config.log, and then calls config.status.
22482 # config.status does its own redirection, appending to config.log.
22483 # Unfortunately, on DOS this fails, as config.log is still kept open
22484 # by configure, so config.status won't be able to write to it; its
22485 # output is simply discarded.  So we exec the FD to /dev/null,
22486 # effectively closing config.log, so it can be properly (re)opened and
22487 # appended to by config.status.  When coming back to configure, we
22488 # need to make the FD available again.
22489 if test "$no_create" != yes; then
22490   ac_cs_success=:
22491   ac_config_status_args=
22492   test "$silent" = yes &&
22493     ac_config_status_args="$ac_config_status_args --quiet"
22494   exec 5>/dev/null
22495   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22496   exec 5>>config.log
22497   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22498   # would make configure fail if this is the last instruction.
22499   $ac_cs_success || { (exit 1); exit 1; }
22500 fi
22501
22502 #
22503 # CONFIG_SUBDIRS section.
22504 #
22505 if test "$no_recursion" != yes; then
22506
22507   # Remove --cache-file and --srcdir arguments so they do not pile up.
22508   ac_sub_configure_args=
22509   ac_prev=
22510   eval "set x $ac_configure_args"
22511   shift
22512   for ac_arg
22513   do
22514     if test -n "$ac_prev"; then
22515       ac_prev=
22516       continue
22517     fi
22518     case $ac_arg in
22519     -cache-file | --cache-file | --cache-fil | --cache-fi \
22520     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22521       ac_prev=cache_file ;;
22522     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22523     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22524     | --c=*)
22525       ;;
22526     --config-cache | -C)
22527       ;;
22528     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22529       ac_prev=srcdir ;;
22530     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22531       ;;
22532     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22533       ac_prev=prefix ;;
22534     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22535       ;;
22536     *)
22537       case $ac_arg in
22538       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22539       esac
22540       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22541     esac
22542   done
22543
22544   # Always prepend --prefix to ensure using the same prefix
22545   # in subdir configurations.
22546   ac_arg="--prefix=$prefix"
22547   case $ac_arg in
22548   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22549   esac
22550   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22551
22552   ac_popdir=`pwd`
22553   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22554
22555     # Do not complain, so a configure script can configure whichever
22556     # parts of a large source tree are present.
22557     test -d "$srcdir/$ac_dir" || continue
22558
22559     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22560     echo "$as_me:$LINENO: $ac_msg" >&5
22561     echo "$ac_msg" >&6
22562     { as_dir="$ac_dir"
22563   case $as_dir in #(
22564   -*) as_dir=./$as_dir;;
22565   esac
22566   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22567     as_dirs=
22568     while :; do
22569       case $as_dir in #(
22570       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22571       *) as_qdir=$as_dir;;
22572       esac
22573       as_dirs="'$as_qdir' $as_dirs"
22574       as_dir=`$as_dirname -- "$as_dir" ||
22575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576          X"$as_dir" : 'X\(//\)[^/]' \| \
22577          X"$as_dir" : 'X\(//\)$' \| \
22578          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22579 echo X"$as_dir" |
22580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22581             s//\1/
22582             q
22583           }
22584           /^X\(\/\/\)[^/].*/{
22585             s//\1/
22586             q
22587           }
22588           /^X\(\/\/\)$/{
22589             s//\1/
22590             q
22591           }
22592           /^X\(\/\).*/{
22593             s//\1/
22594             q
22595           }
22596           s/.*/./; q'`
22597       test -d "$as_dir" && break
22598     done
22599     test -z "$as_dirs" || eval "mkdir $as_dirs"
22600   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22601 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22602    { (exit 1); exit 1; }; }; }
22603     ac_builddir=.
22604
22605 case "$ac_dir" in
22606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22607 *)
22608   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22609   # A ".." for each directory in $ac_dir_suffix.
22610   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22611   case $ac_top_builddir_sub in
22612   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22613   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22614   esac ;;
22615 esac
22616 ac_abs_top_builddir=$ac_pwd
22617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22618 # for backward compatibility:
22619 ac_top_builddir=$ac_top_build_prefix
22620
22621 case $srcdir in
22622   .)  # We are building in place.
22623     ac_srcdir=.
22624     ac_top_srcdir=$ac_top_builddir_sub
22625     ac_abs_top_srcdir=$ac_pwd ;;
22626   [\\/]* | ?:[\\/]* )  # Absolute name.
22627     ac_srcdir=$srcdir$ac_dir_suffix;
22628     ac_top_srcdir=$srcdir
22629     ac_abs_top_srcdir=$srcdir ;;
22630   *) # Relative name.
22631     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22632     ac_top_srcdir=$ac_top_build_prefix$srcdir
22633     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22634 esac
22635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22636
22637
22638     cd "$ac_dir"
22639
22640     # Check for guested configure; otherwise get Cygnus style configure.
22641     if test -f "$ac_srcdir/configure.gnu"; then
22642       ac_sub_configure=$ac_srcdir/configure.gnu
22643     elif test -f "$ac_srcdir/configure"; then
22644       ac_sub_configure=$ac_srcdir/configure
22645     elif test -f "$ac_srcdir/configure.in"; then
22646       # This should be Cygnus configure.
22647       ac_sub_configure=$ac_aux_dir/configure
22648     else
22649       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22651       ac_sub_configure=
22652     fi
22653
22654     # The recursion is here.
22655     if test -n "$ac_sub_configure"; then
22656       # Make the cache file name correct relative to the subdirectory.
22657       case $cache_file in
22658       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22659       *) # Relative name.
22660         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22661       esac
22662
22663       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22664 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22665       # The eval makes quoting arguments work.
22666       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22667            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22668         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22669 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22670    { (exit 1); exit 1; }; }
22671     fi
22672
22673     cd "$ac_popdir"
22674   done
22675 fi
22676