Per discussion with Sanjiv, remove the PIC16 target from mainline. When/if
[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 2.9svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
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-2010 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='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
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 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 CXX
707 CXXFLAGS
708 ac_ct_CXX
709 NM
710 ifGNUmake
711 LN_S
712 CMP
713 CP
714 DATE
715 FIND
716 MKDIR
717 MV
718 RANLIB
719 AR
720 RM
721 SED
722 TAR
723 BINPWD
724 GRAPHVIZ
725 DOT
726 FDP
727 NEATO
728 TWOPI
729 CIRCO
730 GV
731 DOTTY
732 XDOT_PY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 CAT
740 DOXYGEN
741 GROFF
742 GZIP
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 LLVMGCCCOMMAND
761 LLVMGXXCOMMAND
762 LLVMGCC
763 LLVMGXX
764 LLVMCC_OPTION
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 LLVMCC1
773 LLVMCC1PLUS
774 LLVMGCCDIR
775 LLVMGCC_LANGS
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CPP
805 CXX
806 CXXFLAGS
807 CCC'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
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-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-timestamps     Enable embedding timestamp information in build
1414                           (default is YES)
1415   --enable-targets        Build specific host targets: all or
1416                           target1,target2,... Valid targets are: host, x86,
1417                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418                           pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419                           and cpp (default=all)
1420   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1421                           %a (default is YES)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1431                           searches PATH)
1432   --with-llvmgcc          Specify location of llvm-gcc driver (default
1433                           searches PATH)
1434   --with-llvmgxx          Specify location of llvm-g++ driver (default
1435                           searches PATH)
1436   --with-clang            Specify location of clang compiler (default is
1437                           --with-built-clang)
1438   --with-built-clang      Use the compiled Clang as the LLVM compiler
1439                           (default=check)
1440   --with-optimize-option  Select the compiler options to use for optimized
1441                           builds
1442   --with-extra-options    Specify additional options to compile LLVM with
1443   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                           is stdlib)
1445   --with-c-include-dirs   Colon separated list of directories clang will
1446                           search for headers
1447   --with-cxx-include-root Directory with the libstdc++ headers.
1448   --with-cxx-include-arch Architecture of the libstdc++ headers.
1449   --with-cxx-include-32bit-dir
1450                           32 bit multilib dir.
1451   --with-cxx-include-64bit-dir
1452                           64 bit multilib directory.
1453   --with-binutils-include Specify path to binutils/include/ containing
1454                           plugin-api.h file for gold plugin.
1455   --with-tclinclude       directory where tcl headers are
1456   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1457                           clang, or none; default=check)
1458   --with-udis86=<path>    Use udis86 external x86 disassembler library
1459   --with-oprofile=<prefix>
1460                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CPP         C preprocessor
1470   CXX         C++ compiler command
1471   CXXFLAGS    C++ compiler flags
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" || continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 llvm configure 2.9svn
1538 generated by GNU Autoconf 2.60
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547   exit
1548 fi
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1552
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556   $ $0 $@
1557
1558 _ACEOF
1559 exec 5>>config.log
1560 {
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1565
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583 _ASUNAME
1584
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1593
1594 } >&5
1595
1596 cat >&5 <<_ACEOF
1597
1598
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1602
1603 _ACEOF
1604
1605
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1616 do
1617   for ac_arg
1618   do
1619     case $ac_arg in
1620     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622     | -silent | --silent | --silen | --sile | --sil)
1623       continue ;;
1624     *\'*)
1625       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     esac
1627     case $ac_pass in
1628     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629     2)
1630       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631       if test $ac_must_keep_next = true; then
1632         ac_must_keep_next=false # Got value, back to normal.
1633       else
1634         case $ac_arg in
1635           *=* | --config-cache | -C | -disable-* | --disable-* \
1636           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638           | -with-* | --with-* | -without-* | --without-* | --x)
1639             case "$ac_configure_args0 " in
1640               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641             esac
1642             ;;
1643           -* ) ac_must_keep_next=true ;;
1644         esac
1645       fi
1646       ac_configure_args="$ac_configure_args '$ac_arg'"
1647       ;;
1648     esac
1649   done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log.  We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660   # Save into config.log some information that might help in debugging.
1661   {
1662     echo
1663
1664     cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669     echo
1670     # The following way of writing the cache mishandles newlines in values,
1671 (
1672   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673     eval ac_val=\$$ac_var
1674     case $ac_val in #(
1675     *${as_nl}*)
1676       case $ac_var in #(
1677       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679       esac
1680       case $ac_var in #(
1681       _ | IFS | as_nl) ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       echo "$as_me: caught signal $ac_signal"
1747     echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791   set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795   set x "$ac_default_prefix/share/config.site" \
1796         "$ac_default_prefix/etc/config.site"
1797 fi
1798 shift
1799 for ac_site_file
1800 do
1801   if test -r "$ac_site_file"; then
1802     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804     sed 's/^/| /' "$ac_site_file" >&5
1805     . "$ac_site_file"
1806   fi
1807 done
1808
1809 if test -r "$cache_file"; then
1810   # Some versions of bash will fail to source /dev/null (special
1811   # files actually), so we avoid doing that.
1812   if test -f "$cache_file"; then
1813     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815     case $cache_file in
1816       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817       *)                      . "./$cache_file";;
1818     esac
1819   fi
1820 else
1821   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823   >$cache_file
1824 fi
1825
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831   eval ac_new_set=\$ac_env_${ac_var}_set
1832   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833   eval ac_new_val=\$ac_env_${ac_var}_value
1834   case $ac_old_set,$ac_new_set in
1835     set,)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,set)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,);;
1844     *)
1845       if test "x$ac_old_val" != "x$ac_new_val"; then
1846         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849 echo "$as_me:   former value:  $ac_old_val" >&2;}
1850         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851 echo "$as_me:   current value: $ac_new_val" >&2;}
1852         ac_cache_corrupted=:
1853       fi;;
1854   esac
1855   # Pass precious variables to config.status.
1856   if test "$ac_new_set" = set; then
1857     case $ac_new_val in
1858     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     *) ac_arg=$ac_var=$ac_new_val ;;
1860     esac
1861     case " $ac_configure_args " in
1862       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864     esac
1865   fi
1866 done
1867 if $ac_cache_corrupted; then
1868   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
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
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1908
1909
1910
1911
1912
1913
1914
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 if test ${srcdir} != "." ; then
1948   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951    { (exit 1); exit 1; }; }
1952   fi
1953 fi
1954
1955
1956
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958   subdirs="$subdirs projects/llvm-gcc"
1959
1960 fi
1961
1962 if test -d ${srcdir}/projects/test-suite ; then
1963   subdirs="$subdirs projects/test-suite"
1964
1965 fi
1966
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968   subdirs="$subdirs projects/llvm-test"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973   subdirs="$subdirs projects/poolalloc"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978   subdirs="$subdirs projects/llvm-poolalloc"
1979
1980 fi
1981
1982 for i in `ls ${srcdir}/projects`
1983 do
1984   if test -d ${srcdir}/projects/${i} ; then
1985     case ${i} in
1986       sample)       subdirs="$subdirs projects/sample"
1987     ;;
1988       privbracket)  subdirs="$subdirs projects/privbracket"
1989  ;;
1990       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991  ;;
1992       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1993 ;;
1994       llvm-java)    subdirs="$subdirs projects/llvm-java"
1995  ;;
1996       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1997    ;;
1998       safecode)     subdirs="$subdirs projects/safecode"
1999  ;;
2000       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2001  ;;
2002       llvm-gcc)       ;;
2003       test-suite)     ;;
2004       llvm-test)      ;;
2005       poolalloc)      ;;
2006       llvm-poolalloc) ;;
2007       *)
2008         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2010         ;;
2011     esac
2012   fi
2013 done
2014
2015
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020    { (exit 1); exit 1; }; }
2021
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033    { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 fi
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060
2061
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test "x$host_alias" = x; then
2068   ac_cv_host=$ac_cv_build
2069 else
2070   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$target_alias" = x; then
2105   ac_cv_target=$ac_cv_host
2106 else
2107   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_target
2125 shift
2126 target_cpu=$1
2127 target_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 target_os=$*
2132 IFS=$ac_save_IFS
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139   test "$program_prefix$program_suffix$program_transform_name" = \
2140     NONENONEs,x,x, &&
2141   program_prefix=${target_alias}-
2142
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   case $host in
2149   *-*-aix*)
2150     llvm_cv_link_all_option="-Wl,--whole-archive"
2151     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152     llvm_cv_os_type="AIX"
2153     llvm_cv_platform_type="Unix" ;;
2154   *-*-irix*)
2155     llvm_cv_link_all_option="-Wl,--whole-archive"
2156     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157     llvm_cv_os_type="IRIX"
2158     llvm_cv_platform_type="Unix" ;;
2159   *-*-cygwin*)
2160     llvm_cv_link_all_option="-Wl,--whole-archive"
2161     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162     llvm_cv_os_type="Cygwin"
2163     llvm_cv_platform_type="Unix" ;;
2164   *-*-darwin*)
2165     llvm_cv_link_all_option="-Wl,-all_load"
2166     llvm_cv_no_link_all_option="-Wl,-noall_load"
2167     llvm_cv_os_type="Darwin"
2168     llvm_cv_platform_type="Unix" ;;
2169   *-*-minix*)
2170     llvm_cv_link_all_option="-Wl,-all_load"
2171     llvm_cv_no_link_all_option="-Wl,-noall_load"
2172     llvm_cv_os_type="Minix"
2173     llvm_cv_platform_type="Unix" ;;
2174   *-*-freebsd*)
2175     llvm_cv_link_all_option="-Wl,--whole-archive"
2176     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177     llvm_cv_os_type="FreeBSD"
2178     llvm_cv_platform_type="Unix" ;;
2179   *-*-openbsd*)
2180     llvm_cv_link_all_option="-Wl,--whole-archive"
2181     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182     llvm_cv_os_type="OpenBSD"
2183     llvm_cv_platform_type="Unix" ;;
2184   *-*-netbsd*)
2185     llvm_cv_link_all_option="-Wl,--whole-archive"
2186     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187     llvm_cv_os_type="NetBSD"
2188     llvm_cv_platform_type="Unix" ;;
2189   *-*-dragonfly*)
2190     llvm_cv_link_all_option="-Wl,--whole-archive"
2191     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192     llvm_cv_os_type="DragonFly"
2193     llvm_cv_platform_type="Unix" ;;
2194   *-*-hpux*)
2195     llvm_cv_link_all_option="-Wl,--whole-archive"
2196     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197     llvm_cv_os_type="HP-UX"
2198     llvm_cv_platform_type="Unix" ;;
2199   *-*-interix*)
2200     llvm_cv_link_all_option="-Wl,--whole-archive"
2201     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202     llvm_cv_os_type="Interix"
2203     llvm_cv_platform_type="Unix" ;;
2204   *-*-linux*)
2205     llvm_cv_link_all_option="-Wl,--whole-archive"
2206     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207     llvm_cv_os_type="Linux"
2208     llvm_cv_platform_type="Unix" ;;
2209   *-*-solaris*)
2210     llvm_cv_link_all_option="-Wl,-z,allextract"
2211     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212     llvm_cv_os_type="SunOS"
2213     llvm_cv_platform_type="Unix" ;;
2214   *-*-auroraux*)
2215     llvm_cv_link_all_option="-Wl,-z,allextract"
2216     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217     llvm_cv_os_type="AuroraUX"
2218     llvm_cv_platform_type="Unix" ;;
2219   *-*-win32*)
2220     llvm_cv_link_all_option="-Wl,--whole-archive"
2221     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222     llvm_cv_os_type="Win32"
2223     llvm_cv_platform_type="Win32" ;;
2224   *-*-mingw*)
2225     llvm_cv_link_all_option="-Wl,--whole-archive"
2226     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227     llvm_cv_os_type="MingW"
2228     llvm_cv_platform_type="Win32" ;;
2229   *-*-haiku*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="Haiku"
2233     llvm_cv_platform_type="Unix" ;;
2234   *-unknown-eabi*)
2235     llvm_cv_link_all_option="-Wl,--whole-archive"
2236     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237     llvm_cv_os_type="Freestanding"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-unknown-elf*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="Freestanding"
2243     llvm_cv_platform_type="Unix" ;;
2244   *)
2245     llvm_cv_link_all_option=""
2246     llvm_cv_no_link_all_option=""
2247     llvm_cv_os_type="Unknown"
2248     llvm_cv_platform_type="Unknown" ;;
2249 esac
2250 fi
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   case $target in
2260   *-*-aix*)
2261     llvm_cv_target_os_type="AIX" ;;
2262   *-*-irix*)
2263     llvm_cv_target_os_type="IRIX" ;;
2264   *-*-cygwin*)
2265     llvm_cv_target_os_type="Cygwin" ;;
2266   *-*-darwin*)
2267     llvm_cv_target_os_type="Darwin" ;;
2268   *-*-minix*)
2269     llvm_cv_target_os_type="Minix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_target_os_type="FreeBSD" ;;
2272   *-*-openbsd*)
2273     llvm_cv_target_os_type="OpenBSD" ;;
2274   *-*-netbsd*)
2275     llvm_cv_target_os_type="NetBSD" ;;
2276   *-*-dragonfly*)
2277     llvm_cv_target_os_type="DragonFly" ;;
2278   *-*-hpux*)
2279     llvm_cv_target_os_type="HP-UX" ;;
2280   *-*-interix*)
2281     llvm_cv_target_os_type="Interix" ;;
2282   *-*-linux*)
2283     llvm_cv_target_os_type="Linux" ;;
2284   *-*-solaris*)
2285     llvm_cv_target_os_type="SunOS" ;;
2286   *-*-auroraux*)
2287     llvm_cv_target_os_type="AuroraUX" ;;
2288   *-*-win32*)
2289     llvm_cv_target_os_type="Win32" ;;
2290   *-*-mingw*)
2291     llvm_cv_target_os_type="MingW" ;;
2292   *-*-haiku*)
2293     llvm_cv_target_os_type="Haiku" ;;
2294   *-unknown-eabi*)
2295     llvm_cv_target_os_type="Freestanding" ;;
2296   *)
2297     llvm_cv_target_os_type="Unknown" ;;
2298 esac
2299 fi
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 OS=$llvm_cv_os_type
2310
2311 HOST_OS=$llvm_cv_os_type
2312
2313 TARGET_OS=$llvm_cv_target_os_type
2314
2315
2316 LINKALL=$llvm_cv_link_all_option
2317
2318 NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
2321 case $llvm_cv_platform_type in
2322   Unix)
2323
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2326 _ACEOF
2327
2328     LLVM_ON_UNIX=1
2329
2330     LLVM_ON_WIN32=0
2331
2332     ;;
2333   Win32)
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2337 _ACEOF
2338
2339     LLVM_ON_UNIX=0
2340
2341     LLVM_ON_WIN32=1
2342
2343     ;;
2344 esac
2345
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   case $target in
2352   i?86-*)                 llvm_cv_target_arch="x86" ;;
2353   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2354   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2355   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2356   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2357   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2358   mips-*)                 llvm_cv_target_arch="Mips" ;;
2359   xcore-*)                llvm_cv_target_arch="XCore" ;;
2360   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2361   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2362   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2363   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2364   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2365   *)                      llvm_cv_target_arch="Unknown" ;;
2366 esac
2367 fi
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2374 fi
2375
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378     x86)     LLVM_NATIVE_ARCH="X86" ;;
2379     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2380     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381 esac
2382
2383 ARCH=$llvm_cv_target_arch
2384
2385
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$CC"; then
2400   ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421   { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_CC"; then
2431   ac_ct_CC=$CC
2432   # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_CC"; then
2440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_ac_ct_CC="gcc"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464   { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2466 fi
2467
2468   if test "x$ac_ct_CC" = x; then
2469     CC=""
2470   else
2471     case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet.  If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet.  If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481     CC=$ac_ct_CC
2482   fi
2483 else
2484   CC="$ac_cv_prog_CC"
2485 fi
2486
2487 if test -z "$CC"; then
2488           if test -n "$ac_tool_prefix"; then
2489     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$CC"; then
2497   ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_CC="${ac_tool_prefix}cc"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518   { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525
2526   fi
2527 fi
2528 if test -z "$CC"; then
2529   # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$CC"; then
2537   ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539   ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548        ac_prog_rejected=yes
2549        continue
2550      fi
2551     ac_cv_prog_CC="cc"
2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 if test $ac_prog_rejected = yes; then
2560   # We found a bogon in the path, so make sure we never use it.
2561   set dummy $ac_cv_prog_CC
2562   shift
2563   if test $# != 0; then
2564     # We chose a different compiler from the bogus one.
2565     # However, it has the same basename, so the bogon will be chosen
2566     # first if we set CC to just the basename; use the full file name.
2567     shift
2568     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569   fi
2570 fi
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$CC"; then
2585   if test -n "$ac_tool_prefix"; then
2586   for ac_prog in cl.exe
2587   do
2588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$CC"; then
2596   ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620   { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625     test -n "$CC" && break
2626   done
2627 fi
2628 if test -z "$CC"; then
2629   ac_ct_CC=$CC
2630   for ac_prog in cl.exe
2631 do
2632   # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_CC"; then
2640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_CC="$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669   test -n "$ac_ct_CC" && break
2670 done
2671
2672   if test "x$ac_ct_CC" = x; then
2673     CC=""
2674   else
2675     case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet.  If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet.  If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     CC=$ac_ct_CC
2686   fi
2687 fi
2688
2689 fi
2690
2691
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696    { (exit 1); exit 1; }; }
2697
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compiler --version >&5") 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compiler -v >&5") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler -V >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 #
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort.  b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 #
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions.  Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2766 do
2767   case $ac_file in
2768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770   esac
2771 done
2772 rm -f $ac_rmfiles
2773
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_link_default") 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; then
2784   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2790 do
2791   test -f "$ac_file" || continue
2792   case $ac_file in
2793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794         ;;
2795     [ab].out )
2796         # We found the default executable, but exeext='' is most
2797         # certainly right.
2798         break;;
2799     *.* )
2800         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801         then :; else
2802            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803         fi
2804         # We set ac_cv_exeext here because the later test for it is not
2805         # safe: cross compilers may not add the suffix if given an `-o'
2806         # argument, so we may need to know it at that point already.
2807         # Even if this section looks crufty: it has the advantage of
2808         # actually working.
2809         break;;
2810     * )
2811         break;;
2812   esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824    { (exit 77); exit 77; }; }
2825 fi
2826
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2830
2831 # Check that the compiler produces executables we can run.  If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838   if { ac_try='./$ac_file'
2839   { (case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_try") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848     cross_compiling=no
2849   else
2850     if test "$cross_compiling" = maybe; then
2851         cross_compiling=yes
2852     else
2853         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860     fi
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2865
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run.  If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906 fi
2907
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   for ac_file in conftest.o conftest.obj conftest.*; do
2947   test -f "$ac_file" || continue;
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951        break;;
2952   esac
2953 done
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986 #ifndef __GNUC__
2987        choke me
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009   { (case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_try") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; } &&
3018          { ac_try='test -s conftest.$ac_objext'
3019   { (case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; }; then
3028   ac_compiler_gnu=yes
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033         ac_compiler_gnu=no
3034 fi
3035
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038
3039 fi
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   ac_save_c_werror_flag=$ac_c_werror_flag
3051    ac_c_werror_flag=yes
3052    ac_cv_prog_cc_g=no
3053    CFLAGS="-g"
3054    cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060
3061 int
3062 main ()
3063 {
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   ac_cv_prog_cc_g=yes
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108         CFLAGS=""
3109       cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   :
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163         ac_c_werror_flag=$ac_save_c_werror_flag
3164          CFLAGS="-g"
3165          cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } &&
3194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195   { (case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_try") 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; } &&
3204          { ac_try='test -s conftest.$ac_objext'
3205   { (case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_try") 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   ac_cv_prog_cc_g=yes
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229    ac_c_werror_flag=$ac_save_c_werror_flag
3230 fi
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234   CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236   if test "$GCC" = yes; then
3237     CFLAGS="-g -O2"
3238   else
3239     CFLAGS="-g"
3240   fi
3241 else
3242   if test "$GCC" = yes; then
3243     CFLAGS="-O2"
3244   else
3245     CFLAGS=
3246   fi
3247 fi
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269      char **p;
3270      int i;
3271 {
3272   return p[i];
3273 }
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3275 {
3276   char *s;
3277   va_list v;
3278   va_start (v,p);
3279   s = g (p, va_arg (v,int));
3280   va_end (v);
3281   return s;
3282 }
3283
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3285    function prototypes and stuff, but not '\xHH' hex character constants.
3286    These don't provoke an error unfortunately, instead are silently treated
3287    as 'x'.  The following induces an error, until -std is added to get
3288    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3289    array size at least.  It's necessary to write '\x00'==0 to get something
3290    that's true only with -std.  */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294    inside strings and character constants.  */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3304 int
3305 main ()
3306 {
3307 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 do
3315   CC="$ac_save_CC $ac_arg"
3316   rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; } &&
3340          { ac_try='test -s conftest.$ac_objext'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350   ac_cv_prog_cc_c89=$ac_arg
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext
3359   test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3363
3364 fi
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3367   x)
3368     { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370   xno)
3371     { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3373   *)
3374     CC="$CC $ac_cv_prog_cc_c89"
3375     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3378
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396   CPP=
3397 fi
3398 if test -z "$CPP"; then
3399   if test "${ac_cv_prog_CPP+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402       # Double quotes because CPP needs to be expanded
3403     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404     do
3405       ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   :
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Broken: fails on valid input.
3456 continue
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461   # OK, works on sane cases.  Now check whether nonexistent headers
3462   # can be detected and how.
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   # Broken: success on invalid input.
3495 continue
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500   # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511   break
3512 fi
3513
3514     done
3515     ac_cv_prog_CPP=$CPP
3516
3517 fi
3518   CPP=$ac_cv_prog_CPP
3519 else
3520   ac_cv_prog_CPP=$CPP
3521 fi
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3526 do
3527   # Use a header file that comes with gcc, so configuring glibc
3528   # with a fresh cross-compiler works.
3529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530   # <limits.h> exists even on freestanding compilers.
3531   # On the NeXT, cc -E runs the code through the compiler's parser,
3532   # not just through cpp. "Syntax error" is here to catch this case.
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #ifdef __STDC__
3540 # include <limits.h>
3541 #else
3542 # include <assert.h>
3543 #endif
3544                      Syntax error
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } >/dev/null; then
3559   if test -s conftest.err; then
3560     ac_cpp_err=$ac_c_preproc_warn_flag
3561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562   else
3563     ac_cpp_err=
3564   fi
3565 else
3566   ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569   :
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574   # Broken: fails on valid input.
3575 continue
3576 fi
3577
3578 rm -f conftest.err conftest.$ac_ext
3579
3580   # OK, works on sane cases.  Now check whether nonexistent headers
3581   # can be detected and how.
3582   cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588 #include <ac_nonexistent.h>
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null; then
3603   if test -s conftest.err; then
3604     ac_cpp_err=$ac_c_preproc_warn_flag
3605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606   else
3607     ac_cpp_err=
3608   fi
3609 else
3610   ac_cpp_err=yes
3611 fi
3612 if test -z "$ac_cpp_err"; then
3613   # Broken: success on invalid input.
3614 continue
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619   # Passes both tests.
3620 ac_preproc_ok=:
3621 break
3622 fi
3623
3624 rm -f conftest.err conftest.$ac_ext
3625
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3630   :
3631 else
3632   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636    { (exit 1); exit 1; }; }
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for ac_prog in grep ggrep; do
3665   for ac_exec_ext in '' $ac_executable_extensions; do
3666     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668     # Check for GNU ac_path_GREP and select it if it is found.
3669   # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3671 *GNU*)
3672   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673 *)
3674   ac_count=0
3675   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676   while :
3677   do
3678     cat "conftest.in" "conftest.in" >"conftest.tmp"
3679     mv "conftest.tmp" "conftest.in"
3680     cp "conftest.in" "conftest.nl"
3681     echo 'GREP' >> "conftest.nl"
3682     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684     ac_count=`expr $ac_count + 1`
3685     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686       # Best one so far, save it but keep looking for a better one
3687       ac_cv_path_GREP="$ac_path_GREP"
3688       ac_path_GREP_max=$ac_count
3689     fi
3690     # 10*(2^10) chars as input seems more than enough
3691     test $ac_count -gt 10 && break
3692   done
3693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3695
3696
3697     $ac_path_GREP_found && break 3
3698   done
3699 done
3700
3701 done
3702 IFS=$as_save_IFS
3703
3704
3705 fi
3706
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711    { (exit 1); exit 1; }; }
3712 fi
3713
3714 else
3715   ac_cv_path_GREP=$GREP
3716 fi
3717
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722  GREP="$ac_cv_path_GREP"
3723
3724
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731    then ac_cv_path_EGREP="$GREP -E"
3732    else
3733      # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_prog in egrep; do
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750     # Check for GNU ac_path_EGREP and select it if it is found.
3751   # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3753 *GNU*)
3754   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755 *)
3756   ac_count=0
3757   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758   while :
3759   do
3760     cat "conftest.in" "conftest.in" >"conftest.tmp"
3761     mv "conftest.tmp" "conftest.in"
3762     cp "conftest.in" "conftest.nl"
3763     echo 'EGREP' >> "conftest.nl"
3764     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766     ac_count=`expr $ac_count + 1`
3767     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768       # Best one so far, save it but keep looking for a better one
3769       ac_cv_path_EGREP="$ac_path_EGREP"
3770       ac_path_EGREP_max=$ac_count
3771     fi
3772     # 10*(2^10) chars as input seems more than enough
3773     test $ac_count -gt 10 && break
3774   done
3775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3777
3778
3779     $ac_path_EGREP_found && break 3
3780   done
3781 done
3782
3783 done
3784 IFS=$as_save_IFS
3785
3786
3787 fi
3788
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 else
3797   ac_cv_path_EGREP=$EGREP
3798 fi
3799
3800
3801    fi
3802 fi
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805  EGREP="$ac_cv_path_EGREP"
3806
3807
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3823
3824 int
3825 main ()
3826 {
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_compile") 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } &&
3846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847   { (case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest.$ac_objext'
3857   { (case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_try") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_header_stdc=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         ac_cv_header_stdc=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875
3876 if test $ac_cv_header_stdc = yes; then
3877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <string.h>
3885
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888   $EGREP "memchr" >/dev/null 2>&1; then
3889   :
3890 else
3891   ac_cv_header_stdc=no
3892 fi
3893 rm -f conftest*
3894
3895 fi
3896
3897 if test $ac_cv_header_stdc = yes; then
3898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <stdlib.h>
3906
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909   $EGREP "free" >/dev/null 2>&1; then
3910   :
3911 else
3912   ac_cv_header_stdc=no
3913 fi
3914 rm -f conftest*
3915
3916 fi
3917
3918 if test $ac_cv_header_stdc = yes; then
3919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920   if test "$cross_compiling" = yes; then
3921   :
3922 else
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936                    (('a' <= (c) && (c) <= 'i') \
3937                      || ('j' <= (c) && (c) <= 'r') \
3938                      || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3941
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943 int
3944 main ()
3945 {
3946   int i;
3947   for (i = 0; i < 256; i++)
3948     if (XOR (islower (i), ISLOWER (i))
3949         || toupper (i) != TOUPPER (i))
3950       return 2;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965   { (case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_try") 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   :
3975 else
3976   echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3982 fi
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3984 fi
3985
3986
3987 fi
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3992
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3996
3997 fi
3998
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010                   inttypes.h stdint.h unistd.h
4011 do
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 $ac_includes_default
4025
4026 #include <$ac_header>
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_compile") 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043   { (case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058   (eval "$ac_try") 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; }; then
4062   eval "$as_ac_Header=yes"
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067         eval "$as_ac_Header=no"
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 fi
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073                { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076   cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4079
4080 fi
4081
4082 done
4083
4084
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4099
4100 int
4101 main ()
4102 {
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104  bogus endian macros
4105 #endif
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126   { (case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_try") 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4154
4155 int
4156 main ()
4157 {
4158 #if BYTE_ORDER != BIG_ENDIAN
4159  not big endian
4160 #endif
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_compile") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } &&
4180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181   { (case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186   (eval "$ac_try") 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   ac_cv_c_bigendian=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         ac_cv_c_bigendian=no
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215   # try to guess the endianness by grepping values into an object file
4216   ac_cv_c_bigendian=unknown
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4229 int
4230 main ()
4231 {
4232  _ascii (); _ebcdic ();
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_compile") 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252   { (case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_try") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272   ac_cv_c_bigendian=yes
4273 fi
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275   if test "$ac_cv_c_bigendian" = unknown; then
4276     ac_cv_c_bigendian=no
4277   else
4278     # finding both strings is unlikely to happen, but who knows?
4279     ac_cv_c_bigendian=unknown
4280   fi
4281 fi
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 $ac_includes_default
4298 int
4299 main ()
4300 {
4301
4302   /* Are we little or big endian?  From Harbison&Steele.  */
4303   union
4304   {
4305     long int l;
4306     char c[sizeof (long int)];
4307   } u;
4308   u.l = 1;
4309   return u.c[sizeof (long int) - 1] == 1;
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_link") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326   { (case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_cv_c_bigendian=no
4336 else
4337   echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ( exit $ac_status )
4342 ac_cv_c_bigendian=yes
4343 fi
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 fi
4346
4347
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4355   yes)
4356     ENDIAN=big
4357  ;;
4358   no)
4359     ENDIAN=little
4360  ;;
4361   *)
4362     { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366    { (exit 1); exit 1; }; } ;;
4367 esac
4368
4369
4370 if test "$cross_compiling" = yes; then
4371   LLVM_CROSS_COMPILING=1
4372
4373
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380   ac_cv_build_exeext=.exe
4381 else
4382   ac_build_prefix=${build_alias}-
4383
4384   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test -n "$BUILD_CC"; then
4392   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 else
4416   { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4418 fi
4419
4420
4421   if test -z "$BUILD_CC"; then
4422      # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$BUILD_CC"; then
4430   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_BUILD_CC="gcc"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 else
4454   { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4456 fi
4457
4458
4459      if test -z "$BUILD_CC"; then
4460        # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$BUILD_CC"; then
4468   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 else
4470   ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479        ac_prog_rejected=yes
4480        continue
4481      fi
4482     ac_cv_prog_BUILD_CC="cc"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 if test $ac_prog_rejected = yes; then
4491   # We found a bogon in the path, so make sure we never use it.
4492   set dummy $ac_cv_prog_BUILD_CC
4493   shift
4494   if test $# != 0; then
4495     # We chose a different compiler from the bogus one.
4496     # However, it has the same basename, so the bogon will be chosen
4497     # first if we set BUILD_CC to just the basename; use the full file name.
4498     shift
4499     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500   fi
4501 fi
4502 fi
4503 fi
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514      fi
4515   fi
4516   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518    { (exit 1); exit 1; }; }
4519   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520   rm -f conftest*
4521   echo 'int main () { return 0; }' > conftest.$ac_ext
4522   ac_cv_build_exeext=
4523   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524   (eval $ac_build_link) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; then
4528     for file in conftest.*; do
4529       case $file in
4530       *.c | *.o | *.obj | *.dSYM) ;;
4531       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532       esac
4533     done
4534   else
4535     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537    { (exit 1); exit 1; }; }
4538   fi
4539   rm -f conftest*
4540   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541 fi
4542 fi
4543
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4549
4550   ac_build_prefix=${build_alias}-
4551   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$BUILD_CXX"; then
4559   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588   if test -z "$BUILD_CXX"; then
4589      # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$BUILD_CXX"; then
4597   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_BUILD_CXX="g++"
4607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 else
4621   { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4623 fi
4624
4625
4626      if test -z "$BUILD_CXX"; then
4627        # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -n "$BUILD_CXX"; then
4635   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637   ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646        ac_prog_rejected=yes
4647        continue
4648      fi
4649     ac_cv_prog_BUILD_CXX="c++"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 if test $ac_prog_rejected = yes; then
4658   # We found a bogon in the path, so make sure we never use it.
4659   set dummy $ac_cv_prog_BUILD_CXX
4660   shift
4661   if test $# != 0; then
4662     # We chose a different compiler from the bogus one.
4663     # However, it has the same basename, so the bogon will be chosen
4664     # first if we set BUILD_CXX to just the basename; use the full file name.
4665     shift
4666     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667   fi
4668 fi
4669 fi
4670 fi
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681      fi
4682   fi
4683 else
4684   LLVM_CROSS_COMPILING=0
4685
4686 fi
4687
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689   cvsbuild="yes"
4690   optimize="no"
4691   CVSBUILD=CVSBUILD=1
4692
4693 else
4694   cvsbuild="no"
4695   optimize="yes"
4696 fi
4697
4698
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701   enableval=$enable_optimized;
4702 else
4703   enableval=$optimize
4704 fi
4705
4706 if test ${enableval} = "no" ; then
4707   ENABLE_OPTIMIZED=
4708
4709 else
4710   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712 fi
4713
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716   enableval=$enable_profiling;
4717 else
4718   enableval="no"
4719 fi
4720
4721 if test ${enableval} = "no" ; then
4722   ENABLE_PROFILING=
4723
4724 else
4725   ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727 fi
4728
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731   enableval=$enable_assertions;
4732 else
4733   enableval="yes"
4734 fi
4735
4736 if test ${enableval} = "yes" ; then
4737   DISABLE_ASSERTIONS=
4738
4739 else
4740   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742 fi
4743
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746   enableval=$enable_expensive_checks;
4747 else
4748   enableval="no"
4749 fi
4750
4751 if test ${enableval} = "yes" ; then
4752   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754   EXPENSIVE_CHECKS=yes
4755
4756 else
4757   ENABLE_EXPENSIVE_CHECKS=
4758
4759   EXPENSIVE_CHECKS=no
4760
4761 fi
4762
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765   enableval=$enable_debug_runtime;
4766 else
4767   enableval=no
4768 fi
4769
4770 if test ${enableval} = "no" ; then
4771   DEBUG_RUNTIME=
4772
4773 else
4774   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776 fi
4777
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780   enableval=$enable_debug_symbols;
4781 else
4782   enableval=no
4783 fi
4784
4785 if test ${enableval} = "no" ; then
4786   DEBUG_SYMBOLS=
4787
4788 else
4789   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791 fi
4792
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795   enableval=$enable_jit;
4796 else
4797   enableval=default
4798 fi
4799
4800 if test ${enableval} = "no"
4801 then
4802   JIT=
4803
4804 else
4805   case "$llvm_cv_target_arch" in
4806     x86)         TARGET_HAS_JIT=1
4807  ;;
4808     Sparc)       TARGET_HAS_JIT=0
4809  ;;
4810     PowerPC)     TARGET_HAS_JIT=1
4811  ;;
4812     x86_64)      TARGET_HAS_JIT=1
4813  ;;
4814     Alpha)       TARGET_HAS_JIT=1
4815  ;;
4816     ARM)         TARGET_HAS_JIT=1
4817  ;;
4818     Mips)        TARGET_HAS_JIT=0
4819  ;;
4820     XCore)       TARGET_HAS_JIT=0
4821  ;;
4822     MSP430)      TARGET_HAS_JIT=0
4823  ;;
4824     SystemZ)     TARGET_HAS_JIT=0
4825  ;;
4826     Blackfin)    TARGET_HAS_JIT=0
4827  ;;
4828     MBlaze)      TARGET_HAS_JIT=0
4829  ;;
4830     PTX)         TARGET_HAS_JIT=0
4831  ;;
4832     *)           TARGET_HAS_JIT=0
4833  ;;
4834   esac
4835 fi
4836
4837 # Check whether --enable-doxygen was given.
4838 if test "${enable_doxygen+set}" = set; then
4839   enableval=$enable_doxygen;
4840 else
4841   enableval=default
4842 fi
4843
4844 case "$enableval" in
4845   yes) ENABLE_DOXYGEN=1
4846  ;;
4847   no)  ENABLE_DOXYGEN=0
4848  ;;
4849   default) ENABLE_DOXYGEN=0
4850  ;;
4851   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853    { (exit 1); exit 1; }; } ;;
4854 esac
4855
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then
4858   enableval=$enable_threads;
4859 else
4860   enableval=default
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_THREADS=1
4865  ;;
4866   no)  ENABLE_THREADS=0
4867  ;;
4868   default) ENABLE_THREADS=1
4869  ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_THREADS $ENABLE_THREADS
4877 _ACEOF
4878
4879
4880 # Check whether --enable-pic was given.
4881 if test "${enable_pic+set}" = set; then
4882   enableval=$enable_pic;
4883 else
4884   enableval=default
4885 fi
4886
4887 case "$enableval" in
4888   yes) ENABLE_PIC=1
4889  ;;
4890   no)  ENABLE_PIC=0
4891  ;;
4892   default) ENABLE_PIC=1
4893  ;;
4894   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896    { (exit 1); exit 1; }; } ;;
4897 esac
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_PIC $ENABLE_PIC
4901 _ACEOF
4902
4903
4904 # Check whether --enable-shared was given.
4905 if test "${enable_shared+set}" = set; then
4906   enableval=$enable_shared;
4907 else
4908   enableval=default
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_SHARED=1
4913  ;;
4914   no)  ENABLE_SHARED=0
4915  ;;
4916   default) ENABLE_SHARED=0
4917  ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 # Check whether --enable-timestamps was given.
4924 if test "${enable_timestamps+set}" = set; then
4925   enableval=$enable_timestamps;
4926 else
4927   enableval=default
4928 fi
4929
4930 case "$enableval" in
4931   yes) ENABLE_TIMESTAMPS=1
4932  ;;
4933   no)  ENABLE_TIMESTAMPS=0
4934  ;;
4935   default) ENABLE_TIMESTAMPS=1
4936  ;;
4937   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4939    { (exit 1); exit 1; }; } ;;
4940 esac
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4944 _ACEOF
4945
4946
4947 TARGETS_TO_BUILD=""
4948 # Check whether --enable-targets was given.
4949 if test "${enable_targets+set}" = set; then
4950   enableval=$enable_targets;
4951 else
4952   enableval=all
4953 fi
4954
4955 if test "$enableval" = host-only ; then
4956   enableval=host
4957 fi
4958 case "$enableval" in
4959   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4960   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4961       case "$a_target" in
4962         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4967         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4970         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4978         host) case "$llvm_cv_target_arch" in
4979             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4986             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4987             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4993             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995    { (exit 1); exit 1; }; } ;;
4996           esac ;;
4997         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000       esac
5001   done
5002   ;;
5003 esac
5004 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
5007 # Determine whether we are building LLVM support for the native architecture.
5008 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009 for a_target in $TARGETS_TO_BUILD; do
5010   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5014 _ACEOF
5015
5016     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5017     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5018     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5019
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5022 _ACEOF
5023
5024
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5027 _ACEOF
5028
5029
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5032 _ACEOF
5033
5034   fi
5035 done
5036
5037 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5038 # target feature def files.
5039 LLVM_ENUM_TARGETS=""
5040 LLVM_ENUM_ASM_PRINTERS=""
5041 LLVM_ENUM_ASM_PARSERS=""
5042 LLVM_ENUM_DISASSEMBLERS=""
5043 for target_to_build in $TARGETS_TO_BUILD; do
5044   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5045   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5046     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5047   fi
5048   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5049   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5050     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051   fi
5052
5053   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5054     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5055   fi
5056   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5057     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5058   fi
5059 done
5060
5061
5062
5063
5064
5065 # Check whether --enable-cbe-printf-a was given.
5066 if test "${enable_cbe_printf_a+set}" = set; then
5067   enableval=$enable_cbe_printf_a;
5068 else
5069   enableval=default
5070 fi
5071
5072 case "$enableval" in
5073   yes) ENABLE_CBE_PRINTF_A=1
5074  ;;
5075   no)  ENABLE_CBE_PRINTF_A=0
5076  ;;
5077   default)  ENABLE_CBE_PRINTF_A=1
5078  ;;
5079   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5080 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5081    { (exit 1); exit 1; }; } ;;
5082 esac
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5086 _ACEOF
5087
5088
5089
5090 # Check whether --with-llvmgccdir was given.
5091 if test "${with_llvmgccdir+set}" = set; then
5092   withval=$with_llvmgccdir;
5093 else
5094   withval=default
5095 fi
5096
5097 case "$withval" in
5098   default) WITH_LLVMGCCDIR=default ;;
5099   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5100   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5101 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5102    { (exit 1); exit 1; }; } ;;
5103 esac
5104
5105
5106 # Check whether --with-llvmgcc was given.
5107 if test "${with_llvmgcc+set}" = set; then
5108   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5109       WITH_LLVMGCCDIR=""
5110 fi
5111
5112
5113
5114 # Check whether --with-llvmgxx was given.
5115 if test "${with_llvmgxx+set}" = set; then
5116   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5117     WITH_LLVMGCCDIR=""
5118 fi
5119
5120
5121 if test -n "$LLVMGCC"; then
5122    LLVMGCCCOMMAND="$LLVMGCC"
5123 fi
5124
5125 if test -n "$LLVMGXX"; then
5126    LLVMGXXCOMMAND="$LLVMGXX"
5127 fi
5128
5129 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5130    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5131 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5132    { (exit 1); exit 1; }; };
5133 fi
5134
5135 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5136    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5137 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5138    { (exit 1); exit 1; }; };
5139 fi
5140
5141
5142 # Check whether --with-clang was given.
5143 if test "${with_clang+set}" = set; then
5144   withval=$with_clang;
5145 else
5146   with_clang=default
5147 fi
5148
5149
5150
5151 # Check whether --with-built-clang was given.
5152 if test "${with_built_clang+set}" = set; then
5153   withval=$with_built_clang;
5154 else
5155   with_built_clang=check
5156 fi
5157
5158
5159 { echo "$as_me:$LINENO: checking clang compiler" >&5
5160 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5161 WITH_CLANGPATH=""
5162 WITH_BUILT_CLANG=0
5163 if test "$with_clang" != "default"; then
5164    WITH_CLANGPATH="$with_clang"
5165    if ! test -x "$WITH_CLANGPATH"; then
5166      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5167 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5168    { (exit 1); exit 1; }; }
5169    fi
5170 elif test "$with_built_clang" = "yes"; then
5171    WITH_BUILT_CLANG=1
5172 elif test "$with_built_clang" = "no"; then
5173    WITH_BUILT_CLANG=0
5174 else
5175    if test "$with_built_clang" != "check"; then
5176       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5177 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5178    { (exit 1); exit 1; }; }
5179    fi
5180
5181    if test -f ${srcdir}/tools/clang/README.txt; then
5182      WITH_BUILT_CLANG=1
5183    fi
5184 fi
5185
5186 if ! test -z "$WITH_CLANGPATH"; then
5187    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5188 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5189    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5190 elif test "$WITH_BUILT_CLANG" = "1"; then
5191    { echo "$as_me:$LINENO: result: built" >&5
5192 echo "${ECHO_T}built" >&6; }
5193 else
5194    { echo "$as_me:$LINENO: result: none" >&5
5195 echo "${ECHO_T}none" >&6; }
5196 fi
5197 CLANGPATH=$WITH_CLANGPATH
5198
5199 CLANGXXPATH=$WITH_CLANGXXPATH
5200
5201 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5202
5203
5204
5205 # Check whether --with-optimize-option was given.
5206 if test "${with_optimize_option+set}" = set; then
5207   withval=$with_optimize_option;
5208 else
5209   withval=default
5210 fi
5211
5212 { echo "$as_me:$LINENO: checking optimization flags" >&5
5213 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5214 case "$withval" in
5215   default)
5216     case "$llvm_cv_os_type" in
5217     FreeBSD) optimize_option=-O2 ;;
5218     MingW) optimize_option=-O2 ;;
5219     *)     optimize_option=-O3 ;;
5220     esac ;;
5221   *) optimize_option="$withval" ;;
5222 esac
5223 OPTIMIZE_OPTION=$optimize_option
5224
5225 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5226 echo "${ECHO_T}$optimize_option" >&6; }
5227
5228
5229 # Check whether --with-extra-options was given.
5230 if test "${with_extra_options+set}" = set; then
5231   withval=$with_extra_options;
5232 else
5233   withval=default
5234 fi
5235
5236 case "$withval" in
5237   default) EXTRA_OPTIONS= ;;
5238   *) EXTRA_OPTIONS=$withval ;;
5239 esac
5240 EXTRA_OPTIONS=$EXTRA_OPTIONS
5241
5242
5243 # Check whether --enable-bindings was given.
5244 if test "${enable_bindings+set}" = set; then
5245   enableval=$enable_bindings;
5246 else
5247   enableval=default
5248 fi
5249
5250 BINDINGS_TO_BUILD=""
5251 case "$enableval" in
5252   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5253   all ) BINDINGS_TO_BUILD="ocaml" ;;
5254   none | no) BINDINGS_TO_BUILD="" ;;
5255   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5256       case "$a_binding" in
5257         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5258         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5259 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5260    { (exit 1); exit 1; }; } ;;
5261       esac
5262   done
5263   ;;
5264 esac
5265
5266
5267 # Check whether --with-ocaml-libdir was given.
5268 if test "${with_ocaml_libdir+set}" = set; then
5269   withval=$with_ocaml_libdir;
5270 else
5271   withval=auto
5272 fi
5273
5274 case "$withval" in
5275   auto) with_ocaml_libdir="$withval" ;;
5276   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5277   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5278 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5279    { (exit 1); exit 1; }; } ;;
5280 esac
5281
5282
5283 # Check whether --with-c-include-dirs was given.
5284 if test "${with_c_include_dirs+set}" = set; then
5285   withval=$with_c_include_dirs;
5286 else
5287   withval=""
5288 fi
5289
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define C_INCLUDE_DIRS "$withval"
5293 _ACEOF
5294
5295
5296
5297 # Check whether --with-cxx-include-root was given.
5298 if test "${with_cxx_include_root+set}" = set; then
5299   withval=$with_cxx_include_root;
5300 else
5301   withval=""
5302 fi
5303
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define CXX_INCLUDE_ROOT "$withval"
5307 _ACEOF
5308
5309
5310
5311 # Check whether --with-cxx-include-arch was given.
5312 if test "${with_cxx_include_arch+set}" = set; then
5313   withval=$with_cxx_include_arch;
5314 else
5315   withval=""
5316 fi
5317
5318
5319 cat >>confdefs.h <<_ACEOF
5320 #define CXX_INCLUDE_ARCH "$withval"
5321 _ACEOF
5322
5323
5324
5325 # Check whether --with-cxx-include-32bit-dir was given.
5326 if test "${with_cxx_include_32bit_dir+set}" = set; then
5327   withval=$with_cxx_include_32bit_dir;
5328 else
5329   withval=""
5330 fi
5331
5332
5333 cat >>confdefs.h <<_ACEOF
5334 #define CXX_INCLUDE_32BIT_DIR "$withval"
5335 _ACEOF
5336
5337
5338
5339 # Check whether --with-cxx-include-64bit-dir was given.
5340 if test "${with_cxx_include_64bit_dir+set}" = set; then
5341   withval=$with_cxx_include_64bit_dir;
5342 else
5343   withval=""
5344 fi
5345
5346
5347 cat >>confdefs.h <<_ACEOF
5348 #define CXX_INCLUDE_64BIT_DIR "$withval"
5349 _ACEOF
5350
5351
5352
5353 # Check whether --with-binutils-include was given.
5354 if test "${with_binutils_include+set}" = set; then
5355   withval=$with_binutils_include;
5356 else
5357   withval=default
5358 fi
5359
5360 case "$withval" in
5361   default) WITH_BINUTILS_INCDIR=default ;;
5362   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5363   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366 esac
5367 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369
5370   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374    { (exit 1); exit 1; }; };
5375   fi
5376 fi
5377
5378 # Check whether --enable-libffi was given.
5379 if test "${enable_libffi+set}" = set; then
5380   enableval=$enable_libffi; case "$enableval" in
5381     yes) llvm_cv_enable_libffi="yes" ;;
5382     no)  llvm_cv_enable_libffi="no"  ;;
5383     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5384 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5385    { (exit 1); exit 1; }; } ;;
5386   esac
5387 else
5388   llvm_cv_enable_libffi=no
5389 fi
5390
5391
5392
5393 ac_ext=c
5394 ac_cpp='$CPP $CPPFLAGS'
5395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5399 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5400 # On Suns, sometimes $CPP names a directory.
5401 if test -n "$CPP" && test -d "$CPP"; then
5402   CPP=
5403 fi
5404 if test -z "$CPP"; then
5405   if test "${ac_cv_prog_CPP+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408       # Double quotes because CPP needs to be expanded
5409     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410     do
5411       ac_preproc_ok=false
5412 for ac_c_preproc_warn_flag in '' yes
5413 do
5414   # Use a header file that comes with gcc, so configuring glibc
5415   # with a fresh cross-compiler works.
5416   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5417   # <limits.h> exists even on freestanding compilers.
5418   # On the NeXT, cc -E runs the code through the compiler's parser,
5419   # not just through cpp. "Syntax error" is here to catch this case.
5420   cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 #ifdef __STDC__
5427 # include <limits.h>
5428 #else
5429 # include <assert.h>
5430 #endif
5431                      Syntax error
5432 _ACEOF
5433 if { (ac_try="$ac_cpp conftest.$ac_ext"
5434 case "(($ac_try" in
5435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436   *) ac_try_echo=$ac_try;;
5437 esac
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } >/dev/null; then
5446   if test -s conftest.err; then
5447     ac_cpp_err=$ac_c_preproc_warn_flag
5448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5449   else
5450     ac_cpp_err=
5451   fi
5452 else
5453   ac_cpp_err=yes
5454 fi
5455 if test -z "$ac_cpp_err"; then
5456   :
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461   # Broken: fails on valid input.
5462 continue
5463 fi
5464
5465 rm -f conftest.err conftest.$ac_ext
5466
5467   # OK, works on sane cases.  Now check whether nonexistent headers
5468   # can be detected and how.
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 #include <ac_nonexistent.h>
5476 _ACEOF
5477 if { (ac_try="$ac_cpp conftest.$ac_ext"
5478 case "(($ac_try" in
5479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480   *) ac_try_echo=$ac_try;;
5481 esac
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } >/dev/null; then
5490   if test -s conftest.err; then
5491     ac_cpp_err=$ac_c_preproc_warn_flag
5492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493   else
5494     ac_cpp_err=
5495   fi
5496 else
5497   ac_cpp_err=yes
5498 fi
5499 if test -z "$ac_cpp_err"; then
5500   # Broken: success on invalid input.
5501 continue
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506   # Passes both tests.
5507 ac_preproc_ok=:
5508 break
5509 fi
5510
5511 rm -f conftest.err conftest.$ac_ext
5512
5513 done
5514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515 rm -f conftest.err conftest.$ac_ext
5516 if $ac_preproc_ok; then
5517   break
5518 fi
5519
5520     done
5521     ac_cv_prog_CPP=$CPP
5522
5523 fi
5524   CPP=$ac_cv_prog_CPP
5525 else
5526   ac_cv_prog_CPP=$CPP
5527 fi
5528 { echo "$as_me:$LINENO: result: $CPP" >&5
5529 echo "${ECHO_T}$CPP" >&6; }
5530 ac_preproc_ok=false
5531 for ac_c_preproc_warn_flag in '' yes
5532 do
5533   # Use a header file that comes with gcc, so configuring glibc
5534   # with a fresh cross-compiler works.
5535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5536   # <limits.h> exists even on freestanding compilers.
5537   # On the NeXT, cc -E runs the code through the compiler's parser,
5538   # not just through cpp. "Syntax error" is here to catch this case.
5539   cat >conftest.$ac_ext <<_ACEOF
5540 /* confdefs.h.  */
5541 _ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h.  */
5545 #ifdef __STDC__
5546 # include <limits.h>
5547 #else
5548 # include <assert.h>
5549 #endif
5550                      Syntax error
5551 _ACEOF
5552 if { (ac_try="$ac_cpp conftest.$ac_ext"
5553 case "(($ac_try" in
5554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555   *) ac_try_echo=$ac_try;;
5556 esac
5557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5559   ac_status=$?
5560   grep -v '^ *+' conftest.er1 >conftest.err
5561   rm -f conftest.er1
5562   cat conftest.err >&5
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } >/dev/null; then
5565   if test -s conftest.err; then
5566     ac_cpp_err=$ac_c_preproc_warn_flag
5567     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5568   else
5569     ac_cpp_err=
5570   fi
5571 else
5572   ac_cpp_err=yes
5573 fi
5574 if test -z "$ac_cpp_err"; then
5575   :
5576 else
5577   echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5579
5580   # Broken: fails on valid input.
5581 continue
5582 fi
5583
5584 rm -f conftest.err conftest.$ac_ext
5585
5586   # OK, works on sane cases.  Now check whether nonexistent headers
5587   # can be detected and how.
5588   cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 #include <ac_nonexistent.h>
5595 _ACEOF
5596 if { (ac_try="$ac_cpp conftest.$ac_ext"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } >/dev/null; then
5609   if test -s conftest.err; then
5610     ac_cpp_err=$ac_c_preproc_warn_flag
5611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5612   else
5613     ac_cpp_err=
5614   fi
5615 else
5616   ac_cpp_err=yes
5617 fi
5618 if test -z "$ac_cpp_err"; then
5619   # Broken: success on invalid input.
5620 continue
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625   # Passes both tests.
5626 ac_preproc_ok=:
5627 break
5628 fi
5629
5630 rm -f conftest.err conftest.$ac_ext
5631
5632 done
5633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634 rm -f conftest.err conftest.$ac_ext
5635 if $ac_preproc_ok; then
5636   :
5637 else
5638   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5639 See \`config.log' for more details." >&5
5640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5641 See \`config.log' for more details." >&2;}
5642    { (exit 1); exit 1; }; }
5643 fi
5644
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656 if test -n "$ac_tool_prefix"; then
5657   for ac_prog in gcc
5658   do
5659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5663 if test "${ac_cv_prog_CC+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   if test -n "$CC"; then
5667   ac_cv_prog_CC="$CC" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674   for ac_exec_ext in '' $ac_executable_extensions; do
5675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5676     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 CC=$ac_cv_prog_CC
5687 if test -n "$CC"; then
5688   { echo "$as_me:$LINENO: result: $CC" >&5
5689 echo "${ECHO_T}$CC" >&6; }
5690 else
5691   { echo "$as_me:$LINENO: result: no" >&5
5692 echo "${ECHO_T}no" >&6; }
5693 fi
5694
5695
5696     test -n "$CC" && break
5697   done
5698 fi
5699 if test -z "$CC"; then
5700   ac_ct_CC=$CC
5701   for ac_prog in gcc
5702 do
5703   # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   if test -n "$ac_ct_CC"; then
5711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718   for ac_exec_ext in '' $ac_executable_extensions; do
5719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5720     ac_cv_prog_ac_ct_CC="$ac_prog"
5721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725 done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5731 if test -n "$ac_ct_CC"; then
5732   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5733 echo "${ECHO_T}$ac_ct_CC" >&6; }
5734 else
5735   { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5737 fi
5738
5739
5740   test -n "$ac_ct_CC" && break
5741 done
5742
5743   if test "x$ac_ct_CC" = x; then
5744     CC=""
5745   else
5746     case $cross_compiling:$ac_tool_warned in
5747 yes:)
5748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5749 whose name does not start with the host triplet.  If you think this
5750 configuration is useful to you, please write to autoconf@gnu.org." >&5
5751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5752 whose name does not start with the host triplet.  If you think this
5753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756     CC=$ac_ct_CC
5757   fi
5758 fi
5759
5760
5761 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5762 See \`config.log' for more details." >&5
5763 echo "$as_me: error: no acceptable C compiler found in \$PATH
5764 See \`config.log' for more details." >&2;}
5765    { (exit 1); exit 1; }; }
5766
5767 # Provide some information about the compiler.
5768 echo "$as_me:$LINENO: checking for C compiler version" >&5
5769 ac_compiler=`set X $ac_compile; echo $2`
5770 { (ac_try="$ac_compiler --version >&5"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776   (eval "$ac_compiler --version >&5") 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }
5780 { (ac_try="$ac_compiler -v >&5"
5781 case "(($ac_try" in
5782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783   *) ac_try_echo=$ac_try;;
5784 esac
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786   (eval "$ac_compiler -v >&5") 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }
5790 { (ac_try="$ac_compiler -V >&5"
5791 case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_compiler -V >&5") 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }
5800
5801 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   cat >conftest.$ac_ext <<_ACEOF
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812
5813 int
5814 main ()
5815 {
5816 #ifndef __GNUC__
5817        choke me
5818 #endif
5819
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828   *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831   (eval "$ac_compile") 2>conftest.er1
5832   ac_status=$?
5833   grep -v '^ *+' conftest.er1 >conftest.err
5834   rm -f conftest.er1
5835   cat conftest.err >&5
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } &&
5838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5839   { (case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844   (eval "$ac_try") 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; } &&
5848          { ac_try='test -s conftest.$ac_objext'
5849   { (case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854   (eval "$ac_try") 2>&5
5855   ac_status=$?
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); }; }; then
5858   ac_compiler_gnu=yes
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863         ac_compiler_gnu=no
5864 fi
5865
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5868
5869 fi
5870 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5871 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5872 GCC=`test $ac_compiler_gnu = yes && echo yes`
5873 ac_test_CFLAGS=${CFLAGS+set}
5874 ac_save_CFLAGS=$CFLAGS
5875 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5876 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5877 if test "${ac_cv_prog_cc_g+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   ac_save_c_werror_flag=$ac_c_werror_flag
5881    ac_c_werror_flag=yes
5882    ac_cv_prog_cc_g=no
5883    CFLAGS="-g"
5884    cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890
5891 int
5892 main ()
5893 {
5894
5895   ;
5896   return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (ac_try="$ac_compile"
5901 case "(($ac_try" in
5902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903   *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906   (eval "$ac_compile") 2>conftest.er1
5907   ac_status=$?
5908   grep -v '^ *+' conftest.er1 >conftest.err
5909   rm -f conftest.er1
5910   cat conftest.err >&5
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } &&
5913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5914   { (case "(($ac_try" in
5915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916   *) ac_try_echo=$ac_try;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919   (eval "$ac_try") 2>&5
5920   ac_status=$?
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); }; } &&
5923          { ac_try='test -s conftest.$ac_objext'
5924   { (case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_try") 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }; }; then
5933   ac_cv_prog_cc_g=yes
5934 else
5935   echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938         CFLAGS=""
5939       cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h.  */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h.  */
5945
5946 int
5947 main ()
5948 {
5949
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958   *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961   (eval "$ac_compile") 2>conftest.er1
5962   ac_status=$?
5963   grep -v '^ *+' conftest.er1 >conftest.err
5964   rm -f conftest.er1
5965   cat conftest.err >&5
5966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967   (exit $ac_status); } &&
5968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5969   { (case "(($ac_try" in
5970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971   *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974   (eval "$ac_try") 2>&5
5975   ac_status=$?
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); }; } &&
5978          { ac_try='test -s conftest.$ac_objext'
5979   { (case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984   (eval "$ac_try") 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   :
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993         ac_c_werror_flag=$ac_save_c_werror_flag
5994          CFLAGS="-g"
5995          cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001
6002 int
6003 main ()
6004 {
6005
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_compile") 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } &&
6024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025   { (case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030   (eval "$ac_try") 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; } &&
6034          { ac_try='test -s conftest.$ac_objext'
6035   { (case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_try") 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   ac_cv_prog_cc_g=yes
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 fi
6054
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 fi
6057
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059    ac_c_werror_flag=$ac_save_c_werror_flag
6060 fi
6061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6063 if test "$ac_test_CFLAGS" = set; then
6064   CFLAGS=$ac_save_CFLAGS
6065 elif test $ac_cv_prog_cc_g = yes; then
6066   if test "$GCC" = yes; then
6067     CFLAGS="-g -O2"
6068   else
6069     CFLAGS="-g"
6070   fi
6071 else
6072   if test "$GCC" = yes; then
6073     CFLAGS="-O2"
6074   else
6075     CFLAGS=
6076   fi
6077 fi
6078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6080 if test "${ac_cv_prog_cc_c89+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   ac_cv_prog_cc_c89=no
6084 ac_save_CC=$CC
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h.  */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h.  */
6091 #include <stdarg.h>
6092 #include <stdio.h>
6093 #include <sys/types.h>
6094 #include <sys/stat.h>
6095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6096 struct buf { int x; };
6097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6098 static char *e (p, i)
6099      char **p;
6100      int i;
6101 {
6102   return p[i];
6103 }
6104 static char *f (char * (*g) (char **, int), char **p, ...)
6105 {
6106   char *s;
6107   va_list v;
6108   va_start (v,p);
6109   s = g (p, va_arg (v,int));
6110   va_end (v);
6111   return s;
6112 }
6113
6114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6115    function prototypes and stuff, but not '\xHH' hex character constants.
6116    These don't provoke an error unfortunately, instead are silently treated
6117    as 'x'.  The following induces an error, until -std is added to get
6118    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6119    array size at least.  It's necessary to write '\x00'==0 to get something
6120    that's true only with -std.  */
6121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6122
6123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6124    inside strings and character constants.  */
6125 #define FOO(x) 'x'
6126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6127
6128 int test (int i, double x);
6129 struct s1 {int (*f) (int a);};
6130 struct s2 {int (*f) (double a);};
6131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6132 int argc;
6133 char **argv;
6134 int
6135 main ()
6136 {
6137 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6138   ;
6139   return 0;
6140 }
6141 _ACEOF
6142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6143         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6144 do
6145   CC="$ac_save_CC $ac_arg"
6146   rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_compile") 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } &&
6160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6161   { (case "(($ac_try" in
6162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163   *) ac_try_echo=$ac_try;;
6164 esac
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166   (eval "$ac_try") 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; } &&
6170          { ac_try='test -s conftest.$ac_objext'
6171   { (case "(($ac_try" in
6172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173   *) ac_try_echo=$ac_try;;
6174 esac
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176   (eval "$ac_try") 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   ac_cv_prog_cc_c89=$ac_arg
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185
6186 fi
6187
6188 rm -f core conftest.err conftest.$ac_objext
6189   test "x$ac_cv_prog_cc_c89" != "xno" && break
6190 done
6191 rm -f conftest.$ac_ext
6192 CC=$ac_save_CC
6193
6194 fi
6195 # AC_CACHE_VAL
6196 case "x$ac_cv_prog_cc_c89" in
6197   x)
6198     { echo "$as_me:$LINENO: result: none needed" >&5
6199 echo "${ECHO_T}none needed" >&6; } ;;
6200   xno)
6201     { echo "$as_me:$LINENO: result: unsupported" >&5
6202 echo "${ECHO_T}unsupported" >&6; } ;;
6203   *)
6204     CC="$CC $ac_cv_prog_cc_c89"
6205     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6206 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6207 esac
6208
6209
6210 ac_ext=c
6211 ac_cpp='$CPP $CPPFLAGS'
6212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216 ac_ext=cpp
6217 ac_cpp='$CXXCPP $CPPFLAGS'
6218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6221 if test -z "$CXX"; then
6222   if test -n "$CCC"; then
6223     CXX=$CCC
6224   else
6225     if test -n "$ac_tool_prefix"; then
6226   for ac_prog in g++
6227   do
6228     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_prog_CXX+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   if test -n "$CXX"; then
6236   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241   IFS=$as_save_IFS
6242   test -z "$as_dir" && as_dir=.
6243   for ac_exec_ext in '' $ac_executable_extensions; do
6244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6245     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247     break 2
6248   fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 CXX=$ac_cv_prog_CXX
6256 if test -n "$CXX"; then
6257   { echo "$as_me:$LINENO: result: $CXX" >&5
6258 echo "${ECHO_T}$CXX" >&6; }
6259 else
6260   { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6262 fi
6263
6264
6265     test -n "$CXX" && break
6266   done
6267 fi
6268 if test -z "$CXX"; then
6269   ac_ct_CXX=$CXX
6270   for ac_prog in g++
6271 do
6272   # Extract the first word of "$ac_prog", so it can be a program name with args.
6273 set dummy $ac_prog; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   if test -n "$ac_ct_CXX"; then
6280   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289     ac_cv_prog_ac_ct_CXX="$ac_prog"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6300 if test -n "$ac_ct_CXX"; then
6301   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6302 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308
6309   test -n "$ac_ct_CXX" && break
6310 done
6311
6312   if test "x$ac_ct_CXX" = x; then
6313     CXX="g++"
6314   else
6315     case $cross_compiling:$ac_tool_warned in
6316 yes:)
6317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet.  If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&5
6320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321 whose name does not start with the host triplet.  If you think this
6322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325     CXX=$ac_ct_CXX
6326   fi
6327 fi
6328
6329   fi
6330 fi
6331 # Provide some information about the compiler.
6332 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6333 ac_compiler=`set X $ac_compile; echo $2`
6334 { (ac_try="$ac_compiler --version >&5"
6335 case "(($ac_try" in
6336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337   *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340   (eval "$ac_compiler --version >&5") 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }
6344 { (ac_try="$ac_compiler -v >&5"
6345 case "(($ac_try" in
6346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347   *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350   (eval "$ac_compiler -v >&5") 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }
6354 { (ac_try="$ac_compiler -V >&5"
6355 case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_compiler -V >&5") 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); }
6364
6365 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6366 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6367 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376
6377 int
6378 main ()
6379 {
6380 #ifndef __GNUC__
6381        choke me
6382 #endif
6383
6384   ;
6385   return 0;
6386 }
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6390 case "(($ac_try" in
6391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392   *) ac_try_echo=$ac_try;;
6393 esac
6394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6395   (eval "$ac_compile") 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6403   { (case "(($ac_try" in
6404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405   *) ac_try_echo=$ac_try;;
6406 esac
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408   (eval "$ac_try") 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; } &&
6412          { ac_try='test -s conftest.$ac_objext'
6413   { (case "(($ac_try" in
6414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415   *) ac_try_echo=$ac_try;;
6416 esac
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418   (eval "$ac_try") 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; }; then
6422   ac_compiler_gnu=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427         ac_compiler_gnu=no
6428 fi
6429
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6432
6433 fi
6434 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6435 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6436 GXX=`test $ac_compiler_gnu = yes && echo yes`
6437 ac_test_CXXFLAGS=${CXXFLAGS+set}
6438 ac_save_CXXFLAGS=$CXXFLAGS
6439 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6440 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6441 if test "${ac_cv_prog_cxx_g+set}" = set; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6445    ac_cxx_werror_flag=yes
6446    ac_cv_prog_cxx_g=no
6447    CXXFLAGS="-g"
6448    cat >conftest.$ac_ext <<_ACEOF
6449 /* confdefs.h.  */
6450 _ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h.  */
6454
6455 int
6456 main ()
6457 {
6458
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext
6464 if { (ac_try="$ac_compile"
6465 case "(($ac_try" in
6466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467   *) ac_try_echo=$ac_try;;
6468 esac
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470   (eval "$ac_compile") 2>conftest.er1
6471   ac_status=$?
6472   grep -v '^ *+' conftest.er1 >conftest.err
6473   rm -f conftest.er1
6474   cat conftest.err >&5
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6478   { (case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483   (eval "$ac_try") 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; } &&
6487          { ac_try='test -s conftest.$ac_objext'
6488   { (case "(($ac_try" in
6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490   *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493   (eval "$ac_try") 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   ac_cv_prog_cxx_g=yes
6498 else
6499   echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502         CXXFLAGS=""
6503       cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h.  */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h.  */
6509
6510 int
6511 main ()
6512 {
6513
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522   *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525   (eval "$ac_compile") 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6533   { (case "(($ac_try" in
6534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535   *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538   (eval "$ac_try") 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; } &&
6542          { ac_try='test -s conftest.$ac_objext'
6543   { (case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_try") 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; }; then
6552   :
6553 else
6554   echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6558          CXXFLAGS="-g"
6559          cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565
6566 int
6567 main ()
6568 {
6569
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6576 case "(($ac_try" in
6577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578   *) ac_try_echo=$ac_try;;
6579 esac
6580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6581   (eval "$ac_compile") 2>conftest.er1
6582   ac_status=$?
6583   grep -v '^ *+' conftest.er1 >conftest.err
6584   rm -f conftest.er1
6585   cat conftest.err >&5
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); } &&
6588          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6589   { (case "(($ac_try" in
6590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591   *) ac_try_echo=$ac_try;;
6592 esac
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594   (eval "$ac_try") 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); }; } &&
6598          { ac_try='test -s conftest.$ac_objext'
6599   { (case "(($ac_try" in
6600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601   *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604   (eval "$ac_try") 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_cv_prog_cxx_g=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613
6614 fi
6615
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 fi
6618
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 fi
6621
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6624 fi
6625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6626 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6627 if test "$ac_test_CXXFLAGS" = set; then
6628   CXXFLAGS=$ac_save_CXXFLAGS
6629 elif test $ac_cv_prog_cxx_g = yes; then
6630   if test "$GXX" = yes; then
6631     CXXFLAGS="-g -O2"
6632   else
6633     CXXFLAGS="-g"
6634   fi
6635 else
6636   if test "$GXX" = yes; then
6637     CXXFLAGS="-O2"
6638   else
6639     CXXFLAGS=
6640   fi
6641 fi
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
6648
6649 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6650 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6651 if test "${lt_cv_path_NM+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   if test -n "$NM"; then
6655   # Let the user override the test.
6656   lt_cv_path_NM="$NM"
6657 else
6658   lt_nm_to_check="${ac_tool_prefix}nm"
6659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6660     lt_nm_to_check="$lt_nm_to_check nm"
6661   fi
6662   for lt_tmp_nm in $lt_nm_to_check; do
6663     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6665       IFS="$lt_save_ifs"
6666       test -z "$ac_dir" && ac_dir=.
6667       tmp_nm="$ac_dir/$lt_tmp_nm"
6668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6669         # Check to see if the nm accepts a BSD-compat flag.
6670         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6671         #   nm: unknown option "B" ignored
6672         # Tru64's nm complains that /dev/null is an invalid object file
6673         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6674         */dev/null* | *'Invalid file or object type'*)
6675           lt_cv_path_NM="$tmp_nm -B"
6676           break
6677           ;;
6678         *)
6679           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6680           */dev/null*)
6681             lt_cv_path_NM="$tmp_nm -p"
6682             break
6683             ;;
6684           *)
6685             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6686             continue # so that we can try to find one that supports BSD flags
6687             ;;
6688           esac
6689           ;;
6690         esac
6691       fi
6692     done
6693     IFS="$lt_save_ifs"
6694   done
6695   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6696 fi
6697 fi
6698 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6699 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6700 NM="$lt_cv_path_NM"
6701
6702
6703
6704 { echo "$as_me:$LINENO: checking for GNU make" >&5
6705 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6706 if test "${llvm_cv_gnu_make_command+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   llvm_cv_gnu_make_command=''
6710  for a in "$MAKE" make gmake gnumake ; do
6711   if test -z "$a" ; then continue ; fi ;
6712   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6713   then
6714    llvm_cv_gnu_make_command=$a ;
6715    break;
6716   fi
6717  done
6718 fi
6719 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6720 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6721  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6722    ifGNUmake='' ;
6723  else
6724    ifGNUmake='#' ;
6725    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6726 echo "${ECHO_T}\"Not found\"" >&6; };
6727  fi
6728
6729
6730 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6731 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6732 LN_S=$as_ln_s
6733 if test "$LN_S" = "ln -s"; then
6734   { echo "$as_me:$LINENO: result: yes" >&5
6735 echo "${ECHO_T}yes" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6738 echo "${ECHO_T}no, using $LN_S" >&6; }
6739 fi
6740
6741 # Extract the first word of "cmp", so it can be a program name with args.
6742 set dummy cmp; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_CMP+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $CMP in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6751   ;;
6752   *)
6753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 for as_dir in $PATH
6755 do
6756   IFS=$as_save_IFS
6757   test -z "$as_dir" && as_dir=.
6758   for ac_exec_ext in '' $ac_executable_extensions; do
6759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762     break 2
6763   fi
6764 done
6765 done
6766 IFS=$as_save_IFS
6767
6768   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6769   ;;
6770 esac
6771 fi
6772 CMP=$ac_cv_path_CMP
6773 if test -n "$CMP"; then
6774   { echo "$as_me:$LINENO: result: $CMP" >&5
6775 echo "${ECHO_T}$CMP" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782 # Extract the first word of "cp", so it can be a program name with args.
6783 set dummy cp; ac_word=$2
6784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786 if test "${ac_cv_path_CP+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $CP in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6801     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6810   ;;
6811 esac
6812 fi
6813 CP=$ac_cv_path_CP
6814 if test -n "$CP"; then
6815   { echo "$as_me:$LINENO: result: $CP" >&5
6816 echo "${ECHO_T}$CP" >&6; }
6817 else
6818   { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6820 fi
6821
6822
6823 # Extract the first word of "date", so it can be a program name with args.
6824 set dummy date; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_path_DATE+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   case $DATE in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6833   ;;
6834   *)
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6851   ;;
6852 esac
6853 fi
6854 DATE=$ac_cv_path_DATE
6855 if test -n "$DATE"; then
6856   { echo "$as_me:$LINENO: result: $DATE" >&5
6857 echo "${ECHO_T}$DATE" >&6; }
6858 else
6859   { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 fi
6862
6863
6864 # Extract the first word of "find", so it can be a program name with args.
6865 set dummy find; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_path_FIND+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $FIND in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6892   ;;
6893 esac
6894 fi
6895 FIND=$ac_cv_path_FIND
6896 if test -n "$FIND"; then
6897   { echo "$as_me:$LINENO: result: $FIND" >&5
6898 echo "${ECHO_T}$FIND" >&6; }
6899 else
6900   { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6902 fi
6903
6904
6905 # Extract the first word of "grep", so it can be a program name with args.
6906 set dummy grep; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_path_GREP+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $GREP in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6933   ;;
6934 esac
6935 fi
6936 GREP=$ac_cv_path_GREP
6937 if test -n "$GREP"; then
6938   { echo "$as_me:$LINENO: result: $GREP" >&5
6939 echo "${ECHO_T}$GREP" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945
6946 # Extract the first word of "mkdir", so it can be a program name with args.
6947 set dummy mkdir; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_MKDIR+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $MKDIR in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6956   ;;
6957   *)
6958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6960 do
6961   IFS=$as_save_IFS
6962   test -z "$as_dir" && as_dir=.
6963   for ac_exec_ext in '' $ac_executable_extensions; do
6964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967     break 2
6968   fi
6969 done
6970 done
6971 IFS=$as_save_IFS
6972
6973   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6974   ;;
6975 esac
6976 fi
6977 MKDIR=$ac_cv_path_MKDIR
6978 if test -n "$MKDIR"; then
6979   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6980 echo "${ECHO_T}$MKDIR" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 # Extract the first word of "mv", so it can be a program name with args.
6988 set dummy mv; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_MV+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   case $MV in
6995   [\\/]* | ?:[\\/]*)
6996   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6997   ;;
6998   *)
6999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7015   ;;
7016 esac
7017 fi
7018 MV=$ac_cv_path_MV
7019 if test -n "$MV"; then
7020   { echo "$as_me:$LINENO: result: $MV" >&5
7021 echo "${ECHO_T}$MV" >&6; }
7022 else
7023   { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027
7028 if test -n "$ac_tool_prefix"; then
7029   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_RANLIB+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   if test -n "$RANLIB"; then
7037   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 RANLIB=$ac_cv_prog_RANLIB
7057 if test -n "$RANLIB"; then
7058   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7059 echo "${ECHO_T}$RANLIB" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_RANLIB"; then
7068   ac_ct_RANLIB=$RANLIB
7069   # Extract the first word of "ranlib", so it can be a program name with args.
7070 set dummy ranlib; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   if test -n "$ac_ct_RANLIB"; then
7077   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084   for ac_exec_ext in '' $ac_executable_extensions; do
7085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7086     ac_cv_prog_ac_ct_RANLIB="ranlib"
7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7097 if test -n "$ac_ct_RANLIB"; then
7098   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105   if test "x$ac_ct_RANLIB" = x; then
7106     RANLIB=":"
7107   else
7108     case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet.  If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet.  If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118     RANLIB=$ac_ct_RANLIB
7119   fi
7120 else
7121   RANLIB="$ac_cv_prog_RANLIB"
7122 fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}ar; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_AR+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$AR"; then
7133   ac_cv_prog_AR="$AR" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_AR="${ac_tool_prefix}ar"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 AR=$ac_cv_prog_AR
7153 if test -n "$AR"; then
7154   { echo "$as_me:$LINENO: result: $AR" >&5
7155 echo "${ECHO_T}$AR" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_AR"; then
7164   ac_ct_AR=$AR
7165   # Extract the first word of "ar", so it can be a program name with args.
7166 set dummy ar; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   if test -n "$ac_ct_AR"; then
7173   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_ac_ct_AR="ar"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7193 if test -n "$ac_ct_AR"; then
7194   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7195 echo "${ECHO_T}$ac_ct_AR" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_AR" = x; then
7202     AR="false"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet.  If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet.  If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214     AR=$ac_ct_AR
7215   fi
7216 else
7217   AR="$ac_cv_prog_AR"
7218 fi
7219
7220 # Extract the first word of "rm", so it can be a program name with args.
7221 set dummy rm; ac_word=$2
7222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224 if test "${ac_cv_path_RM+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   case $RM in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7230   ;;
7231   *)
7232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237   for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7248   ;;
7249 esac
7250 fi
7251 RM=$ac_cv_path_RM
7252 if test -n "$RM"; then
7253   { echo "$as_me:$LINENO: result: $RM" >&5
7254 echo "${ECHO_T}$RM" >&6; }
7255 else
7256   { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7258 fi
7259
7260
7261 # Extract the first word of "sed", so it can be a program name with args.
7262 set dummy sed; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_SED+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $SED in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7271   ;;
7272   *)
7273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286 IFS=$as_save_IFS
7287
7288   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7289   ;;
7290 esac
7291 fi
7292 SED=$ac_cv_path_SED
7293 if test -n "$SED"; then
7294   { echo "$as_me:$LINENO: result: $SED" >&5
7295 echo "${ECHO_T}$SED" >&6; }
7296 else
7297   { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7299 fi
7300
7301
7302 # Extract the first word of "tar", so it can be a program name with args.
7303 set dummy tar; ac_word=$2
7304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7306 if test "${ac_cv_path_TAR+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case $TAR in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7312   ;;
7313   *)
7314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317   IFS=$as_save_IFS
7318   test -z "$as_dir" && as_dir=.
7319   for ac_exec_ext in '' $ac_executable_extensions; do
7320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7321     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323     break 2
7324   fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7330   ;;
7331 esac
7332 fi
7333 TAR=$ac_cv_path_TAR
7334 if test -n "$TAR"; then
7335   { echo "$as_me:$LINENO: result: $TAR" >&5
7336 echo "${ECHO_T}$TAR" >&6; }
7337 else
7338   { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342
7343 # Extract the first word of "pwd", so it can be a program name with args.
7344 set dummy pwd; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_BINPWD+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $BINPWD in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7371   ;;
7372 esac
7373 fi
7374 BINPWD=$ac_cv_path_BINPWD
7375 if test -n "$BINPWD"; then
7376   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7377 echo "${ECHO_T}$BINPWD" >&6; }
7378 else
7379   { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7381 fi
7382
7383
7384
7385 # Extract the first word of "Graphviz", so it can be a program name with args.
7386 set dummy Graphviz; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $GRAPHVIZ in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7413   ;;
7414 esac
7415 fi
7416 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7417 if test -n "$GRAPHVIZ"; then
7418   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7419 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7420 else
7421   { echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6; }
7423 fi
7424
7425
7426 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7427
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_GRAPHVIZ 1
7430 _ACEOF
7431
7432     if test "$llvm_cv_os_type" = "MingW" ; then
7433     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7434   fi
7435
7436 cat >>confdefs.h <<_ACEOF
7437 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7438 _ACEOF
7439
7440 fi
7441 # Extract the first word of "dot", so it can be a program name with args.
7442 set dummy dot; ac_word=$2
7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7445 if test "${ac_cv_path_DOT+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448   case $DOT in
7449   [\\/]* | ?:[\\/]*)
7450   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7451   ;;
7452   *)
7453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458   for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7469   ;;
7470 esac
7471 fi
7472 DOT=$ac_cv_path_DOT
7473 if test -n "$DOT"; then
7474   { echo "$as_me:$LINENO: result: $DOT" >&5
7475 echo "${ECHO_T}$DOT" >&6; }
7476 else
7477   { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7479 fi
7480
7481
7482 if test "$DOT" != "echo dot" ; then
7483
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_DOT 1
7486 _ACEOF
7487
7488     if test "$llvm_cv_os_type" = "MingW" ; then
7489     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7490   fi
7491
7492 cat >>confdefs.h <<_ACEOF
7493 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7494 _ACEOF
7495
7496 fi
7497 # Extract the first word of "fdp", so it can be a program name with args.
7498 set dummy fdp; ac_word=$2
7499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501 if test "${ac_cv_path_FDP+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   case $FDP in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514   for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7525   ;;
7526 esac
7527 fi
7528 FDP=$ac_cv_path_FDP
7529 if test -n "$FDP"; then
7530   { echo "$as_me:$LINENO: result: $FDP" >&5
7531 echo "${ECHO_T}$FDP" >&6; }
7532 else
7533   { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535 fi
7536
7537
7538 if test "$FDP" != "echo fdp" ; then
7539
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_FDP 1
7542 _ACEOF
7543
7544     if test "$llvm_cv_os_type" = "MingW" ; then
7545     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7546   fi
7547
7548 cat >>confdefs.h <<_ACEOF
7549 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7550 _ACEOF
7551
7552 fi
7553 # Extract the first word of "neato", so it can be a program name with args.
7554 set dummy neato; ac_word=$2
7555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557 if test "${ac_cv_path_NEATO+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   case $NEATO in
7561   [\\/]* | ?:[\\/]*)
7562   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7563   ;;
7564   *)
7565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570   for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7581   ;;
7582 esac
7583 fi
7584 NEATO=$ac_cv_path_NEATO
7585 if test -n "$NEATO"; then
7586   { echo "$as_me:$LINENO: result: $NEATO" >&5
7587 echo "${ECHO_T}$NEATO" >&6; }
7588 else
7589   { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7591 fi
7592
7593
7594 if test "$NEATO" != "echo neato" ; then
7595
7596 cat >>confdefs.h <<\_ACEOF
7597 #define HAVE_NEATO 1
7598 _ACEOF
7599
7600     if test "$llvm_cv_os_type" = "MingW" ; then
7601     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7602   fi
7603
7604 cat >>confdefs.h <<_ACEOF
7605 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7606 _ACEOF
7607
7608 fi
7609 # Extract the first word of "twopi", so it can be a program name with args.
7610 set dummy twopi; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_TWOPI+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $TWOPI in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7637   ;;
7638 esac
7639 fi
7640 TWOPI=$ac_cv_path_TWOPI
7641 if test -n "$TWOPI"; then
7642   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7643 echo "${ECHO_T}$TWOPI" >&6; }
7644 else
7645   { echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6; }
7647 fi
7648
7649
7650 if test "$TWOPI" != "echo twopi" ; then
7651
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_TWOPI 1
7654 _ACEOF
7655
7656     if test "$llvm_cv_os_type" = "MingW" ; then
7657     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7658   fi
7659
7660 cat >>confdefs.h <<_ACEOF
7661 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7662 _ACEOF
7663
7664 fi
7665 # Extract the first word of "circo", so it can be a program name with args.
7666 set dummy circo; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_CIRCO+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   case $CIRCO in
7673   [\\/]* | ?:[\\/]*)
7674   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7675   ;;
7676   *)
7677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682   for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7693   ;;
7694 esac
7695 fi
7696 CIRCO=$ac_cv_path_CIRCO
7697 if test -n "$CIRCO"; then
7698   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7699 echo "${ECHO_T}$CIRCO" >&6; }
7700 else
7701   { echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6; }
7703 fi
7704
7705
7706 if test "$CIRCO" != "echo circo" ; then
7707
7708 cat >>confdefs.h <<\_ACEOF
7709 #define HAVE_CIRCO 1
7710 _ACEOF
7711
7712     if test "$llvm_cv_os_type" = "MingW" ; then
7713     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7714   fi
7715
7716 cat >>confdefs.h <<_ACEOF
7717 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7718 _ACEOF
7719
7720 fi
7721 for ac_prog in gv gsview32
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_GV+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   case $GV in
7731   [\\/]* | ?:[\\/]*)
7732   ac_cv_path_GV="$GV" # 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_GV="$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 GV=$ac_cv_path_GV
7754 if test -n "$GV"; then
7755   { echo "$as_me:$LINENO: result: $GV" >&5
7756 echo "${ECHO_T}$GV" >&6; }
7757 else
7758   { echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6; }
7760 fi
7761
7762
7763   test -n "$GV" && break
7764 done
7765 test -n "$GV" || GV="echo gv"
7766
7767 if test "$GV" != "echo gv" ; then
7768
7769 cat >>confdefs.h <<\_ACEOF
7770 #define HAVE_GV 1
7771 _ACEOF
7772
7773     if test "$llvm_cv_os_type" = "MingW" ; then
7774     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7775   fi
7776
7777 cat >>confdefs.h <<_ACEOF
7778 #define LLVM_PATH_GV "$GV${EXEEXT}"
7779 _ACEOF
7780
7781 fi
7782 # Extract the first word of "dotty", so it can be a program name with args.
7783 set dummy dotty; ac_word=$2
7784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7786 if test "${ac_cv_path_DOTTY+set}" = set; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789   case $DOTTY in
7790   [\\/]* | ?:[\\/]*)
7791   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7792   ;;
7793   *)
7794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7810   ;;
7811 esac
7812 fi
7813 DOTTY=$ac_cv_path_DOTTY
7814 if test -n "$DOTTY"; then
7815   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7816 echo "${ECHO_T}$DOTTY" >&6; }
7817 else
7818   { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7820 fi
7821
7822
7823 if test "$DOTTY" != "echo dotty" ; then
7824
7825 cat >>confdefs.h <<\_ACEOF
7826 #define HAVE_DOTTY 1
7827 _ACEOF
7828
7829     if test "$llvm_cv_os_type" = "MingW" ; then
7830     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7831   fi
7832
7833 cat >>confdefs.h <<_ACEOF
7834 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7835 _ACEOF
7836
7837 fi
7838 # Extract the first word of "xdot.py", so it can be a program name with args.
7839 set dummy xdot.py; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   case $XDOT_PY in
7846   [\\/]* | ?:[\\/]*)
7847   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7848   ;;
7849   *)
7850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7866   ;;
7867 esac
7868 fi
7869 XDOT_PY=$ac_cv_path_XDOT_PY
7870 if test -n "$XDOT_PY"; then
7871   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7872 echo "${ECHO_T}$XDOT_PY" >&6; }
7873 else
7874   { echo "$as_me:$LINENO: result: no" >&5
7875 echo "${ECHO_T}no" >&6; }
7876 fi
7877
7878
7879 if test "$XDOT_PY" != "echo xdot.py" ; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_XDOT_PY 1
7883 _ACEOF
7884
7885     if test "$llvm_cv_os_type" = "MingW" ; then
7886     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7887   fi
7888
7889 cat >>confdefs.h <<_ACEOF
7890 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7891 _ACEOF
7892
7893 fi
7894
7895
7896 # Extract the first word of "perl", so it can be a program name with args.
7897 set dummy perl; ac_word=$2
7898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7900 if test "${ac_cv_path_PERL+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   case $PERL in
7904   [\\/]* | ?:[\\/]*)
7905   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7906   ;;
7907   *)
7908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913   for ac_exec_ext in '' $ac_executable_extensions; do
7914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7915     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7924   ;;
7925 esac
7926 fi
7927 PERL=$ac_cv_path_PERL
7928 if test -n "$PERL"; then
7929   { echo "$as_me:$LINENO: result: $PERL" >&5
7930 echo "${ECHO_T}$PERL" >&6; }
7931 else
7932   { echo "$as_me:$LINENO: result: no" >&5
7933 echo "${ECHO_T}no" >&6; }
7934 fi
7935
7936
7937 if test "$PERL" != "none"; then
7938   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7939 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7940   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7941     { echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6; }
7943   else
7944     PERL=none
7945     { echo "$as_me:$LINENO: result: not found" >&5
7946 echo "${ECHO_T}not found" >&6; }
7947   fi
7948 fi
7949
7950
7951 if test x"$PERL" = xnone; then
7952    HAVE_PERL=0
7953
7954    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7955 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7956    { (exit 1); exit 1; }; }
7957 else
7958    HAVE_PERL=1
7959
7960 fi
7961
7962 # Find a good install program.  We prefer a C program (faster),
7963 # so one script is as good as another.  But avoid the broken or
7964 # incompatible versions:
7965 # SysV /etc/install, /usr/sbin/install
7966 # SunOS /usr/etc/install
7967 # IRIX /sbin/install
7968 # AIX /bin/install
7969 # AmigaOS /C/install, which installs bootblocks on floppy discs
7970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7973 # OS/2's system install, which has a completely different semantic
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984   IFS=$as_save_IFS
7985   test -z "$as_dir" && as_dir=.
7986   # Account for people who put trailing slashes in PATH elements.
7987 case $as_dir/ in
7988   ./ | .// | /cC/* | \
7989   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7990   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7991   /usr/ucb/* ) ;;
7992   *)
7993     # OSF1 and SCO ODT 3.0 have their own names for install.
7994     # Don't use installbsd from OSF since it installs stuff as root
7995     # by default.
7996     for ac_prog in ginstall scoinst install; do
7997       for ac_exec_ext in '' $ac_executable_extensions; do
7998         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7999           if test $ac_prog = install &&
8000             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8001             # AIX install.  It has an incompatible calling convention.
8002             :
8003           elif test $ac_prog = install &&
8004             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8005             # program-specific install script used by HP pwplus--don't use.
8006             :
8007           else
8008             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8009             break 3
8010           fi
8011         fi
8012       done
8013     done
8014     ;;
8015 esac
8016 done
8017 IFS=$as_save_IFS
8018
8019
8020 fi
8021   if test "${ac_cv_path_install+set}" = set; then
8022     INSTALL=$ac_cv_path_install
8023   else
8024     # As a last resort, use the slow shell script.  Don't cache a
8025     # value for INSTALL within a source directory, because that will
8026     # break other packages using the cache if that directory is
8027     # removed, or if the value is a relative name.
8028     INSTALL=$ac_install_sh
8029   fi
8030 fi
8031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8032 echo "${ECHO_T}$INSTALL" >&6; }
8033
8034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8035 # It thinks the first close brace ends the variable substitution.
8036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8037
8038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8039
8040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8041
8042 case "$INSTALL" in
8043  [\\/$]* | ?:[\\/]* ) ;;
8044  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8045 esac
8046
8047 # Extract the first word of "bzip2", so it can be a program name with args.
8048 set dummy bzip2; ac_word=$2
8049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_BZIP2+set}" = set; then
8052   echo $ECHO_N "(cached) $ECHO_C" >&6
8053 else
8054   case $BZIP2 in
8055   [\\/]* | ?:[\\/]*)
8056   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8057   ;;
8058   *)
8059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064   for ac_exec_ext in '' $ac_executable_extensions; do
8065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8066     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071 done
8072 IFS=$as_save_IFS
8073
8074   ;;
8075 esac
8076 fi
8077 BZIP2=$ac_cv_path_BZIP2
8078 if test -n "$BZIP2"; then
8079   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8080 echo "${ECHO_T}$BZIP2" >&6; }
8081 else
8082   { echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6; }
8084 fi
8085
8086
8087 # Extract the first word of "cat", so it can be a program name with args.
8088 set dummy cat; ac_word=$2
8089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8091 if test "${ac_cv_path_CAT+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   case $CAT in
8095   [\\/]* | ?:[\\/]*)
8096   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8097   ;;
8098   *)
8099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104   for ac_exec_ext in '' $ac_executable_extensions; do
8105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8106     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114   ;;
8115 esac
8116 fi
8117 CAT=$ac_cv_path_CAT
8118 if test -n "$CAT"; then
8119   { echo "$as_me:$LINENO: result: $CAT" >&5
8120 echo "${ECHO_T}$CAT" >&6; }
8121 else
8122   { echo "$as_me:$LINENO: result: no" >&5
8123 echo "${ECHO_T}no" >&6; }
8124 fi
8125
8126
8127 # Extract the first word of "doxygen", so it can be a program name with args.
8128 set dummy doxygen; ac_word=$2
8129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8131 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   case $DOXYGEN in
8135   [\\/]* | ?:[\\/]*)
8136   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8137   ;;
8138   *)
8139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142   IFS=$as_save_IFS
8143   test -z "$as_dir" && as_dir=.
8144   for ac_exec_ext in '' $ac_executable_extensions; do
8145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8146     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154   ;;
8155 esac
8156 fi
8157 DOXYGEN=$ac_cv_path_DOXYGEN
8158 if test -n "$DOXYGEN"; then
8159   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8160 echo "${ECHO_T}$DOXYGEN" >&6; }
8161 else
8162   { echo "$as_me:$LINENO: result: no" >&5
8163 echo "${ECHO_T}no" >&6; }
8164 fi
8165
8166
8167 # Extract the first word of "groff", so it can be a program name with args.
8168 set dummy groff; ac_word=$2
8169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8171 if test "${ac_cv_path_GROFF+set}" = set; then
8172   echo $ECHO_N "(cached) $ECHO_C" >&6
8173 else
8174   case $GROFF in
8175   [\\/]* | ?:[\\/]*)
8176   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8177   ;;
8178   *)
8179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8181 do
8182   IFS=$as_save_IFS
8183   test -z "$as_dir" && as_dir=.
8184   for ac_exec_ext in '' $ac_executable_extensions; do
8185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8186     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8188     break 2
8189   fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194   ;;
8195 esac
8196 fi
8197 GROFF=$ac_cv_path_GROFF
8198 if test -n "$GROFF"; then
8199   { echo "$as_me:$LINENO: result: $GROFF" >&5
8200 echo "${ECHO_T}$GROFF" >&6; }
8201 else
8202   { echo "$as_me:$LINENO: result: no" >&5
8203 echo "${ECHO_T}no" >&6; }
8204 fi
8205
8206
8207 # Extract the first word of "gzip", so it can be a program name with args.
8208 set dummy gzip; ac_word=$2
8209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8211 if test "${ac_cv_path_GZIP+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   case $GZIP in
8215   [\\/]* | ?:[\\/]*)
8216   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8217   ;;
8218   *)
8219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8221 do
8222   IFS=$as_save_IFS
8223   test -z "$as_dir" && as_dir=.
8224   for ac_exec_ext in '' $ac_executable_extensions; do
8225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8226     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228     break 2
8229   fi
8230 done
8231 done
8232 IFS=$as_save_IFS
8233
8234   ;;
8235 esac
8236 fi
8237 GZIP=$ac_cv_path_GZIP
8238 if test -n "$GZIP"; then
8239   { echo "$as_me:$LINENO: result: $GZIP" >&5
8240 echo "${ECHO_T}$GZIP" >&6; }
8241 else
8242   { echo "$as_me:$LINENO: result: no" >&5
8243 echo "${ECHO_T}no" >&6; }
8244 fi
8245
8246
8247 # Extract the first word of "pod2html", so it can be a program name with args.
8248 set dummy pod2html; ac_word=$2
8249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8251 if test "${ac_cv_path_POD2HTML+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   case $POD2HTML in
8255   [\\/]* | ?:[\\/]*)
8256   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8257   ;;
8258   *)
8259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262   IFS=$as_save_IFS
8263   test -z "$as_dir" && as_dir=.
8264   for ac_exec_ext in '' $ac_executable_extensions; do
8265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8266     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268     break 2
8269   fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274   ;;
8275 esac
8276 fi
8277 POD2HTML=$ac_cv_path_POD2HTML
8278 if test -n "$POD2HTML"; then
8279   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8280 echo "${ECHO_T}$POD2HTML" >&6; }
8281 else
8282   { echo "$as_me:$LINENO: result: no" >&5
8283 echo "${ECHO_T}no" >&6; }
8284 fi
8285
8286
8287 # Extract the first word of "pod2man", so it can be a program name with args.
8288 set dummy pod2man; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_path_POD2MAN+set}" = set; then
8292   echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294   case $POD2MAN in
8295   [\\/]* | ?:[\\/]*)
8296   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8297   ;;
8298   *)
8299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302   IFS=$as_save_IFS
8303   test -z "$as_dir" && as_dir=.
8304   for ac_exec_ext in '' $ac_executable_extensions; do
8305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8306     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308     break 2
8309   fi
8310 done
8311 done
8312 IFS=$as_save_IFS
8313
8314   ;;
8315 esac
8316 fi
8317 POD2MAN=$ac_cv_path_POD2MAN
8318 if test -n "$POD2MAN"; then
8319   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8320 echo "${ECHO_T}$POD2MAN" >&6; }
8321 else
8322   { echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6; }
8324 fi
8325
8326
8327 # Extract the first word of "pdfroff", so it can be a program name with args.
8328 set dummy pdfroff; ac_word=$2
8329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8331 if test "${ac_cv_path_PDFROFF+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   case $PDFROFF in
8335   [\\/]* | ?:[\\/]*)
8336   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8337   ;;
8338   *)
8339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8341 do
8342   IFS=$as_save_IFS
8343   test -z "$as_dir" && as_dir=.
8344   for ac_exec_ext in '' $ac_executable_extensions; do
8345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8346     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348     break 2
8349   fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354   ;;
8355 esac
8356 fi
8357 PDFROFF=$ac_cv_path_PDFROFF
8358 if test -n "$PDFROFF"; then
8359   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8360 echo "${ECHO_T}$PDFROFF" >&6; }
8361 else
8362   { echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6; }
8364 fi
8365
8366
8367 # Extract the first word of "runtest", so it can be a program name with args.
8368 set dummy runtest; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_path_RUNTEST+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   case $RUNTEST in
8375   [\\/]* | ?:[\\/]*)
8376   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8377   ;;
8378   *)
8379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384   for ac_exec_ext in '' $ac_executable_extensions; do
8385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8386     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391 done
8392 IFS=$as_save_IFS
8393
8394   ;;
8395 esac
8396 fi
8397 RUNTEST=$ac_cv_path_RUNTEST
8398 if test -n "$RUNTEST"; then
8399   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8400 echo "${ECHO_T}$RUNTEST" >&6; }
8401 else
8402   { echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6; }
8404 fi
8405
8406
8407
8408 no_itcl=true
8409 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8410 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8411
8412 # Check whether --with-tclinclude was given.
8413 if test "${with_tclinclude+set}" = set; then
8414   withval=$with_tclinclude; with_tclinclude=${withval}
8415 else
8416   with_tclinclude=''
8417 fi
8418
8419 if test "${ac_cv_path_tclsh+set}" = set; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422
8423 if test x"${with_tclinclude}" != x ; then
8424   if test -f ${with_tclinclude}/tclsh ; then
8425     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8426   elif test -f ${with_tclinclude}/src/tclsh ; then
8427     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8428   else
8429     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8430 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8431    { (exit 1); exit 1; }; }
8432   fi
8433 fi
8434 fi
8435
8436
8437 if test x"${ac_cv_path_tclsh}" = x ; then
8438   { echo "$as_me:$LINENO: result: none" >&5
8439 echo "${ECHO_T}none" >&6; }
8440   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
8441 do
8442   # Extract the first word of "$ac_prog", so it can be a program name with args.
8443 set dummy $ac_prog; ac_word=$2
8444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8446 if test "${ac_cv_path_TCLSH+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   case $TCLSH in
8450   [\\/]* | ?:[\\/]*)
8451   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8452   ;;
8453   *)
8454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457   IFS=$as_save_IFS
8458   test -z "$as_dir" && as_dir=.
8459   for ac_exec_ext in '' $ac_executable_extensions; do
8460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8461     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8463     break 2
8464   fi
8465 done
8466 done
8467 IFS=$as_save_IFS
8468
8469   ;;
8470 esac
8471 fi
8472 TCLSH=$ac_cv_path_TCLSH
8473 if test -n "$TCLSH"; then
8474   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8475 echo "${ECHO_T}$TCLSH" >&6; }
8476 else
8477   { echo "$as_me:$LINENO: result: no" >&5
8478 echo "${ECHO_T}no" >&6; }
8479 fi
8480
8481
8482   test -n "$TCLSH" && break
8483 done
8484
8485   if test x"${TCLSH}" = x ; then
8486     ac_cv_path_tclsh='';
8487   else
8488     ac_cv_path_tclsh="${TCLSH}";
8489   fi
8490 else
8491   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8492 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8493   TCLSH="${ac_cv_path_tclsh}"
8494
8495 fi
8496
8497 # Extract the first word of "zip", so it can be a program name with args.
8498 set dummy zip; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_ZIP+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   case $ZIP in
8505   [\\/]* | ?:[\\/]*)
8506   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8507   ;;
8508   *)
8509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524   ;;
8525 esac
8526 fi
8527 ZIP=$ac_cv_path_ZIP
8528 if test -n "$ZIP"; then
8529   { echo "$as_me:$LINENO: result: $ZIP" >&5
8530 echo "${ECHO_T}$ZIP" >&6; }
8531 else
8532   { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8534 fi
8535
8536
8537 for ac_prog in ocamlc
8538 do
8539   # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_OCAMLC+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   case $OCAMLC in
8547   [\\/]* | ?:[\\/]*)
8548   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8549   ;;
8550   *)
8551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556   for ac_exec_ext in '' $ac_executable_extensions; do
8557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8558     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563 done
8564 IFS=$as_save_IFS
8565
8566   ;;
8567 esac
8568 fi
8569 OCAMLC=$ac_cv_path_OCAMLC
8570 if test -n "$OCAMLC"; then
8571   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8572 echo "${ECHO_T}$OCAMLC" >&6; }
8573 else
8574   { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8576 fi
8577
8578
8579   test -n "$OCAMLC" && break
8580 done
8581
8582 for ac_prog in ocamlopt
8583 do
8584   # Extract the first word of "$ac_prog", so it can be a program name with args.
8585 set dummy $ac_prog; ac_word=$2
8586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8588 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   case $OCAMLOPT in
8592   [\\/]* | ?:[\\/]*)
8593   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8594   ;;
8595   *)
8596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 for as_dir in $PATH
8598 do
8599   IFS=$as_save_IFS
8600   test -z "$as_dir" && as_dir=.
8601   for ac_exec_ext in '' $ac_executable_extensions; do
8602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8603     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8605     break 2
8606   fi
8607 done
8608 done
8609 IFS=$as_save_IFS
8610
8611   ;;
8612 esac
8613 fi
8614 OCAMLOPT=$ac_cv_path_OCAMLOPT
8615 if test -n "$OCAMLOPT"; then
8616   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8617 echo "${ECHO_T}$OCAMLOPT" >&6; }
8618 else
8619   { echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6; }
8621 fi
8622
8623
8624   test -n "$OCAMLOPT" && break
8625 done
8626
8627 for ac_prog in ocamldep
8628 do
8629   # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8633 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8634   echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636   case $OCAMLDEP in
8637   [\\/]* | ?:[\\/]*)
8638   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8639   ;;
8640   *)
8641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8643 do
8644   IFS=$as_save_IFS
8645   test -z "$as_dir" && as_dir=.
8646   for ac_exec_ext in '' $ac_executable_extensions; do
8647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8648     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8650     break 2
8651   fi
8652 done
8653 done
8654 IFS=$as_save_IFS
8655
8656   ;;
8657 esac
8658 fi
8659 OCAMLDEP=$ac_cv_path_OCAMLDEP
8660 if test -n "$OCAMLDEP"; then
8661   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8662 echo "${ECHO_T}$OCAMLDEP" >&6; }
8663 else
8664   { echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6; }
8666 fi
8667
8668
8669   test -n "$OCAMLDEP" && break
8670 done
8671
8672 for ac_prog in ocamldoc
8673 do
8674   # Extract the first word of "$ac_prog", so it can be a program name with args.
8675 set dummy $ac_prog; ac_word=$2
8676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8678 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8679   echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681   case $OCAMLDOC in
8682   [\\/]* | ?:[\\/]*)
8683   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8684   ;;
8685   *)
8686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689   IFS=$as_save_IFS
8690   test -z "$as_dir" && as_dir=.
8691   for ac_exec_ext in '' $ac_executable_extensions; do
8692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8693     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8695     break 2
8696   fi
8697 done
8698 done
8699 IFS=$as_save_IFS
8700
8701   ;;
8702 esac
8703 fi
8704 OCAMLDOC=$ac_cv_path_OCAMLDOC
8705 if test -n "$OCAMLDOC"; then
8706   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8707 echo "${ECHO_T}$OCAMLDOC" >&6; }
8708 else
8709   { echo "$as_me:$LINENO: result: no" >&5
8710 echo "${ECHO_T}no" >&6; }
8711 fi
8712
8713
8714   test -n "$OCAMLDOC" && break
8715 done
8716
8717 for ac_prog in gas as
8718 do
8719   # Extract the first word of "$ac_prog", so it can be a program name with args.
8720 set dummy $ac_prog; ac_word=$2
8721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8723 if test "${ac_cv_path_GAS+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726   case $GAS in
8727   [\\/]* | ?:[\\/]*)
8728   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8729   ;;
8730   *)
8731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736   for ac_exec_ext in '' $ac_executable_extensions; do
8737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8738     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746   ;;
8747 esac
8748 fi
8749 GAS=$ac_cv_path_GAS
8750 if test -n "$GAS"; then
8751   { echo "$as_me:$LINENO: result: $GAS" >&5
8752 echo "${ECHO_T}$GAS" >&6; }
8753 else
8754   { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 fi
8757
8758
8759   test -n "$GAS" && break
8760 done
8761
8762
8763 { echo "$as_me:$LINENO: checking for linker version" >&5
8764 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8765 if test "${llvm_cv_link_version+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768
8769    version_string="$(ld -v 2>&1 | head -1)"
8770
8771    # Check for ld64.
8772    if (echo "$version_string" | grep -q "ld64"); then
8773      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8774    else
8775      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8776    fi
8777
8778 fi
8779 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8780 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8781
8782 cat >>confdefs.h <<_ACEOF
8783 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8784 _ACEOF
8785
8786
8787
8788 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8789 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8790 if test "${llvm_cv_link_use_r+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793    ac_ext=c
8794 ac_cpp='$CPP $CPPFLAGS'
8795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8798
8799   oldcflags="$CFLAGS"
8800   CFLAGS="$CFLAGS -Wl,-R."
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 int
8809 main ()
8810 {
8811
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (ac_try="$ac_link"
8818 case "(($ac_try" in
8819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820   *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823   (eval "$ac_link") 2>conftest.er1
8824   ac_status=$?
8825   grep -v '^ *+' conftest.er1 >conftest.err
8826   rm -f conftest.er1
8827   cat conftest.err >&5
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); } &&
8830          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8831   { (case "(($ac_try" in
8832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833   *) ac_try_echo=$ac_try;;
8834 esac
8835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8836   (eval "$ac_try") 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; } &&
8840          { ac_try='test -s conftest$ac_exeext'
8841   { (case "(($ac_try" in
8842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843   *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846   (eval "$ac_try") 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; }; then
8850   llvm_cv_link_use_r=yes
8851 else
8852   echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855         llvm_cv_link_use_r=no
8856 fi
8857
8858 rm -f core conftest.err conftest.$ac_objext \
8859       conftest$ac_exeext conftest.$ac_ext
8860   CFLAGS="$oldcflags"
8861   ac_ext=c
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866
8867
8868 fi
8869 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8870 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8871 if test "$llvm_cv_link_use_r" = yes ; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define HAVE_LINK_R 1
8875 _ACEOF
8876
8877   fi
8878
8879
8880 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8881 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8882 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885    ac_ext=c
8886 ac_cpp='$CPP $CPPFLAGS'
8887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890
8891   oldcflags="$CFLAGS"
8892   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8893   cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899
8900 int
8901 main ()
8902 {
8903
8904   ;
8905   return 0;
8906 }
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8910 case "(($ac_try" in
8911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912   *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915   (eval "$ac_link") 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } &&
8922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8923   { (case "(($ac_try" in
8924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925   *) ac_try_echo=$ac_try;;
8926 esac
8927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8928   (eval "$ac_try") 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest$ac_exeext'
8933   { (case "(($ac_try" in
8934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935   *) ac_try_echo=$ac_try;;
8936 esac
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938   (eval "$ac_try") 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   llvm_cv_link_use_export_dynamic=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8946
8947         llvm_cv_link_use_export_dynamic=no
8948 fi
8949
8950 rm -f core conftest.err conftest.$ac_objext \
8951       conftest$ac_exeext conftest.$ac_ext
8952   CFLAGS="$oldcflags"
8953   ac_ext=c
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
8959
8960 fi
8961 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8962 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8963 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_LINK_EXPORT_DYNAMIC 1
8967 _ACEOF
8968
8969   fi
8970
8971
8972 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8973 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8974 if test "${llvm_cv_link_use_version_script+set}" = set; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977    ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983   oldcflags="$CFLAGS"
8984
8985   # The following code is from the autoconf manual,
8986   # "11.13: Limitations of Usual Tools".
8987   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8988   # Use mktemp if possible; otherwise fall back on mkdir,
8989   # with $RANDOM to make collisions less likely.
8990   : ${TMPDIR=/tmp}
8991   {
8992     tmp=`
8993       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8994     ` &&
8995     test -n "$tmp" && test -d "$tmp"
8996   } || {
8997     tmp=$TMPDIR/foo$$-$RANDOM
8998     (umask 077 && mkdir "$tmp")
8999   } || exit $?
9000
9001   echo "{" > "$tmp/export.map"
9002   echo "  global: main;" >> "$tmp/export.map"
9003   echo "  local: *;" >> "$tmp/export.map"
9004   echo "};" >> "$tmp/export.map"
9005
9006   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9007   cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h.  */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h.  */
9013
9014 int
9015 main ()
9016 {
9017
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9024 case "(($ac_try" in
9025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026   *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029   (eval "$ac_link") 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } &&
9036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9037   { (case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_try") 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_try") 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; }; then
9056   llvm_cv_link_use_version_script=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061         llvm_cv_link_use_version_script=no
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext \
9065       conftest$ac_exeext conftest.$ac_ext
9066   rm "$tmp/export.map"
9067   rmdir "$tmp"
9068   CFLAGS="$oldcflags"
9069   ac_ext=c
9070 ac_cpp='$CPP $CPPFLAGS'
9071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9074
9075
9076 fi
9077 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9078 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9079 if test "$llvm_cv_link_use_version_script" = yes ; then
9080   HAVE_LINK_VERSION_SCRIPT=1
9081
9082   fi
9083
9084
9085
9086
9087 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9088 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9089 if test "${ac_cv_c_const+set}" = set; then
9090   echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 int
9100 main ()
9101 {
9102 /* FIXME: Include the comments suggested by Paul. */
9103 #ifndef __cplusplus
9104   /* Ultrix mips cc rejects this.  */
9105   typedef int charset[2];
9106   const charset x;
9107   /* SunOS 4.1.1 cc rejects this.  */
9108   char const *const *ccp;
9109   char **p;
9110   /* NEC SVR4.0.2 mips cc rejects this.  */
9111   struct point {int x, y;};
9112   static struct point const zero = {0,0};
9113   /* AIX XL C 1.02.0.0 rejects this.
9114      It does not let you subtract one const X* pointer from another in
9115      an arm of an if-expression whose if-part is not a constant
9116      expression */
9117   const char *g = "string";
9118   ccp = &g + (g ? g-g : 0);
9119   /* HPUX 7.0 cc rejects these. */
9120   ++ccp;
9121   p = (char**) ccp;
9122   ccp = (char const *const *) p;
9123   { /* SCO 3.2v4 cc rejects this.  */
9124     char *t;
9125     char const *s = 0 ? (char *) 0 : (char const *) 0;
9126
9127     *t++ = 0;
9128     if (s) return 0;
9129   }
9130   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9131     int x[] = {25, 17};
9132     const int *foo = &x[0];
9133     ++foo;
9134   }
9135   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9136     typedef const int *iptr;
9137     iptr p = 0;
9138     ++p;
9139   }
9140   { /* AIX XL C 1.02.0.0 rejects this saying
9141        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9142     struct s { int j; const int *ap[3]; };
9143     struct s *b; b->j = 5;
9144   }
9145   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9146     const int foo = 10;
9147     if (!foo) return 0;
9148   }
9149   return !x[0] && !zero.x;
9150 #endif
9151
9152   ;
9153   return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160   *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163   (eval "$ac_compile") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171   { (case "(($ac_try" in
9172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173   *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176   (eval "$ac_try") 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; } &&
9180          { ac_try='test -s conftest.$ac_objext'
9181   { (case "(($ac_try" in
9182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183   *) ac_try_echo=$ac_try;;
9184 esac
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186   (eval "$ac_try") 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; }; then
9190   ac_cv_c_const=yes
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195         ac_cv_c_const=no
9196 fi
9197
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9202 if test $ac_cv_c_const = no; then
9203
9204 cat >>confdefs.h <<\_ACEOF
9205 #define const
9206 _ACEOF
9207
9208 fi
9209
9210
9211
9212
9213
9214
9215 ac_header_dirent=no
9216 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9217   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9218 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9219 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9221   echo $ECHO_N "(cached) $ECHO_C" >&6
9222 else
9223   cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 #include <sys/types.h>
9230 #include <$ac_hdr>
9231
9232 int
9233 main ()
9234 {
9235 if ((DIR *) 0)
9236 return 0;
9237   ;
9238   return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext
9242 if { (ac_try="$ac_compile"
9243 case "(($ac_try" in
9244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245   *) ac_try_echo=$ac_try;;
9246 esac
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248   (eval "$ac_compile") 2>conftest.er1
9249   ac_status=$?
9250   grep -v '^ *+' conftest.er1 >conftest.err
9251   rm -f conftest.er1
9252   cat conftest.err >&5
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9256   { (case "(($ac_try" in
9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258   *) ac_try_echo=$ac_try;;
9259 esac
9260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261   (eval "$ac_try") 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); }; } &&
9265          { ac_try='test -s conftest.$ac_objext'
9266   { (case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271   (eval "$ac_try") 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; }; then
9275   eval "$as_ac_Header=yes"
9276 else
9277   echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280         eval "$as_ac_Header=no"
9281 fi
9282
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 ac_res=`eval echo '${'$as_ac_Header'}'`
9286                { echo "$as_me:$LINENO: result: $ac_res" >&5
9287 echo "${ECHO_T}$ac_res" >&6; }
9288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9289   cat >>confdefs.h <<_ACEOF
9290 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9291 _ACEOF
9292
9293 ac_header_dirent=$ac_hdr; break
9294 fi
9295
9296 done
9297 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9298 if test $ac_header_dirent = dirent.h; then
9299   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9301 if test "${ac_cv_search_opendir+set}" = set; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304   ac_func_search_save_LIBS=$LIBS
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h.  */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h.  */
9311
9312 /* Override any GCC internal prototype to avoid an error.
9313    Use char because int might match the return type of a GCC
9314    builtin and then its argument prototype would still apply.  */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 char opendir ();
9319 int
9320 main ()
9321 {
9322 return opendir ();
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 for ac_lib in '' dir; do
9328   if test -z "$ac_lib"; then
9329     ac_res="none required"
9330   else
9331     ac_res=-l$ac_lib
9332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9333   fi
9334   rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_link") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } &&
9348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9349   { (case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354   (eval "$ac_try") 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; } &&
9358          { ac_try='test -s conftest$ac_exeext'
9359   { (case "(($ac_try" in
9360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361   *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364   (eval "$ac_try") 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; }; then
9368   ac_cv_search_opendir=$ac_res
9369 else
9370   echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373
9374 fi
9375
9376 rm -f core conftest.err conftest.$ac_objext \
9377       conftest$ac_exeext
9378   if test "${ac_cv_search_opendir+set}" = set; then
9379   break
9380 fi
9381 done
9382 if test "${ac_cv_search_opendir+set}" = set; then
9383   :
9384 else
9385   ac_cv_search_opendir=no
9386 fi
9387 rm conftest.$ac_ext
9388 LIBS=$ac_func_search_save_LIBS
9389 fi
9390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9392 ac_res=$ac_cv_search_opendir
9393 if test "$ac_res" != no; then
9394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9395
9396 fi
9397
9398 else
9399   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9400 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9401 if test "${ac_cv_search_opendir+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   ac_func_search_save_LIBS=$LIBS
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 /* Override any GCC internal prototype to avoid an error.
9413    Use char because int might match the return type of a GCC
9414    builtin and then its argument prototype would still apply.  */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 char opendir ();
9419 int
9420 main ()
9421 {
9422 return opendir ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 for ac_lib in '' x; do
9428   if test -z "$ac_lib"; then
9429     ac_res="none required"
9430   else
9431     ac_res=-l$ac_lib
9432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9433   fi
9434   rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (ac_try="$ac_link"
9436 case "(($ac_try" in
9437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438   *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441   (eval "$ac_link") 2>conftest.er1
9442   ac_status=$?
9443   grep -v '^ *+' conftest.er1 >conftest.err
9444   rm -f conftest.er1
9445   cat conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); } &&
9448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449   { (case "(($ac_try" in
9450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451   *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454   (eval "$ac_try") 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest$ac_exeext'
9459   { (case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464   (eval "$ac_try") 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   ac_cv_search_opendir=$ac_res
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473
9474 fi
9475
9476 rm -f core conftest.err conftest.$ac_objext \
9477       conftest$ac_exeext
9478   if test "${ac_cv_search_opendir+set}" = set; then
9479   break
9480 fi
9481 done
9482 if test "${ac_cv_search_opendir+set}" = set; then
9483   :
9484 else
9485   ac_cv_search_opendir=no
9486 fi
9487 rm conftest.$ac_ext
9488 LIBS=$ac_func_search_save_LIBS
9489 fi
9490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9492 ac_res=$ac_cv_search_opendir
9493 if test "$ac_res" != no; then
9494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495
9496 fi
9497
9498 fi
9499
9500
9501 for ac_header in dlfcn.h
9502 do
9503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 fi
9510 ac_res=`eval echo '${'$as_ac_Header'}'`
9511                { echo "$as_me:$LINENO: result: $ac_res" >&5
9512 echo "${ECHO_T}$ac_res" >&6; }
9513 else
9514   # Is the header compilable?
9515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h.  */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h.  */
9523 $ac_includes_default
9524 #include <$ac_header>
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_compile") 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } &&
9540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9541   { (case "(($ac_try" in
9542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543   *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546   (eval "$ac_try") 2>&5
9547   ac_status=$?
9548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); }; } &&
9550          { ac_try='test -s conftest.$ac_objext'
9551   { (case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_try") 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_header_compiler=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565         ac_header_compiler=no
9566 fi
9567
9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9570 echo "${ECHO_T}$ac_header_compiler" >&6; }
9571
9572 # Is the header present?
9573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #include <$ac_header>
9582 _ACEOF
9583 if { (ac_try="$ac_cpp conftest.$ac_ext"
9584 case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9590   ac_status=$?
9591   grep -v '^ *+' conftest.er1 >conftest.err
9592   rm -f conftest.er1
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } >/dev/null; then
9596   if test -s conftest.err; then
9597     ac_cpp_err=$ac_c_preproc_warn_flag
9598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9599   else
9600     ac_cpp_err=
9601   fi
9602 else
9603   ac_cpp_err=yes
9604 fi
9605 if test -z "$ac_cpp_err"; then
9606   ac_header_preproc=yes
9607 else
9608   echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611   ac_header_preproc=no
9612 fi
9613
9614 rm -f conftest.err conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6; }
9617
9618 # So?  What about this header?
9619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9620   yes:no: )
9621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9625     ac_header_preproc=yes
9626     ;;
9627   no:yes:* )
9628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9640     ( cat <<\_ASBOX
9641 ## ----------------------------------- ##
9642 ## Report this to llvmbugs@cs.uiuc.edu ##
9643 ## ----------------------------------- ##
9644 _ASBOX
9645      ) | sed "s/^/$as_me: WARNING:     /" >&2
9646     ;;
9647 esac
9648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9651   echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653   eval "$as_ac_Header=\$ac_header_preproc"
9654 fi
9655 ac_res=`eval echo '${'$as_ac_Header'}'`
9656                { echo "$as_me:$LINENO: result: $ac_res" >&5
9657 echo "${ECHO_T}$ac_res" >&6; }
9658
9659 fi
9660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9661   cat >>confdefs.h <<_ACEOF
9662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9663 _ACEOF
9664
9665 fi
9666
9667 done
9668
9669 # Check whether --enable-ltdl-install was given.
9670 if test "${enable_ltdl_install+set}" = set; then
9671   enableval=$enable_ltdl_install;
9672 fi
9673
9674
9675
9676
9677 if test x"${enable_ltdl_install-no}" != xno; then
9678   INSTALL_LTDL_TRUE=
9679   INSTALL_LTDL_FALSE='#'
9680 else
9681   INSTALL_LTDL_TRUE='#'
9682   INSTALL_LTDL_FALSE=
9683 fi
9684
9685
9686
9687 if test x"${enable_ltdl_convenience-no}" != xno; then
9688   CONVENIENCE_LTDL_TRUE=
9689   CONVENIENCE_LTDL_FALSE='#'
9690 else
9691   CONVENIENCE_LTDL_TRUE='#'
9692   CONVENIENCE_LTDL_FALSE=
9693 fi
9694
9695
9696 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9698 library_names_spec=
9699 libname_spec='lib$name'
9700 soname_spec=
9701 shrext_cmds=".so"
9702 postinstall_cmds=
9703 postuninstall_cmds=
9704 finish_cmds=
9705 finish_eval=
9706 shlibpath_var=
9707 shlibpath_overrides_runpath=unknown
9708 version_type=none
9709 dynamic_linker="$host_os ld.so"
9710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 if test "$GCC" = yes; then
9712   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9714     # if the path contains ";" then we assume it to be the separator
9715     # otherwise default to the standard path separator (i.e. ":") - it is
9716     # assumed that no part of a normal pathname contains ";" but that should
9717     # okay in the real world where ";" in dirpaths is itself problematic.
9718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9719   else
9720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9721   fi
9722 else
9723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724 fi
9725 need_lib_prefix=unknown
9726 hardcode_into_libs=no
9727
9728 # when you set need_version to no, make sure it does not cause -set_version
9729 # flags to be left without arguments
9730 need_version=unknown
9731
9732 case $host_os in
9733 aix3*)
9734   version_type=linux
9735   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9736   shlibpath_var=LIBPATH
9737
9738   # AIX 3 has no versioning support, so we append a major version to the name.
9739   soname_spec='${libname}${release}${shared_ext}$major'
9740   ;;
9741
9742 aix4* | aix5*)
9743   version_type=linux
9744   need_lib_prefix=no
9745   need_version=no
9746   hardcode_into_libs=yes
9747   if test "$host_cpu" = ia64; then
9748     # AIX 5 supports IA64
9749     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9750     shlibpath_var=LD_LIBRARY_PATH
9751   else
9752     # With GCC up to 2.95.x, collect2 would create an import file
9753     # for dependence libraries.  The import file would start with
9754     # the line `#! .'.  This would cause the generated library to
9755     # depend on `.', always an invalid library.  This was fixed in
9756     # development snapshots of GCC prior to 3.0.
9757     case $host_os in
9758       aix4 | aix4.[01] | aix4.[01].*)
9759       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9760            echo ' yes '
9761            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9762         :
9763       else
9764         can_build_shared=no
9765       fi
9766       ;;
9767     esac
9768     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9769     # soname into executable. Probably we can add versioning support to
9770     # collect2, so additional links can be useful in future.
9771     if test "$aix_use_runtimelinking" = yes; then
9772       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9773       # instead of lib<name>.a to let people know that these are not
9774       # typical AIX shared libraries.
9775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776     else
9777       # We preserve .a as extension for shared libraries through AIX4.2
9778       # and later when we are not doing run time linking.
9779       library_names_spec='${libname}${release}.a $libname.a'
9780       soname_spec='${libname}${release}${shared_ext}$major'
9781     fi
9782     shlibpath_var=LIBPATH
9783   fi
9784   ;;
9785
9786 amigaos*)
9787   library_names_spec='$libname.ixlibrary $libname.a'
9788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9789   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'
9790   ;;
9791
9792 beos*)
9793   library_names_spec='${libname}${shared_ext}'
9794   dynamic_linker="$host_os ld.so"
9795   shlibpath_var=LIBRARY_PATH
9796   ;;
9797
9798 bsdi[45]*)
9799   version_type=linux
9800   need_version=no
9801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802   soname_spec='${libname}${release}${shared_ext}$major'
9803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804   shlibpath_var=LD_LIBRARY_PATH
9805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807   # the default ld.so.conf also contains /usr/contrib/lib and
9808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809   # libtool to hard-code these into programs
9810   ;;
9811
9812 cygwin* | mingw* | pw32*)
9813   version_type=windows
9814   shrext_cmds=".dll"
9815   need_version=no
9816   need_lib_prefix=no
9817
9818   case $GCC,$host_os in
9819   yes,cygwin* | yes,mingw* | yes,pw32*)
9820     library_names_spec='$libname.dll.a'
9821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822     postinstall_cmds='base_file=`basename \${file}`~
9823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9824       dldir=$destdir/`dirname \$dlpath`~
9825       test -d \$dldir || mkdir -p \$dldir~
9826       $install_prog $dir/$dlname \$dldir/$dlname~
9827       chmod a+x \$dldir/$dlname'
9828     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829       dlpath=$dir/\$dldll~
9830        $rm \$dlpath'
9831     shlibpath_overrides_runpath=yes
9832
9833     case $host_os in
9834     cygwin*)
9835       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9838       ;;
9839     mingw*)
9840       # MinGW DLLs use traditional 'lib' prefix
9841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9844         # It is most probably a Windows format PATH printed by
9845         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846         # path with ; separators, and with drive letters. We can handle the
9847         # drive letters (cygwin fileutils understands them), so leave them,
9848         # especially as we might pass files found there to a mingw objdump,
9849         # which wouldn't understand a cygwinified path. Ahh.
9850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851       else
9852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9853       fi
9854       ;;
9855     pw32*)
9856       # pw32 DLLs use 'pw' prefix rather than 'lib'
9857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858       ;;
9859     esac
9860     ;;
9861
9862   *)
9863     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9864     ;;
9865   esac
9866   dynamic_linker='Win32 ld.exe'
9867   # FIXME: first we should search . and the directory the executable is in
9868   shlibpath_var=PATH
9869   ;;
9870
9871 darwin* | rhapsody*)
9872   dynamic_linker="$host_os dyld"
9873   version_type=darwin
9874   need_lib_prefix=no
9875   need_version=no
9876   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877   soname_spec='${libname}${release}${major}$shared_ext'
9878   shlibpath_overrides_runpath=yes
9879   shlibpath_var=DYLD_LIBRARY_PATH
9880   shrext_cmds='.dylib'
9881   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9882   if test "$GCC" = yes; then
9883     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"`
9884   else
9885     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9886   fi
9887   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9888   ;;
9889
9890 dgux*)
9891   version_type=linux
9892   need_lib_prefix=no
9893   need_version=no
9894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9895   soname_spec='${libname}${release}${shared_ext}$major'
9896   shlibpath_var=LD_LIBRARY_PATH
9897   ;;
9898
9899 freebsd1*)
9900   dynamic_linker=no
9901   ;;
9902
9903 kfreebsd*-gnu)
9904   version_type=linux
9905   need_lib_prefix=no
9906   need_version=no
9907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908   soname_spec='${libname}${release}${shared_ext}$major'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   shlibpath_overrides_runpath=no
9911   hardcode_into_libs=yes
9912   dynamic_linker='GNU ld.so'
9913   ;;
9914
9915 freebsd* | dragonfly*)
9916   # DragonFly does not have aout.  When/if they implement a new
9917   # versioning mechanism, adjust this.
9918   if test -x /usr/bin/objformat; then
9919     objformat=`/usr/bin/objformat`
9920   else
9921     case $host_os in
9922     freebsd[123]*) objformat=aout ;;
9923     *) objformat=elf ;;
9924     esac
9925   fi
9926   version_type=freebsd-$objformat
9927   case $version_type in
9928     freebsd-elf*)
9929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9930       need_version=no
9931       need_lib_prefix=no
9932       ;;
9933     freebsd-*)
9934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9935       need_version=yes
9936       ;;
9937   esac
9938   shlibpath_var=LD_LIBRARY_PATH
9939   case $host_os in
9940   freebsd2*)
9941     shlibpath_overrides_runpath=yes
9942     ;;
9943   freebsd3.[01]* | freebsdelf3.[01]*)
9944     shlibpath_overrides_runpath=yes
9945     hardcode_into_libs=yes
9946     ;;
9947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9949     shlibpath_overrides_runpath=no
9950     hardcode_into_libs=yes
9951     ;;
9952   freebsd*) # from 4.6 on
9953     shlibpath_overrides_runpath=yes
9954     hardcode_into_libs=yes
9955     ;;
9956   esac
9957   ;;
9958
9959 gnu*)
9960   version_type=linux
9961   need_lib_prefix=no
9962   need_version=no
9963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964   soname_spec='${libname}${release}${shared_ext}$major'
9965   shlibpath_var=LD_LIBRARY_PATH
9966   hardcode_into_libs=yes
9967   ;;
9968
9969 hpux9* | hpux10* | hpux11*)
9970   # Give a soname corresponding to the major version so that dld.sl refuses to
9971   # link against other versions.
9972   version_type=sunos
9973   need_lib_prefix=no
9974   need_version=no
9975   case $host_cpu in
9976   ia64*)
9977     shrext_cmds='.so'
9978     hardcode_into_libs=yes
9979     dynamic_linker="$host_os dld.so"
9980     shlibpath_var=LD_LIBRARY_PATH
9981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983     soname_spec='${libname}${release}${shared_ext}$major'
9984     if test "X$HPUX_IA64_MODE" = X32; then
9985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9986     else
9987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9988     fi
9989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9990     ;;
9991    hppa*64*)
9992      shrext_cmds='.sl'
9993      hardcode_into_libs=yes
9994      dynamic_linker="$host_os dld.sl"
9995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998      soname_spec='${libname}${release}${shared_ext}$major'
9999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10001      ;;
10002    *)
10003     shrext_cmds='.sl'
10004     dynamic_linker="$host_os dld.sl"
10005     shlibpath_var=SHLIB_PATH
10006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008     soname_spec='${libname}${release}${shared_ext}$major'
10009     ;;
10010   esac
10011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10012   postinstall_cmds='chmod 555 $lib'
10013   ;;
10014
10015 interix3*)
10016   version_type=linux
10017   need_lib_prefix=no
10018   need_version=no
10019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10020   soname_spec='${libname}${release}${shared_ext}$major'
10021   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10022   shlibpath_var=LD_LIBRARY_PATH
10023   shlibpath_overrides_runpath=no
10024   hardcode_into_libs=yes
10025   ;;
10026
10027 irix5* | irix6* | nonstopux*)
10028   case $host_os in
10029     nonstopux*) version_type=nonstopux ;;
10030     *)
10031         if test "$lt_cv_prog_gnu_ld" = yes; then
10032                 version_type=linux
10033         else
10034                 version_type=irix
10035         fi ;;
10036   esac
10037   need_lib_prefix=no
10038   need_version=no
10039   soname_spec='${libname}${release}${shared_ext}$major'
10040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10041   case $host_os in
10042   irix5* | nonstopux*)
10043     libsuff= shlibsuff=
10044     ;;
10045   *)
10046     case $LD in # libtool.m4 will add one of these switches to LD
10047     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10048       libsuff= shlibsuff= libmagic=32-bit;;
10049     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10050       libsuff=32 shlibsuff=N32 libmagic=N32;;
10051     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10052       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10053     *) libsuff= shlibsuff= libmagic=never-match;;
10054     esac
10055     ;;
10056   esac
10057   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10058   shlibpath_overrides_runpath=no
10059   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10060   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10061   hardcode_into_libs=yes
10062   ;;
10063
10064 # No shared lib support for Linux oldld, aout, or coff.
10065 linux*oldld* | linux*aout* | linux*coff*)
10066   dynamic_linker=no
10067   ;;
10068
10069 # This must be Linux ELF.
10070 linux*)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077   shlibpath_var=LD_LIBRARY_PATH
10078   shlibpath_overrides_runpath=no
10079   # This implies no fast_install, which is unacceptable.
10080   # Some rework will be needed to allow for fast_install
10081   # before this can be enabled.
10082   hardcode_into_libs=yes
10083
10084   # Append ld.so.conf contents to the search path
10085   if test -f /etc/ld.so.conf; then
10086     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' ' '`
10087     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10088   fi
10089
10090   # We used to test for /lib/ld.so.1 and disable shared libraries on
10091   # powerpc, because MkLinux only supported shared libraries with the
10092   # GNU dynamic linker.  Since this was broken with cross compilers,
10093   # most powerpc-linux boxes support dynamic linking these days and
10094   # people can always --disable-shared, the test was removed, and we
10095   # assume the GNU/Linux dynamic linker is in use.
10096   dynamic_linker='GNU/Linux ld.so'
10097   ;;
10098
10099 knetbsd*-gnu)
10100   version_type=linux
10101   need_lib_prefix=no
10102   need_version=no
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   shlibpath_var=LD_LIBRARY_PATH
10106   shlibpath_overrides_runpath=no
10107   hardcode_into_libs=yes
10108   dynamic_linker='GNU ld.so'
10109   ;;
10110
10111 netbsd*)
10112   version_type=sunos
10113   need_lib_prefix=no
10114   need_version=no
10115   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118     dynamic_linker='NetBSD (a.out) ld.so'
10119   else
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     dynamic_linker='NetBSD ld.elf_so'
10123   fi
10124   shlibpath_var=LD_LIBRARY_PATH
10125   shlibpath_overrides_runpath=yes
10126   hardcode_into_libs=yes
10127   ;;
10128
10129 newsos6)
10130   version_type=linux
10131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132   shlibpath_var=LD_LIBRARY_PATH
10133   shlibpath_overrides_runpath=yes
10134   ;;
10135
10136 nto-qnx*)
10137   version_type=linux
10138   need_lib_prefix=no
10139   need_version=no
10140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141   soname_spec='${libname}${release}${shared_ext}$major'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   shlibpath_overrides_runpath=yes
10144   ;;
10145
10146 openbsd*)
10147   version_type=sunos
10148   sys_lib_dlsearch_path_spec="/usr/lib"
10149   need_lib_prefix=no
10150   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151   case $host_os in
10152     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10153     *)                         need_version=no  ;;
10154   esac
10155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157   shlibpath_var=LD_LIBRARY_PATH
10158   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159     case $host_os in
10160       openbsd2.[89] | openbsd2.[89].*)
10161         shlibpath_overrides_runpath=no
10162         ;;
10163       *)
10164         shlibpath_overrides_runpath=yes
10165         ;;
10166       esac
10167   else
10168     shlibpath_overrides_runpath=yes
10169   fi
10170   ;;
10171
10172 os2*)
10173   libname_spec='$name'
10174   shrext_cmds=".dll"
10175   need_lib_prefix=no
10176   library_names_spec='$libname${shared_ext} $libname.a'
10177   dynamic_linker='OS/2 ld.exe'
10178   shlibpath_var=LIBPATH
10179   ;;
10180
10181 osf3* | osf4* | osf5*)
10182   version_type=osf
10183   need_lib_prefix=no
10184   need_version=no
10185   soname_spec='${libname}${release}${shared_ext}$major'
10186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190   ;;
10191
10192 solaris*)
10193   version_type=linux
10194   need_lib_prefix=no
10195   need_version=no
10196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197   soname_spec='${libname}${release}${shared_ext}$major'
10198   shlibpath_var=LD_LIBRARY_PATH
10199   shlibpath_overrides_runpath=yes
10200   hardcode_into_libs=yes
10201   # ldd complains unless libraries are executable
10202   postinstall_cmds='chmod +x $lib'
10203   ;;
10204
10205 sunos4*)
10206   version_type=sunos
10207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10209   shlibpath_var=LD_LIBRARY_PATH
10210   shlibpath_overrides_runpath=yes
10211   if test "$with_gnu_ld" = yes; then
10212     need_lib_prefix=no
10213   fi
10214   need_version=yes
10215   ;;
10216
10217 sysv4 | sysv4.3*)
10218   version_type=linux
10219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220   soname_spec='${libname}${release}${shared_ext}$major'
10221   shlibpath_var=LD_LIBRARY_PATH
10222   case $host_vendor in
10223     sni)
10224       shlibpath_overrides_runpath=no
10225       need_lib_prefix=no
10226       export_dynamic_flag_spec='${wl}-Blargedynsym'
10227       runpath_var=LD_RUN_PATH
10228       ;;
10229     siemens)
10230       need_lib_prefix=no
10231       ;;
10232     motorola)
10233       need_lib_prefix=no
10234       need_version=no
10235       shlibpath_overrides_runpath=no
10236       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10237       ;;
10238   esac
10239   ;;
10240
10241 sysv4*MP*)
10242   if test -d /usr/nec ;then
10243     version_type=linux
10244     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10245     soname_spec='$libname${shared_ext}.$major'
10246     shlibpath_var=LD_LIBRARY_PATH
10247   fi
10248   ;;
10249
10250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10251   version_type=freebsd-elf
10252   need_lib_prefix=no
10253   need_version=no
10254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255   soname_spec='${libname}${release}${shared_ext}$major'
10256   shlibpath_var=LD_LIBRARY_PATH
10257   hardcode_into_libs=yes
10258   if test "$with_gnu_ld" = yes; then
10259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10260     shlibpath_overrides_runpath=no
10261   else
10262     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10263     shlibpath_overrides_runpath=yes
10264     case $host_os in
10265       sco3.2v5*)
10266         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10267         ;;
10268     esac
10269   fi
10270   sys_lib_dlsearch_path_spec='/usr/lib'
10271   ;;
10272
10273 uts4*)
10274   version_type=linux
10275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276   soname_spec='${libname}${release}${shared_ext}$major'
10277   shlibpath_var=LD_LIBRARY_PATH
10278   ;;
10279
10280 *)
10281   dynamic_linker=no
10282   ;;
10283 esac
10284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10285 echo "${ECHO_T}$dynamic_linker" >&6; }
10286 test "$dynamic_linker" = no && can_build_shared=no
10287
10288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10289 if test "$GCC" = yes; then
10290   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10291 fi
10292
10293
10294 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10295 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10296 if test "${libltdl_cv_shlibext+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299
10300 module=yes
10301 eval libltdl_cv_shlibext=$shrext_cmds
10302
10303 fi
10304 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10305 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10306 if test -n "$libltdl_cv_shlibext"; then
10307
10308 cat >>confdefs.h <<_ACEOF
10309 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10310 _ACEOF
10311
10312 fi
10313
10314
10315 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10316 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10317 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   libltdl_cv_shlibpath_var="$shlibpath_var"
10321 fi
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10323 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10324 if test -n "$libltdl_cv_shlibpath_var"; then
10325
10326 cat >>confdefs.h <<_ACEOF
10327 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10328 _ACEOF
10329
10330 fi
10331
10332
10333 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10334 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10335 if test "${libltdl_cv_sys_search_path+set}" = set; then
10336   echo $ECHO_N "(cached) $ECHO_C" >&6
10337 else
10338   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10339 fi
10340 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10341 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10342 if test -n "$libltdl_cv_sys_search_path"; then
10343   sys_search_path=
10344   for dir in $libltdl_cv_sys_search_path; do
10345     if test -z "$sys_search_path"; then
10346       sys_search_path="$dir"
10347     else
10348       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10349     fi
10350   done
10351
10352 cat >>confdefs.h <<_ACEOF
10353 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10354 _ACEOF
10355
10356 fi
10357
10358 { echo "$as_me:$LINENO: checking for objdir" >&5
10359 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10360 if test "${libltdl_cv_objdir+set}" = set; then
10361   echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363   libltdl_cv_objdir="$objdir"
10364   if test -n "$objdir"; then
10365     :
10366   else
10367     rm -f .libs 2>/dev/null
10368     mkdir .libs 2>/dev/null
10369     if test -d .libs; then
10370       libltdl_cv_objdir=.libs
10371     else
10372       # MS-DOS does not allow filenames that begin with a dot.
10373       libltdl_cv_objdir=_libs
10374     fi
10375   rmdir .libs 2>/dev/null
10376   fi
10377
10378 fi
10379 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10380 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10381
10382 cat >>confdefs.h <<_ACEOF
10383 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10384 _ACEOF
10385
10386
10387
10388
10389
10390
10391 # Check for command to grab the raw symbol name followed by C symbol from nm.
10392 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10393 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10394 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397
10398 # These are sane defaults that work on at least a few old systems.
10399 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10400
10401 # Character class describing NM global symbol codes.
10402 symcode='[BCDEGRST]'
10403
10404 # Regexp to match symbols that can be accessed directly from C.
10405 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10406
10407 # Transform an extracted symbol line into a proper C declaration
10408 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10409
10410 # Transform an extracted symbol line into symbol name and symbol address
10411 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'"
10412
10413 # Define system-specific variables.
10414 case $host_os in
10415 aix*)
10416   symcode='[BCDT]'
10417   ;;
10418 cygwin* | mingw* | pw32*)
10419   symcode='[ABCDGISTW]'
10420   ;;
10421 hpux*) # Its linker distinguishes data from code symbols
10422   if test "$host_cpu" = ia64; then
10423     symcode='[ABCDEGRST]'
10424   fi
10425   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10426   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'"
10427   ;;
10428 linux*)
10429   if test "$host_cpu" = ia64; then
10430     symcode='[ABCDGIRSTW]'
10431     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10432     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'"
10433   fi
10434   ;;
10435 irix* | nonstopux*)
10436   symcode='[BCDEGRST]'
10437   ;;
10438 osf*)
10439   symcode='[BCDEGQRST]'
10440   ;;
10441 solaris*)
10442   symcode='[BDRT]'
10443   ;;
10444 sco3.2v5*)
10445   symcode='[DT]'
10446   ;;
10447 sysv4.2uw2*)
10448   symcode='[DT]'
10449   ;;
10450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10451   symcode='[ABDT]'
10452   ;;
10453 sysv4)
10454   symcode='[DFNSTU]'
10455   ;;
10456 esac
10457
10458 # Handle CRLF in mingw tool chain
10459 opt_cr=
10460 case $build_os in
10461 mingw*)
10462   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10463   ;;
10464 esac
10465
10466 # If we're using GNU nm, then use its standard symbol codes.
10467 case `$NM -V 2>&1` in
10468 *GNU* | *'with BFD'*)
10469   symcode='[ABCDGIRSTW]' ;;
10470 esac
10471
10472 # Try without a prefix undercore, then with it.
10473 for ac_symprfx in "" "_"; do
10474
10475   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10476   symxfrm="\\1 $ac_symprfx\\2 \\2"
10477
10478   # Write the raw and C identifiers.
10479   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10480
10481   # Check to see that the pipe works correctly.
10482   pipe_works=no
10483
10484   rm -f conftest*
10485   cat > conftest.$ac_ext <<EOF
10486 #ifdef __cplusplus
10487 extern "C" {
10488 #endif
10489 char nm_test_var;
10490 void nm_test_func(){}
10491 #ifdef __cplusplus
10492 }
10493 #endif
10494 int main(){nm_test_var='a';nm_test_func();return(0);}
10495 EOF
10496
10497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498   (eval $ac_compile) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; then
10502     # Now try to grab the symbols.
10503     nlist=conftest.nm
10504     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10505   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } && test -s "$nlist"; then
10509       # Try sorting and uniquifying the output.
10510       if sort "$nlist" | uniq > "$nlist"T; then
10511         mv -f "$nlist"T "$nlist"
10512       else
10513         rm -f "$nlist"T
10514       fi
10515
10516       # Make sure that we snagged all the symbols we need.
10517       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10518         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10519           cat <<EOF > conftest.$ac_ext
10520 #ifdef __cplusplus
10521 extern "C" {
10522 #endif
10523
10524 EOF
10525           # Now generate the symbol file.
10526           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10527
10528           cat <<EOF >> conftest.$ac_ext
10529 #if defined (__STDC__) && __STDC__
10530 # define lt_ptr_t void *
10531 #else
10532 # define lt_ptr_t char *
10533 # define const
10534 #endif
10535
10536 /* The mapping between symbol names and symbols. */
10537 const struct {
10538   const char *name;
10539   lt_ptr_t address;
10540 }
10541 lt_preloaded_symbols[] =
10542 {
10543 EOF
10544           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10545           cat <<\EOF >> conftest.$ac_ext
10546   {0, (lt_ptr_t) 0}
10547 };
10548
10549 #ifdef __cplusplus
10550 }
10551 #endif
10552 EOF
10553           # Now try linking the two files.
10554           mv conftest.$ac_objext conftstm.$ac_objext
10555           lt_save_LIBS="$LIBS"
10556           lt_save_CFLAGS="$CFLAGS"
10557           LIBS="conftstm.$ac_objext"
10558           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10559           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560   (eval $ac_link) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10564             pipe_works=yes
10565           fi
10566           LIBS="$lt_save_LIBS"
10567           CFLAGS="$lt_save_CFLAGS"
10568         else
10569           echo "cannot find nm_test_func in $nlist" >&5
10570         fi
10571       else
10572         echo "cannot find nm_test_var in $nlist" >&5
10573       fi
10574     else
10575       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10576     fi
10577   else
10578     echo "$progname: failed program was:" >&5
10579     cat conftest.$ac_ext >&5
10580   fi
10581   rm -f conftest* conftst*
10582
10583   # Do not use the global_symbol_pipe unless it works.
10584   if test "$pipe_works" = yes; then
10585     break
10586   else
10587     lt_cv_sys_global_symbol_pipe=
10588   fi
10589 done
10590
10591 fi
10592
10593 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10594   lt_cv_sys_global_symbol_to_cdecl=
10595 fi
10596 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10597   { echo "$as_me:$LINENO: result: failed" >&5
10598 echo "${ECHO_T}failed" >&6; }
10599 else
10600   { echo "$as_me:$LINENO: result: ok" >&5
10601 echo "${ECHO_T}ok" >&6; }
10602 fi
10603
10604
10605 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10606 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10611     libltdl_cv_preloaded_symbols=yes
10612   else
10613     libltdl_cv_preloaded_symbols=no
10614   fi
10615
10616 fi
10617 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10618 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define HAVE_PRELOADED_SYMBOLS 1
10623 _ACEOF
10624
10625 fi
10626
10627 LIBADD_DL=
10628
10629 ac_ext=c
10630 ac_cpp='$CPP $CPPFLAGS'
10631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10634
10635
10636 { echo "$as_me:$LINENO: checking for shl_load" >&5
10637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10638 if test "${ac_cv_func_shl_load+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10649 #define shl_load innocuous_shl_load
10650
10651 /* System header to define __stub macros and hopefully few prototypes,
10652     which can conflict with char shl_load (); below.
10653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10654     <limits.h> exists even on freestanding compilers.  */
10655
10656 #ifdef __STDC__
10657 # include <limits.h>
10658 #else
10659 # include <assert.h>
10660 #endif
10661
10662 #undef shl_load
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665    Use char because int might match the return type of a GCC
10666    builtin and then its argument prototype would still apply.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char shl_load ();
10671 /* The GNU C library defines this for functions which it implements
10672     to always fail with ENOSYS.  Some functions are actually named
10673     something starting with __ and the normal name is an alias.  */
10674 #if defined __stub_shl_load || defined __stub___shl_load
10675 choke me
10676 #endif
10677
10678 int
10679 main ()
10680 {
10681 return shl_load ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690   *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693   (eval "$ac_link") 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } &&
10700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701   { (case "(($ac_try" in
10702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703   *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706   (eval "$ac_try") 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; } &&
10710          { ac_try='test -s conftest$ac_exeext'
10711   { (case "(($ac_try" in
10712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713   *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716   (eval "$ac_try") 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; }; then
10720   ac_cv_func_shl_load=yes
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         ac_cv_func_shl_load=no
10726 fi
10727
10728 rm -f core conftest.err conftest.$ac_objext \
10729       conftest$ac_exeext conftest.$ac_ext
10730 fi
10731 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10732 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10733 if test $ac_cv_func_shl_load = yes; then
10734
10735 cat >>confdefs.h <<\_ACEOF
10736 #define HAVE_SHL_LOAD 1
10737 _ACEOF
10738
10739 else
10740   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743   echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745   ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldld  $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753
10754 /* Override any GCC internal prototype to avoid an error.
10755    Use char because int might match the return type of a GCC
10756    builtin and then its argument prototype would still apply.  */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char shl_load ();
10761 int
10762 main ()
10763 {
10764 return shl_load ();
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773   *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776   (eval "$ac_link") 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } &&
10783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10784   { (case "(($ac_try" in
10785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10786   *) ac_try_echo=$ac_try;;
10787 esac
10788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10789   (eval "$ac_try") 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; } &&
10793          { ac_try='test -s conftest$ac_exeext'
10794   { (case "(($ac_try" in
10795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796   *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799   (eval "$ac_try") 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; }; then
10803   ac_cv_lib_dld_shl_load=yes
10804 else
10805   echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808         ac_cv_lib_dld_shl_load=no
10809 fi
10810
10811 rm -f core conftest.err conftest.$ac_objext \
10812       conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10816 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10817 if test $ac_cv_lib_dld_shl_load = yes; then
10818
10819 cat >>confdefs.h <<\_ACEOF
10820 #define HAVE_SHL_LOAD 1
10821 _ACEOF
10822
10823         LIBADD_DL="$LIBADD_DL -ldld"
10824 else
10825   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 else
10830   ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-ldl  $LIBS"
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 /* Override any GCC internal prototype to avoid an error.
10840    Use char because int might match the return type of a GCC
10841    builtin and then its argument prototype would still apply.  */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char dlopen ();
10846 int
10847 main ()
10848 {
10849 return dlopen ();
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_link") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869   { (case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_try") 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; } &&
10878          { ac_try='test -s conftest$ac_exeext'
10879   { (case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_try") 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   ac_cv_lib_dl_dlopen=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893         ac_cv_lib_dl_dlopen=no
10894 fi
10895
10896 rm -f core conftest.err conftest.$ac_objext \
10897       conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10899 fi
10900 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10901 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10902 if test $ac_cv_lib_dl_dlopen = yes; then
10903
10904 cat >>confdefs.h <<\_ACEOF
10905 #define HAVE_LIBDL 1
10906 _ACEOF
10907
10908                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10909 else
10910   cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916 #if HAVE_DLFCN_H
10917 #  include <dlfcn.h>
10918 #endif
10919
10920 int
10921 main ()
10922 {
10923 dlopen(0, 0);
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935   (eval "$ac_link") 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } &&
10942          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; } &&
10952          { ac_try='test -s conftest$ac_exeext'
10953   { (case "(($ac_try" in
10954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955   *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958   (eval "$ac_try") 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }; }; then
10962
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_LIBDL 1
10965 _ACEOF
10966  libltdl_cv_func_dlopen="yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10974   echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976   ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-lsvld  $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984
10985 /* Override any GCC internal prototype to avoid an error.
10986    Use char because int might match the return type of a GCC
10987    builtin and then its argument prototype would still apply.  */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10992 int
10993 main ()
10994 {
10995 return dlopen ();
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_link") 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11015   { (case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_try") 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); }; } &&
11024          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11034   ac_cv_lib_svld_dlopen=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039         ac_cv_lib_svld_dlopen=no
11040 fi
11041
11042 rm -f core conftest.err conftest.$ac_objext \
11043       conftest$ac_exeext conftest.$ac_ext
11044 LIBS=$ac_check_lib_save_LIBS
11045 fi
11046 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11047 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11048 if test $ac_cv_lib_svld_dlopen = yes; then
11049
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_LIBDL 1
11052 _ACEOF
11053
11054                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11055 else
11056   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11057 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11058 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-ldld  $LIBS"
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071    Use char because int might match the return type of a GCC
11072    builtin and then its argument prototype would still apply.  */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char dld_link ();
11077 int
11078 main ()
11079 {
11080 return dld_link ();
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_link") 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100   { (case "(($ac_try" in
11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102   *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105   (eval "$ac_try") 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; } &&
11109          { ac_try='test -s conftest$ac_exeext'
11110   { (case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_try") 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_lib_dld_dld_link=yes
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124         ac_cv_lib_dld_dld_link=no
11125 fi
11126
11127 rm -f core conftest.err conftest.$ac_objext \
11128       conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11132 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11133 if test $ac_cv_lib_dld_dld_link = yes; then
11134
11135 cat >>confdefs.h <<\_ACEOF
11136 #define HAVE_DLD 1
11137 _ACEOF
11138
11139                 LIBADD_DL="$LIBADD_DL -ldld"
11140 else
11141   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11142 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11143 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11154 #define _dyld_func_lookup innocuous__dyld_func_lookup
11155
11156 /* System header to define __stub macros and hopefully few prototypes,
11157     which can conflict with char _dyld_func_lookup (); below.
11158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159     <limits.h> exists even on freestanding compilers.  */
11160
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166
11167 #undef _dyld_func_lookup
11168
11169 /* Override any GCC internal prototype to avoid an error.
11170    Use char because int might match the return type of a GCC
11171    builtin and then its argument prototype would still apply.  */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char _dyld_func_lookup ();
11176 /* The GNU C library defines this for functions which it implements
11177     to always fail with ENOSYS.  Some functions are actually named
11178     something starting with __ and the normal name is an alias.  */
11179 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11180 choke me
11181 #endif
11182
11183 int
11184 main ()
11185 {
11186 return _dyld_func_lookup ();
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195   *) ac_try_echo=$ac_try;;
11196 esac
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198   (eval "$ac_link") 2>conftest.er1
11199   ac_status=$?
11200   grep -v '^ *+' conftest.er1 >conftest.err
11201   rm -f conftest.er1
11202   cat conftest.err >&5
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); } &&
11205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11206   { (case "(($ac_try" in
11207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208   *) ac_try_echo=$ac_try;;
11209 esac
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211   (eval "$ac_try") 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; } &&
11215          { ac_try='test -s conftest$ac_exeext'
11216   { (case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_try") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; }; then
11225   ac_cv_func__dyld_func_lookup=yes
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230         ac_cv_func__dyld_func_lookup=no
11231 fi
11232
11233 rm -f core conftest.err conftest.$ac_objext \
11234       conftest$ac_exeext conftest.$ac_ext
11235 fi
11236 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11237 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11238 if test $ac_cv_func__dyld_func_lookup = yes; then
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_DYLD 1
11242 _ACEOF
11243
11244 fi
11245
11246
11247 fi
11248
11249
11250 fi
11251
11252
11253 fi
11254
11255 rm -f core conftest.err conftest.$ac_objext \
11256       conftest$ac_exeext conftest.$ac_ext
11257
11258 fi
11259
11260
11261 fi
11262
11263
11264 fi
11265
11266
11267 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11268 then
11269   lt_save_LIBS="$LIBS"
11270   LIBS="$LIBS $LIBADD_DL"
11271
11272 for ac_func in dlerror
11273 do
11274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11288 #define $ac_func innocuous_$ac_func
11289
11290 /* System header to define __stub macros and hopefully few prototypes,
11291     which can conflict with char $ac_func (); below.
11292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293     <limits.h> exists even on freestanding compilers.  */
11294
11295 #ifdef __STDC__
11296 # include <limits.h>
11297 #else
11298 # include <assert.h>
11299 #endif
11300
11301 #undef $ac_func
11302
11303 /* Override any GCC internal prototype to avoid an error.
11304    Use char because int might match the return type of a GCC
11305    builtin and then its argument prototype would still apply.  */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char $ac_func ();
11310 /* The GNU C library defines this for functions which it implements
11311     to always fail with ENOSYS.  Some functions are actually named
11312     something starting with __ and the normal name is an alias.  */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11314 choke me
11315 #endif
11316
11317 int
11318 main ()
11319 {
11320 return $ac_func ();
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329   *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332   (eval "$ac_link") 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11340   { (case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345   (eval "$ac_try") 2>&5
11346   ac_status=$?
11347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348   (exit $ac_status); }; } &&
11349          { ac_try='test -s conftest$ac_exeext'
11350   { (case "(($ac_try" in
11351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352   *) ac_try_echo=$ac_try;;
11353 esac
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355   (eval "$ac_try") 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   eval "$as_ac_var=yes"
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364         eval "$as_ac_var=no"
11365 fi
11366
11367 rm -f core conftest.err conftest.$ac_objext \
11368       conftest$ac_exeext conftest.$ac_ext
11369 fi
11370 ac_res=`eval echo '${'$as_ac_var'}'`
11371                { echo "$as_me:$LINENO: result: $ac_res" >&5
11372 echo "${ECHO_T}$ac_res" >&6; }
11373 if test `eval echo '${'$as_ac_var'}'` = yes; then
11374   cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11376 _ACEOF
11377
11378 fi
11379 done
11380
11381   LIBS="$lt_save_LIBS"
11382 fi
11383 ac_ext=c
11384 ac_cpp='$CPP $CPPFLAGS'
11385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11388
11389
11390
11391 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11392 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11393 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   ac_cv_sys_symbol_underscore=no
11397   cat > conftest.$ac_ext <<EOF
11398 void nm_test_func(){}
11399 int main(){nm_test_func;return 0;}
11400 EOF
11401   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402   (eval $ac_compile) 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; then
11406     # Now try to grab the symbols.
11407     ac_nlist=conftest.nm
11408     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11409   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11410   ac_status=$?
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } && test -s "$ac_nlist"; then
11413       # See whether the symbols have a leading underscore.
11414       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11415         ac_cv_sys_symbol_underscore=yes
11416       else
11417         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11418           :
11419         else
11420           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11421         fi
11422       fi
11423     else
11424       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11425     fi
11426   else
11427     echo "configure: failed program was:" >&5
11428     cat conftest.c >&5
11429   fi
11430   rm -rf conftest*
11431
11432 fi
11433 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11434 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11435
11436
11437 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11438   if test x"$libltdl_cv_func_dlopen" = xyes ||
11439      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11440         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11441 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11442 if test "${libltdl_cv_need_uscore+set}" = set; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   libltdl_cv_need_uscore=unknown
11446           save_LIBS="$LIBS"
11447           LIBS="$LIBS $LIBADD_DL"
11448           if test "$cross_compiling" = yes; then :
11449   libltdl_cv_need_uscore=cross
11450 else
11451   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452   lt_status=$lt_dlunknown
11453   cat > conftest.$ac_ext <<EOF
11454 #line 11454 "configure"
11455 #include "confdefs.h"
11456
11457 #if HAVE_DLFCN_H
11458 #include <dlfcn.h>
11459 #endif
11460
11461 #include <stdio.h>
11462
11463 #ifdef RTLD_GLOBAL
11464 #  define LT_DLGLOBAL           RTLD_GLOBAL
11465 #else
11466 #  ifdef DL_GLOBAL
11467 #    define LT_DLGLOBAL         DL_GLOBAL
11468 #  else
11469 #    define LT_DLGLOBAL         0
11470 #  endif
11471 #endif
11472
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474    find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11476 #  ifdef RTLD_LAZY
11477 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11478 #  else
11479 #    ifdef DL_LAZY
11480 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11481 #    else
11482 #      ifdef RTLD_NOW
11483 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11484 #      else
11485 #        ifdef DL_NOW
11486 #          define LT_DLLAZY_OR_NOW      DL_NOW
11487 #        else
11488 #          define LT_DLLAZY_OR_NOW      0
11489 #        endif
11490 #      endif
11491 #    endif
11492 #  endif
11493 #endif
11494
11495 #ifdef __cplusplus
11496 extern "C" void exit (int);
11497 #endif
11498
11499 void fnord() { int i=42;}
11500 int main ()
11501 {
11502   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11503   int status = $lt_dlunknown;
11504
11505   if (self)
11506     {
11507       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11508       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509       /* dlclose (self); */
11510     }
11511   else
11512     puts (dlerror ());
11513
11514     exit (status);
11515 }
11516 EOF
11517   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11518   (eval $ac_link) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11522     (./conftest; exit; ) >&5 2>/dev/null
11523     lt_status=$?
11524     case x$lt_status in
11525       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11526       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11527       x$lt_dlunknown|x*)  ;;
11528     esac
11529   else :
11530     # compilation failed
11531
11532   fi
11533 fi
11534 rm -fr conftest*
11535
11536           LIBS="$save_LIBS"
11537
11538 fi
11539 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11540 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11541   fi
11542 fi
11543
11544 if test x"$libltdl_cv_need_uscore" = xyes; then
11545
11546 cat >>confdefs.h <<\_ACEOF
11547 #define NEED_USCORE 1
11548 _ACEOF
11549
11550 fi
11551
11552
11553 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11554 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11555 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11556   echo $ECHO_N "(cached) $ECHO_C" >&6
11557 else
11558   # PORTME does your system automatically load deplibs for dlopen?
11559   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11560   # For now, we just catch OSes we know something about -- in the
11561   # future, we'll try test this programmatically.
11562   libltdl_cv_sys_dlopen_deplibs=unknown
11563   case "$host_os" in
11564   aix3*|aix4.1.*|aix4.2.*)
11565     # Unknown whether this is true for these versions of AIX, but
11566     # we want this `case' here to explicitly catch those versions.
11567     libltdl_cv_sys_dlopen_deplibs=unknown
11568     ;;
11569   aix[45]*)
11570     libltdl_cv_sys_dlopen_deplibs=yes
11571     ;;
11572   darwin*)
11573     # Assuming the user has installed a libdl from somewhere, this is true
11574     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11575     libltdl_cv_sys_dlopen_deplibs=yes
11576     ;;
11577   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11578     # GNU and its variants, using gnu ld.so (Glibc)
11579     libltdl_cv_sys_dlopen_deplibs=yes
11580     ;;
11581   hpux10*|hpux11*)
11582     libltdl_cv_sys_dlopen_deplibs=yes
11583     ;;
11584   interix*)
11585     libltdl_cv_sys_dlopen_deplibs=yes
11586     ;;
11587   irix[12345]*|irix6.[01]*)
11588     # Catch all versions of IRIX before 6.2, and indicate that we don't
11589     # know how it worked for any of those versions.
11590     libltdl_cv_sys_dlopen_deplibs=unknown
11591     ;;
11592   irix*)
11593     # The case above catches anything before 6.2, and it's known that
11594     # at 6.2 and later dlopen does load deplibs.
11595     libltdl_cv_sys_dlopen_deplibs=yes
11596     ;;
11597   netbsd*)
11598     libltdl_cv_sys_dlopen_deplibs=yes
11599     ;;
11600   openbsd*)
11601     libltdl_cv_sys_dlopen_deplibs=yes
11602     ;;
11603   osf[1234]*)
11604     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11605     # it did *not* use an RPATH in a shared library to find objects the
11606     # library depends on, so we explictly say `no'.
11607     libltdl_cv_sys_dlopen_deplibs=no
11608     ;;
11609   osf5.0|osf5.0a|osf5.1)
11610     # dlopen *does* load deplibs and with the right loader patch applied
11611     # it even uses RPATH in a shared library to search for shared objects
11612     # that the library depends on, but there's no easy way to know if that
11613     # patch is installed.  Since this is the case, all we can really
11614     # say is unknown -- it depends on the patch being installed.  If
11615     # it is, this changes to `yes'.  Without it, it would be `no'.
11616     libltdl_cv_sys_dlopen_deplibs=unknown
11617     ;;
11618   osf*)
11619     # the two cases above should catch all versions of osf <= 5.1.  Read
11620     # the comments above for what we know about them.
11621     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11622     # is used to find them so we can finally say `yes'.
11623     libltdl_cv_sys_dlopen_deplibs=yes
11624     ;;
11625   solaris*)
11626     libltdl_cv_sys_dlopen_deplibs=yes
11627     ;;
11628   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629     libltdl_cv_sys_dlopen_deplibs=yes
11630     ;;
11631   esac
11632
11633 fi
11634 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11635 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11636 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11637
11638 cat >>confdefs.h <<\_ACEOF
11639 #define LTDL_DLOPEN_DEPLIBS 1
11640 _ACEOF
11641
11642 fi
11643
11644
11645 for ac_header in argz.h
11646 do
11647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11652   echo $ECHO_N "(cached) $ECHO_C" >&6
11653 fi
11654 ac_res=`eval echo '${'$as_ac_Header'}'`
11655                { echo "$as_me:$LINENO: result: $ac_res" >&5
11656 echo "${ECHO_T}$ac_res" >&6; }
11657 else
11658   # Is the header compilable?
11659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 $ac_includes_default
11668 #include <$ac_header>
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677   (eval "$ac_compile") 2>conftest.er1
11678   ac_status=$?
11679   grep -v '^ *+' conftest.er1 >conftest.err
11680   rm -f conftest.er1
11681   cat conftest.err >&5
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); } &&
11684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11694          { ac_try='test -s conftest.$ac_objext'
11695   { (case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_try") 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704   ac_header_compiler=yes
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709         ac_header_compiler=no
11710 fi
11711
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11714 echo "${ECHO_T}$ac_header_compiler" >&6; }
11715
11716 # Is the header present?
11717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 #include <$ac_header>
11726 _ACEOF
11727 if { (ac_try="$ac_cpp conftest.$ac_ext"
11728 case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11734   ac_status=$?
11735   grep -v '^ *+' conftest.er1 >conftest.err
11736   rm -f conftest.er1
11737   cat conftest.err >&5
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); } >/dev/null; then
11740   if test -s conftest.err; then
11741     ac_cpp_err=$ac_c_preproc_warn_flag
11742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11743   else
11744     ac_cpp_err=
11745   fi
11746 else
11747   ac_cpp_err=yes
11748 fi
11749 if test -z "$ac_cpp_err"; then
11750   ac_header_preproc=yes
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755   ac_header_preproc=no
11756 fi
11757
11758 rm -f conftest.err conftest.$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11760 echo "${ECHO_T}$ac_header_preproc" >&6; }
11761
11762 # So?  What about this header?
11763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764   yes:no: )
11765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11769     ac_header_preproc=yes
11770     ;;
11771   no:yes:* )
11772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11784     ( cat <<\_ASBOX
11785 ## ----------------------------------- ##
11786 ## Report this to llvmbugs@cs.uiuc.edu ##
11787 ## ----------------------------------- ##
11788 _ASBOX
11789      ) | sed "s/^/$as_me: WARNING:     /" >&2
11790     ;;
11791 esac
11792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   eval "$as_ac_Header=\$ac_header_preproc"
11798 fi
11799 ac_res=`eval echo '${'$as_ac_Header'}'`
11800                { echo "$as_me:$LINENO: result: $ac_res" >&5
11801 echo "${ECHO_T}$ac_res" >&6; }
11802
11803 fi
11804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11805   cat >>confdefs.h <<_ACEOF
11806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11807 _ACEOF
11808
11809 fi
11810
11811 done
11812
11813
11814 { echo "$as_me:$LINENO: checking for error_t" >&5
11815 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11816 if test "${ac_cv_type_error_t+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h.  */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h.  */
11825 #if HAVE_ARGZ_H
11826 #  include <argz.h>
11827 #endif
11828
11829 typedef error_t ac__type_new_;
11830 int
11831 main ()
11832 {
11833 if ((ac__type_new_ *) 0)
11834   return 0;
11835 if (sizeof (ac__type_new_))
11836   return 0;
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_compile") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856   { (case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_try") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }; } &&
11865          { ac_try='test -s conftest.$ac_objext'
11866   { (case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_try") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_type_error_t=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880         ac_cv_type_error_t=no
11881 fi
11882
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 fi
11885 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11886 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11887 if test $ac_cv_type_error_t = yes; then
11888
11889 cat >>confdefs.h <<_ACEOF
11890 #define HAVE_ERROR_T 1
11891 _ACEOF
11892
11893
11894 else
11895
11896 cat >>confdefs.h <<\_ACEOF
11897 #define error_t int
11898 _ACEOF
11899
11900 fi
11901
11902
11903
11904
11905
11906
11907
11908 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11909 do
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916   cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11924 #define $ac_func innocuous_$ac_func
11925
11926 /* System header to define __stub macros and hopefully few prototypes,
11927     which can conflict with char $ac_func (); below.
11928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929     <limits.h> exists even on freestanding compilers.  */
11930
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11936
11937 #undef $ac_func
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940    Use char because int might match the return type of a GCC
11941    builtin and then its argument prototype would still apply.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char $ac_func ();
11946 /* The GNU C library defines this for functions which it implements
11947     to always fail with ENOSYS.  Some functions are actually named
11948     something starting with __ and the normal name is an alias.  */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11950 choke me
11951 #endif
11952
11953 int
11954 main ()
11955 {
11956 return $ac_func ();
11957   ;
11958   return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965   *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968   (eval "$ac_link") 2>conftest.er1
11969   ac_status=$?
11970   grep -v '^ *+' conftest.er1 >conftest.err
11971   rm -f conftest.er1
11972   cat conftest.err >&5
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); } &&
11975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11976   { (case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_try") 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (case "(($ac_try" in
11987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988   *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991   (eval "$ac_try") 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   eval "$as_ac_var=yes"
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         eval "$as_ac_var=no"
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext \
12004       conftest$ac_exeext conftest.$ac_ext
12005 fi
12006 ac_res=`eval echo '${'$as_ac_var'}'`
12007                { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 if test `eval echo '${'$as_ac_var'}'` = yes; then
12010   cat >>confdefs.h <<_ACEOF
12011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012 _ACEOF
12013
12014 fi
12015 done
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12045                   stdio.h unistd.h
12046 do
12047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 fi
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055                { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12057 else
12058   # Is the header compilable?
12059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12061 cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 $ac_includes_default
12068 #include <$ac_header>
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_compile") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085   { (case "(($ac_try" in
12086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087   *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090   (eval "$ac_try") 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; } &&
12094          { ac_try='test -s conftest.$ac_objext'
12095   { (case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12100   (eval "$ac_try") 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_header_compiler=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109         ac_header_compiler=no
12110 fi
12111
12112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12114 echo "${ECHO_T}$ac_header_compiler" >&6; }
12115
12116 # Is the header present?
12117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 #include <$ac_header>
12126 _ACEOF
12127 if { (ac_try="$ac_cpp conftest.$ac_ext"
12128 case "(($ac_try" in
12129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130   *) ac_try_echo=$ac_try;;
12131 esac
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } >/dev/null; then
12140   if test -s conftest.err; then
12141     ac_cpp_err=$ac_c_preproc_warn_flag
12142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12143   else
12144     ac_cpp_err=
12145   fi
12146 else
12147   ac_cpp_err=yes
12148 fi
12149 if test -z "$ac_cpp_err"; then
12150   ac_header_preproc=yes
12151 else
12152   echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155   ac_header_preproc=no
12156 fi
12157
12158 rm -f conftest.err conftest.$ac_ext
12159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6; }
12161
12162 # So?  What about this header?
12163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12164   yes:no: )
12165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12169     ac_header_preproc=yes
12170     ;;
12171   no:yes:* )
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12184     ( cat <<\_ASBOX
12185 ## ----------------------------------- ##
12186 ## Report this to llvmbugs@cs.uiuc.edu ##
12187 ## ----------------------------------- ##
12188 _ASBOX
12189      ) | sed "s/^/$as_me: WARNING:     /" >&2
12190     ;;
12191 esac
12192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   eval "$as_ac_Header=\$ac_header_preproc"
12198 fi
12199 ac_res=`eval echo '${'$as_ac_Header'}'`
12200                { echo "$as_me:$LINENO: result: $ac_res" >&5
12201 echo "${ECHO_T}$ac_res" >&6; }
12202
12203 fi
12204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12205   cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 _ACEOF
12208
12209 fi
12210
12211 done
12212
12213
12214
12215
12216
12217 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12218 do
12219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 fi
12226 ac_res=`eval echo '${'$as_ac_Header'}'`
12227                { echo "$as_me:$LINENO: result: $ac_res" >&5
12228 echo "${ECHO_T}$ac_res" >&6; }
12229 else
12230   # Is the header compilable?
12231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (ac_try="$ac_compile"
12244 case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_compile") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257   { (case "(($ac_try" in
12258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259   *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262   (eval "$ac_try") 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; } &&
12266          { ac_try='test -s conftest.$ac_objext'
12267   { (case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_try") 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; }; then
12276   ac_header_compiler=yes
12277 else
12278   echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281         ac_header_compiler=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12286 echo "${ECHO_T}$ac_header_compiler" >&6; }
12287
12288 # Is the header present?
12289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h.  */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h.  */
12297 #include <$ac_header>
12298 _ACEOF
12299 if { (ac_try="$ac_cpp conftest.$ac_ext"
12300 case "(($ac_try" in
12301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302   *) ac_try_echo=$ac_try;;
12303 esac
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } >/dev/null; then
12312   if test -s conftest.err; then
12313     ac_cpp_err=$ac_c_preproc_warn_flag
12314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12315   else
12316     ac_cpp_err=
12317   fi
12318 else
12319   ac_cpp_err=yes
12320 fi
12321 if test -z "$ac_cpp_err"; then
12322   ac_header_preproc=yes
12323 else
12324   echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327   ac_header_preproc=no
12328 fi
12329
12330 rm -f conftest.err conftest.$ac_ext
12331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12332 echo "${ECHO_T}$ac_header_preproc" >&6; }
12333
12334 # So?  What about this header?
12335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12336   yes:no: )
12337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12341     ac_header_preproc=yes
12342     ;;
12343   no:yes:* )
12344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12356     ( cat <<\_ASBOX
12357 ## ----------------------------------- ##
12358 ## Report this to llvmbugs@cs.uiuc.edu ##
12359 ## ----------------------------------- ##
12360 _ASBOX
12361      ) | sed "s/^/$as_me: WARNING:     /" >&2
12362     ;;
12363 esac
12364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   eval "$as_ac_Header=\$ac_header_preproc"
12370 fi
12371 ac_res=`eval echo '${'$as_ac_Header'}'`
12372                { echo "$as_me:$LINENO: result: $ac_res" >&5
12373 echo "${ECHO_T}$ac_res" >&6; }
12374
12375 fi
12376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12377   cat >>confdefs.h <<_ACEOF
12378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12379 _ACEOF
12380
12381 fi
12382
12383 done
12384
12385
12386
12387 for ac_header in string.h strings.h
12388 do
12389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12391   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 fi
12396 ac_res=`eval echo '${'$as_ac_Header'}'`
12397                { echo "$as_me:$LINENO: result: $ac_res" >&5
12398 echo "${ECHO_T}$ac_res" >&6; }
12399 else
12400   # Is the header compilable?
12401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h.  */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h.  */
12409 $ac_includes_default
12410 #include <$ac_header>
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (ac_try="$ac_compile"
12414 case "(($ac_try" in
12415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416   *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419   (eval "$ac_compile") 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } &&
12426          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12427   { (case "(($ac_try" in
12428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429   *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432   (eval "$ac_try") 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; } &&
12436          { ac_try='test -s conftest.$ac_objext'
12437   { (case "(($ac_try" in
12438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439   *) ac_try_echo=$ac_try;;
12440 esac
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442   (eval "$ac_try") 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; }; then
12446   ac_header_compiler=yes
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451         ac_header_compiler=no
12452 fi
12453
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12456 echo "${ECHO_T}$ac_header_compiler" >&6; }
12457
12458 # Is the header present?
12459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467 #include <$ac_header>
12468 _ACEOF
12469 if { (ac_try="$ac_cpp conftest.$ac_ext"
12470 case "(($ac_try" in
12471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472   *) ac_try_echo=$ac_try;;
12473 esac
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12476   ac_status=$?
12477   grep -v '^ *+' conftest.er1 >conftest.err
12478   rm -f conftest.er1
12479   cat conftest.err >&5
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } >/dev/null; then
12482   if test -s conftest.err; then
12483     ac_cpp_err=$ac_c_preproc_warn_flag
12484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12485   else
12486     ac_cpp_err=
12487   fi
12488 else
12489   ac_cpp_err=yes
12490 fi
12491 if test -z "$ac_cpp_err"; then
12492   ac_header_preproc=yes
12493 else
12494   echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497   ac_header_preproc=no
12498 fi
12499
12500 rm -f conftest.err conftest.$ac_ext
12501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12502 echo "${ECHO_T}$ac_header_preproc" >&6; }
12503
12504 # So?  What about this header?
12505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12506   yes:no: )
12507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12511     ac_header_preproc=yes
12512     ;;
12513   no:yes:* )
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12526     ( cat <<\_ASBOX
12527 ## ----------------------------------- ##
12528 ## Report this to llvmbugs@cs.uiuc.edu ##
12529 ## ----------------------------------- ##
12530 _ASBOX
12531      ) | sed "s/^/$as_me: WARNING:     /" >&2
12532     ;;
12533 esac
12534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537   echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539   eval "$as_ac_Header=\$ac_header_preproc"
12540 fi
12541 ac_res=`eval echo '${'$as_ac_Header'}'`
12542                { echo "$as_me:$LINENO: result: $ac_res" >&5
12543 echo "${ECHO_T}$ac_res" >&6; }
12544
12545 fi
12546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12547   cat >>confdefs.h <<_ACEOF
12548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12549 _ACEOF
12550  break
12551 fi
12552
12553 done
12554
12555
12556
12557
12558 for ac_func in strchr index
12559 do
12560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12564   echo $ECHO_N "(cached) $ECHO_C" >&6
12565 else
12566   cat >conftest.$ac_ext <<_ACEOF
12567 /* confdefs.h.  */
12568 _ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h.  */
12572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12574 #define $ac_func innocuous_$ac_func
12575
12576 /* System header to define __stub macros and hopefully few prototypes,
12577     which can conflict with char $ac_func (); below.
12578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12579     <limits.h> exists even on freestanding compilers.  */
12580
12581 #ifdef __STDC__
12582 # include <limits.h>
12583 #else
12584 # include <assert.h>
12585 #endif
12586
12587 #undef $ac_func
12588
12589 /* Override any GCC internal prototype to avoid an error.
12590    Use char because int might match the return type of a GCC
12591    builtin and then its argument prototype would still apply.  */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 char $ac_func ();
12596 /* The GNU C library defines this for functions which it implements
12597     to always fail with ENOSYS.  Some functions are actually named
12598     something starting with __ and the normal name is an alias.  */
12599 #if defined __stub_$ac_func || defined __stub___$ac_func
12600 choke me
12601 #endif
12602
12603 int
12604 main ()
12605 {
12606 return $ac_func ();
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618   (eval "$ac_link") 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12626   { (case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_try") 2>&5
12632   ac_status=$?
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); }; } &&
12635          { ac_try='test -s conftest$ac_exeext'
12636   { (case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_try") 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   eval "$as_ac_var=yes"
12646 else
12647   echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650         eval "$as_ac_var=no"
12651 fi
12652
12653 rm -f core conftest.err conftest.$ac_objext \
12654       conftest$ac_exeext conftest.$ac_ext
12655 fi
12656 ac_res=`eval echo '${'$as_ac_var'}'`
12657                { echo "$as_me:$LINENO: result: $ac_res" >&5
12658 echo "${ECHO_T}$ac_res" >&6; }
12659 if test `eval echo '${'$as_ac_var'}'` = yes; then
12660   cat >>confdefs.h <<_ACEOF
12661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12662 _ACEOF
12663  break
12664 fi
12665 done
12666
12667
12668
12669 for ac_func in strrchr rindex
12670 do
12671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12685 #define $ac_func innocuous_$ac_func
12686
12687 /* System header to define __stub macros and hopefully few prototypes,
12688     which can conflict with char $ac_func (); below.
12689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690     <limits.h> exists even on freestanding compilers.  */
12691
12692 #ifdef __STDC__
12693 # include <limits.h>
12694 #else
12695 # include <assert.h>
12696 #endif
12697
12698 #undef $ac_func
12699
12700 /* Override any GCC internal prototype to avoid an error.
12701    Use char because int might match the return type of a GCC
12702    builtin and then its argument prototype would still apply.  */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char $ac_func ();
12707 /* The GNU C library defines this for functions which it implements
12708     to always fail with ENOSYS.  Some functions are actually named
12709     something starting with __ and the normal name is an alias.  */
12710 #if defined __stub_$ac_func || defined __stub___$ac_func
12711 choke me
12712 #endif
12713
12714 int
12715 main ()
12716 {
12717 return $ac_func ();
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726   *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729   (eval "$ac_link") 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12737   { (case "(($ac_try" in
12738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739   *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742   (eval "$ac_try") 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; } &&
12746          { ac_try='test -s conftest$ac_exeext'
12747   { (case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_try") 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   eval "$as_ac_var=yes"
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761         eval "$as_ac_var=no"
12762 fi
12763
12764 rm -f core conftest.err conftest.$ac_objext \
12765       conftest$ac_exeext conftest.$ac_ext
12766 fi
12767 ac_res=`eval echo '${'$as_ac_var'}'`
12768                { echo "$as_me:$LINENO: result: $ac_res" >&5
12769 echo "${ECHO_T}$ac_res" >&6; }
12770 if test `eval echo '${'$as_ac_var'}'` = yes; then
12771   cat >>confdefs.h <<_ACEOF
12772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 _ACEOF
12774  break
12775 fi
12776 done
12777
12778
12779
12780 for ac_func in memcpy bcopy
12781 do
12782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12786   echo $ECHO_N "(cached) $ECHO_C" >&6
12787 else
12788   cat >conftest.$ac_ext <<_ACEOF
12789 /* confdefs.h.  */
12790 _ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h.  */
12794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12796 #define $ac_func innocuous_$ac_func
12797
12798 /* System header to define __stub macros and hopefully few prototypes,
12799     which can conflict with char $ac_func (); below.
12800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801     <limits.h> exists even on freestanding compilers.  */
12802
12803 #ifdef __STDC__
12804 # include <limits.h>
12805 #else
12806 # include <assert.h>
12807 #endif
12808
12809 #undef $ac_func
12810
12811 /* Override any GCC internal prototype to avoid an error.
12812    Use char because int might match the return type of a GCC
12813    builtin and then its argument prototype would still apply.  */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char $ac_func ();
12818 /* The GNU C library defines this for functions which it implements
12819     to always fail with ENOSYS.  Some functions are actually named
12820     something starting with __ and the normal name is an alias.  */
12821 #if defined __stub_$ac_func || defined __stub___$ac_func
12822 choke me
12823 #endif
12824
12825 int
12826 main ()
12827 {
12828 return $ac_func ();
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (ac_try="$ac_link"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_link") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } &&
12857          { ac_try='test -s conftest$ac_exeext'
12858   { (case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_try") 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   eval "$as_ac_var=yes"
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         eval "$as_ac_var=no"
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext \
12876       conftest$ac_exeext conftest.$ac_ext
12877 fi
12878 ac_res=`eval echo '${'$as_ac_var'}'`
12879                { echo "$as_me:$LINENO: result: $ac_res" >&5
12880 echo "${ECHO_T}$ac_res" >&6; }
12881 if test `eval echo '${'$as_ac_var'}'` = yes; then
12882   cat >>confdefs.h <<_ACEOF
12883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12884 _ACEOF
12885  break
12886 fi
12887 done
12888
12889
12890
12891 for ac_func in memmove strcmp
12892 do
12893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h.  */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h.  */
12905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12907 #define $ac_func innocuous_$ac_func
12908
12909 /* System header to define __stub macros and hopefully few prototypes,
12910     which can conflict with char $ac_func (); below.
12911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912     <limits.h> exists even on freestanding compilers.  */
12913
12914 #ifdef __STDC__
12915 # include <limits.h>
12916 #else
12917 # include <assert.h>
12918 #endif
12919
12920 #undef $ac_func
12921
12922 /* Override any GCC internal prototype to avoid an error.
12923    Use char because int might match the return type of a GCC
12924    builtin and then its argument prototype would still apply.  */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char $ac_func ();
12929 /* The GNU C library defines this for functions which it implements
12930     to always fail with ENOSYS.  Some functions are actually named
12931     something starting with __ and the normal name is an alias.  */
12932 #if defined __stub_$ac_func || defined __stub___$ac_func
12933 choke me
12934 #endif
12935
12936 int
12937 main ()
12938 {
12939 return $ac_func ();
12940   ;
12941   return 0;
12942 }
12943 _ACEOF
12944 rm -f conftest.$ac_objext conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948   *) ac_try_echo=$ac_try;;
12949 esac
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951   (eval "$ac_link") 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } &&
12958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959   { (case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_try") 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }; } &&
12968          { ac_try='test -s conftest$ac_exeext'
12969   { (case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_try") 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; }; then
12978   eval "$as_ac_var=yes"
12979 else
12980   echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983         eval "$as_ac_var=no"
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext \
12987       conftest$ac_exeext conftest.$ac_ext
12988 fi
12989 ac_res=`eval echo '${'$as_ac_var'}'`
12990                { echo "$as_me:$LINENO: result: $ac_res" >&5
12991 echo "${ECHO_T}$ac_res" >&6; }
12992 if test `eval echo '${'$as_ac_var'}'` = yes; then
12993   cat >>confdefs.h <<_ACEOF
12994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 _ACEOF
12996
12997 fi
12998 done
12999
13000
13001
13002
13003 for ac_func in closedir opendir readdir
13004 do
13005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13009   echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011   cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13019 #define $ac_func innocuous_$ac_func
13020
13021 /* System header to define __stub macros and hopefully few prototypes,
13022     which can conflict with char $ac_func (); below.
13023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13024     <limits.h> exists even on freestanding compilers.  */
13025
13026 #ifdef __STDC__
13027 # include <limits.h>
13028 #else
13029 # include <assert.h>
13030 #endif
13031
13032 #undef $ac_func
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035    Use char because int might match the return type of a GCC
13036    builtin and then its argument prototype would still apply.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char $ac_func ();
13041 /* The GNU C library defines this for functions which it implements
13042     to always fail with ENOSYS.  Some functions are actually named
13043     something starting with __ and the normal name is an alias.  */
13044 #if defined __stub_$ac_func || defined __stub___$ac_func
13045 choke me
13046 #endif
13047
13048 int
13049 main ()
13050 {
13051 return $ac_func ();
13052   ;
13053   return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext conftest$ac_exeext
13057 if { (ac_try="$ac_link"
13058 case "(($ac_try" in
13059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060   *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063   (eval "$ac_link") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13071   { (case "(($ac_try" in
13072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073   *) ac_try_echo=$ac_try;;
13074 esac
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076   (eval "$ac_try") 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; } &&
13080          { ac_try='test -s conftest$ac_exeext'
13081   { (case "(($ac_try" in
13082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083   *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086   (eval "$ac_try") 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   eval "$as_ac_var=yes"
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095         eval "$as_ac_var=no"
13096 fi
13097
13098 rm -f core conftest.err conftest.$ac_objext \
13099       conftest$ac_exeext conftest.$ac_ext
13100 fi
13101 ac_res=`eval echo '${'$as_ac_var'}'`
13102                { echo "$as_me:$LINENO: result: $ac_res" >&5
13103 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_var'}'` = yes; then
13105   cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13107 _ACEOF
13108
13109 fi
13110 done
13111
13112
13113
13114 if test "$WITH_LLVMGCCDIR" = "default" ; then
13115   LLVMGCC="llvm-gcc${EXEEXT}"
13116   LLVMGXX="llvm-g++${EXEEXT}"
13117   LLVMGCCCOMMAND="$LLVMGCC"
13118   LLVMGXXCOMMAND="$LLVMGXX"
13119   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13120
13121   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13122
13123   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13124 set dummy $LLVMGCC; ac_word=$2
13125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13127 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   case $LLVMGCC in
13131   [\\/]* | ?:[\\/]*)
13132   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13133   ;;
13134   *)
13135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13137 do
13138   IFS=$as_save_IFS
13139   test -z "$as_dir" && as_dir=.
13140   for ac_exec_ext in '' $ac_executable_extensions; do
13141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13142     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13144     break 2
13145   fi
13146 done
13147 done
13148 IFS=$as_save_IFS
13149
13150   ;;
13151 esac
13152 fi
13153 LLVMGCC=$ac_cv_path_LLVMGCC
13154 if test -n "$LLVMGCC"; then
13155   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13156 echo "${ECHO_T}$LLVMGCC" >&6; }
13157 else
13158   { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13160 fi
13161
13162
13163   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13164 set dummy $LLVMGXX; ac_word=$2
13165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13168   echo $ECHO_N "(cached) $ECHO_C" >&6
13169 else
13170   case $LLVMGXX in
13171   [\\/]* | ?:[\\/]*)
13172   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13173   ;;
13174   *)
13175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178   IFS=$as_save_IFS
13179   test -z "$as_dir" && as_dir=.
13180   for ac_exec_ext in '' $ac_executable_extensions; do
13181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13182     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13184     break 2
13185   fi
13186 done
13187 done
13188 IFS=$as_save_IFS
13189
13190   ;;
13191 esac
13192 fi
13193 LLVMGXX=$ac_cv_path_LLVMGXX
13194 if test -n "$LLVMGXX"; then
13195   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13196 echo "${ECHO_T}$LLVMGXX" >&6; }
13197 else
13198   { echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6; }
13200 fi
13201
13202
13203 else
13204   if test -z "$LLVMGCC"; then
13205     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13206     LLVMGCCCOMMAND="$LLVMGCC"
13207   fi
13208   if test -z "$LLVMGXX"; then
13209     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13210     LLVMGXXCOMMAND="$LLVMGXX"
13211   fi
13212
13213   LLVMGCC=$LLVMGCC
13214
13215   LLVMGXX=$LLVMGXX
13216
13217   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13218
13219   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13220
13221 fi
13222
13223
13224 # Check whether --with-llvmcc was given.
13225 if test "${with_llvmcc+set}" = set; then
13226   withval=$with_llvmcc;
13227 else
13228   with_llvmcc=check
13229 fi
13230
13231 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13232 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13233 if test "$with_llvmcc" != "check"; then
13234    if (test "$with_llvmcc" != "llvm-gcc" &&
13235        test "$with_llvmcc" != "clang" &&
13236        test "$with_llvmcc" != "none"); then
13237       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13238 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13239    { (exit 1); exit 1; }; }
13240    fi
13241    WITH_LLVMCC="$with_llvmcc"
13242 elif test -n "$LLVMGCC"; then
13243    WITH_LLVMCC=llvm-gcc
13244 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13245    WITH_LLVMCC=clang
13246 else
13247    WITH_LLVMCC=none
13248 fi
13249 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13250 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13251 LLVMCC_OPTION=$WITH_LLVMCC
13252
13253
13254 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13255 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13256
13257 ICC=no
13258 IXX=no
13259 case $CC in
13260   icc*|icpc*)
13261     ICC=yes
13262     IXX=yes
13263     ;;
13264    *)
13265     ;;
13266 esac
13267
13268 if test "$GCC" != "yes" && test "$ICC" != "yes"
13269 then
13270   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13271 echo "$as_me: error: gcc|icc required but not found" >&2;}
13272    { (exit 1); exit 1; }; }
13273 fi
13274
13275 if test "$GXX" != "yes" && test "$IXX" != "yes"
13276 then
13277   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13278 echo "$as_me: error: g++|icc required but not found" >&2;}
13279    { (exit 1); exit 1; }; }
13280 fi
13281
13282 if test "$GCC" = "yes"
13283 then
13284   cat >conftest.$ac_ext <<_ACEOF
13285 #if !defined(__GNUC__) || __GNUC__ < 3
13286 #error Unsupported GCC version
13287 #endif
13288
13289 _ACEOF
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_compile") 2>conftest.er1
13298   ac_status=$?
13299   grep -v '^ *+' conftest.er1 >conftest.err
13300   rm -f conftest.er1
13301   cat conftest.err >&5
13302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } &&
13304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310   (eval "$ac_try") 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; } &&
13314          { ac_try='test -s conftest.$ac_objext'
13315   { (case "(($ac_try" in
13316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317   *) ac_try_echo=$ac_try;;
13318 esac
13319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320   (eval "$ac_try") 2>&5
13321   ac_status=$?
13322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323   (exit $ac_status); }; }; then
13324   :
13325 else
13326   echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13328
13329         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13330 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13331    { (exit 1); exit 1; }; }
13332 fi
13333
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 fi
13336
13337 if test -z "$llvm_cv_gnu_make_command"
13338 then
13339   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13340 echo "$as_me: error: GNU Make required but not found" >&2;}
13341    { (exit 1); exit 1; }; }
13342 fi
13343
13344 { echo "$as_me:$LINENO: result: ok" >&5
13345 echo "${ECHO_T}ok" >&6; }
13346
13347 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13348 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13349 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13350
13351 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13352
13353 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13354 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13355
13356
13357
13358 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13359 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13360 if test "${ac_cv_lib_m_sin+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   ac_check_lib_save_LIBS=$LIBS
13364 LIBS="-lm  $LIBS"
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373    Use char because int might match the return type of a GCC
13374    builtin and then its argument prototype would still apply.  */
13375 #ifdef __cplusplus
13376 extern "C"
13377 #endif
13378 char sin ();
13379 int
13380 main ()
13381 {
13382 return sin ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (ac_try="$ac_link"
13389 case "(($ac_try" in
13390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391   *) ac_try_echo=$ac_try;;
13392 esac
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394   (eval "$ac_link") 2>conftest.er1
13395   ac_status=$?
13396   grep -v '^ *+' conftest.er1 >conftest.err
13397   rm -f conftest.er1
13398   cat conftest.err >&5
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); } &&
13401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13402   { (case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_try") 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; } &&
13411          { ac_try='test -s conftest$ac_exeext'
13412   { (case "(($ac_try" in
13413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414   *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417   (eval "$ac_try") 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); }; }; then
13421   ac_cv_lib_m_sin=yes
13422 else
13423   echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13425
13426         ac_cv_lib_m_sin=no
13427 fi
13428
13429 rm -f core conftest.err conftest.$ac_objext \
13430       conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13432 fi
13433 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13434 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13435 if test $ac_cv_lib_m_sin = yes; then
13436   cat >>confdefs.h <<_ACEOF
13437 #define HAVE_LIBM 1
13438 _ACEOF
13439
13440   LIBS="-lm $LIBS"
13441
13442 fi
13443
13444 if test "$llvm_cv_os_type" = "MingW" ; then
13445
13446 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13447 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13448 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13449   echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451   ac_check_lib_save_LIBS=$LIBS
13452 LIBS="-limagehlp  $LIBS"
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h.  */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h.  */
13459
13460
13461 int
13462 main ()
13463 {
13464 return main ();
13465   ;
13466   return 0;
13467 }
13468 _ACEOF
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_link") 2>conftest.er1
13477   ac_status=$?
13478   grep -v '^ *+' conftest.er1 >conftest.err
13479   rm -f conftest.er1
13480   cat conftest.err >&5
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13484   { (case "(($ac_try" in
13485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486   *) ac_try_echo=$ac_try;;
13487 esac
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489   (eval "$ac_try") 2>&5
13490   ac_status=$?
13491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492   (exit $ac_status); }; } &&
13493          { ac_try='test -s conftest$ac_exeext'
13494   { (case "(($ac_try" in
13495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496   *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499   (eval "$ac_try") 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_lib_imagehlp_main=yes
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         ac_cv_lib_imagehlp_main=no
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext \
13512       conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13514 fi
13515 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13516 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13517 if test $ac_cv_lib_imagehlp_main = yes; then
13518   cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LIBIMAGEHLP 1
13520 _ACEOF
13521
13522   LIBS="-limagehlp $LIBS"
13523
13524 fi
13525
13526
13527 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13528 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13529 if test "${ac_cv_lib_psapi_main+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-lpsapi  $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540
13541
13542 int
13543 main ()
13544 {
13545 return main ();
13546   ;
13547   return 0;
13548 }
13549 _ACEOF
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (ac_try="$ac_link"
13552 case "(($ac_try" in
13553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554   *) ac_try_echo=$ac_try;;
13555 esac
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557   (eval "$ac_link") 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13565   { (case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_try") 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; } &&
13574          { ac_try='test -s conftest$ac_exeext'
13575   { (case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_try") 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_lib_psapi_main=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589         ac_cv_lib_psapi_main=no
13590 fi
13591
13592 rm -f core conftest.err conftest.$ac_objext \
13593       conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13595 fi
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13597 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13598 if test $ac_cv_lib_psapi_main = yes; then
13599   cat >>confdefs.h <<_ACEOF
13600 #define HAVE_LIBPSAPI 1
13601 _ACEOF
13602
13603   LIBS="-lpsapi $LIBS"
13604
13605 fi
13606
13607 fi
13608
13609 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13610 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13611 if test "${ac_cv_search_dlopen+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   ac_func_search_save_LIBS=$LIBS
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h.  */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h.  */
13621
13622 /* Override any GCC internal prototype to avoid an error.
13623    Use char because int might match the return type of a GCC
13624    builtin and then its argument prototype would still apply.  */
13625 #ifdef __cplusplus
13626 extern "C"
13627 #endif
13628 char dlopen ();
13629 int
13630 main ()
13631 {
13632 return dlopen ();
13633   ;
13634   return 0;
13635 }
13636 _ACEOF
13637 for ac_lib in '' dl; do
13638   if test -z "$ac_lib"; then
13639     ac_res="none required"
13640   else
13641     ac_res=-l$ac_lib
13642     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13643   fi
13644   rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (ac_try="$ac_link"
13646 case "(($ac_try" in
13647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13648   *) ac_try_echo=$ac_try;;
13649 esac
13650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13651   (eval "$ac_link") 2>conftest.er1
13652   ac_status=$?
13653   grep -v '^ *+' conftest.er1 >conftest.err
13654   rm -f conftest.er1
13655   cat conftest.err >&5
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); } &&
13658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13659   { (case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664   (eval "$ac_try") 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; } &&
13668          { ac_try='test -s conftest$ac_exeext'
13669   { (case "(($ac_try" in
13670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671   *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674   (eval "$ac_try") 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; }; then
13678   ac_cv_search_dlopen=$ac_res
13679 else
13680   echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683
13684 fi
13685
13686 rm -f core conftest.err conftest.$ac_objext \
13687       conftest$ac_exeext
13688   if test "${ac_cv_search_dlopen+set}" = set; then
13689   break
13690 fi
13691 done
13692 if test "${ac_cv_search_dlopen+set}" = set; then
13693   :
13694 else
13695   ac_cv_search_dlopen=no
13696 fi
13697 rm conftest.$ac_ext
13698 LIBS=$ac_func_search_save_LIBS
13699 fi
13700 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13701 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13702 ac_res=$ac_cv_search_dlopen
13703 if test "$ac_res" != no; then
13704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13705
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_DLOPEN 1
13708 _ACEOF
13709
13710 else
13711   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13712 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13713 fi
13714
13715
13716 if test "$llvm_cv_enable_libffi" = "yes" ; then
13717   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13718 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13719 if test "${ac_cv_search_ffi_call+set}" = set; then
13720   echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722   ac_func_search_save_LIBS=$LIBS
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h.  */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h.  */
13729
13730 /* Override any GCC internal prototype to avoid an error.
13731    Use char because int might match the return type of a GCC
13732    builtin and then its argument prototype would still apply.  */
13733 #ifdef __cplusplus
13734 extern "C"
13735 #endif
13736 char ffi_call ();
13737 int
13738 main ()
13739 {
13740 return ffi_call ();
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 for ac_lib in '' ffi; do
13746   if test -z "$ac_lib"; then
13747     ac_res="none required"
13748   else
13749     ac_res=-l$ac_lib
13750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13751   fi
13752   rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_link") 2>conftest.er1
13760   ac_status=$?
13761   grep -v '^ *+' conftest.er1 >conftest.err
13762   rm -f conftest.er1
13763   cat conftest.err >&5
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); } &&
13766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13767   { (case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_try") 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; } &&
13776          { ac_try='test -s conftest$ac_exeext'
13777   { (case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_try") 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; }; then
13786   ac_cv_search_ffi_call=$ac_res
13787 else
13788   echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791
13792 fi
13793
13794 rm -f core conftest.err conftest.$ac_objext \
13795       conftest$ac_exeext
13796   if test "${ac_cv_search_ffi_call+set}" = set; then
13797   break
13798 fi
13799 done
13800 if test "${ac_cv_search_ffi_call+set}" = set; then
13801   :
13802 else
13803   ac_cv_search_ffi_call=no
13804 fi
13805 rm conftest.$ac_ext
13806 LIBS=$ac_func_search_save_LIBS
13807 fi
13808 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13809 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13810 ac_res=$ac_cv_search_ffi_call
13811 if test "$ac_res" != no; then
13812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13813
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_FFI_CALL 1
13816 _ACEOF
13817
13818 else
13819   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13820 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13821    { (exit 1); exit 1; }; }
13822 fi
13823
13824 fi
13825
13826 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13827 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13828 if test "${ac_cv_search_mallinfo+set}" = set; then
13829   echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831   ac_func_search_save_LIBS=$LIBS
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h.  */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h.  */
13838
13839 /* Override any GCC internal prototype to avoid an error.
13840    Use char because int might match the return type of a GCC
13841    builtin and then its argument prototype would still apply.  */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 char mallinfo ();
13846 int
13847 main ()
13848 {
13849 return mallinfo ();
13850   ;
13851   return 0;
13852 }
13853 _ACEOF
13854 for ac_lib in '' malloc; do
13855   if test -z "$ac_lib"; then
13856     ac_res="none required"
13857   else
13858     ac_res=-l$ac_lib
13859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13860   fi
13861   rm -f conftest.$ac_objext conftest$ac_exeext
13862 if { (ac_try="$ac_link"
13863 case "(($ac_try" in
13864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865   *) ac_try_echo=$ac_try;;
13866 esac
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868   (eval "$ac_link") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13876   { (case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_try") 2>&5
13882   ac_status=$?
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; } &&
13885          { ac_try='test -s conftest$ac_exeext'
13886   { (case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_try") 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; }; then
13895   ac_cv_search_mallinfo=$ac_res
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900
13901 fi
13902
13903 rm -f core conftest.err conftest.$ac_objext \
13904       conftest$ac_exeext
13905   if test "${ac_cv_search_mallinfo+set}" = set; then
13906   break
13907 fi
13908 done
13909 if test "${ac_cv_search_mallinfo+set}" = set; then
13910   :
13911 else
13912   ac_cv_search_mallinfo=no
13913 fi
13914 rm conftest.$ac_ext
13915 LIBS=$ac_func_search_save_LIBS
13916 fi
13917 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13918 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13919 ac_res=$ac_cv_search_mallinfo
13920 if test "$ac_res" != no; then
13921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13922
13923 cat >>confdefs.h <<\_ACEOF
13924 #define HAVE_MALLINFO 1
13925 _ACEOF
13926
13927 fi
13928
13929
13930 if test "$ENABLE_THREADS" -eq 1 ; then
13931
13932 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13933 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13934 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lpthread  $LIBS"
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945
13946 /* Override any GCC internal prototype to avoid an error.
13947    Use char because int might match the return type of a GCC
13948    builtin and then its argument prototype would still apply.  */
13949 #ifdef __cplusplus
13950 extern "C"
13951 #endif
13952 char pthread_mutex_init ();
13953 int
13954 main ()
13955 {
13956 return pthread_mutex_init ();
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (ac_try="$ac_link"
13963 case "(($ac_try" in
13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965   *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968   (eval "$ac_link") 2>conftest.er1
13969   ac_status=$?
13970   grep -v '^ *+' conftest.er1 >conftest.err
13971   rm -f conftest.er1
13972   cat conftest.err >&5
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); } &&
13975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13976   { (case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981   (eval "$ac_try") 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; } &&
13985          { ac_try='test -s conftest$ac_exeext'
13986   { (case "(($ac_try" in
13987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988   *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991   (eval "$ac_try") 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_cv_lib_pthread_pthread_mutex_init=yes
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000         ac_cv_lib_pthread_pthread_mutex_init=no
14001 fi
14002
14003 rm -f core conftest.err conftest.$ac_objext \
14004       conftest$ac_exeext conftest.$ac_ext
14005 LIBS=$ac_check_lib_save_LIBS
14006 fi
14007 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14008 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14009 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14010   cat >>confdefs.h <<_ACEOF
14011 #define HAVE_LIBPTHREAD 1
14012 _ACEOF
14013
14014   LIBS="-lpthread $LIBS"
14015
14016 fi
14017
14018   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14019 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14020 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   ac_func_search_save_LIBS=$LIBS
14024 cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030
14031 /* Override any GCC internal prototype to avoid an error.
14032    Use char because int might match the return type of a GCC
14033    builtin and then its argument prototype would still apply.  */
14034 #ifdef __cplusplus
14035 extern "C"
14036 #endif
14037 char pthread_mutex_lock ();
14038 int
14039 main ()
14040 {
14041 return pthread_mutex_lock ();
14042   ;
14043   return 0;
14044 }
14045 _ACEOF
14046 for ac_lib in '' pthread; do
14047   if test -z "$ac_lib"; then
14048     ac_res="none required"
14049   else
14050     ac_res=-l$ac_lib
14051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14052   fi
14053   rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057   *) ac_try_echo=$ac_try;;
14058 esac
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060   (eval "$ac_link") 2>conftest.er1
14061   ac_status=$?
14062   grep -v '^ *+' conftest.er1 >conftest.err
14063   rm -f conftest.er1
14064   cat conftest.err >&5
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14068   { (case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_try") 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; } &&
14077          { ac_try='test -s conftest$ac_exeext'
14078   { (case "(($ac_try" in
14079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080   *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083   (eval "$ac_try") 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; }; then
14087   ac_cv_search_pthread_mutex_lock=$ac_res
14088 else
14089   echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14091
14092
14093 fi
14094
14095 rm -f core conftest.err conftest.$ac_objext \
14096       conftest$ac_exeext
14097   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14098   break
14099 fi
14100 done
14101 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14102   :
14103 else
14104   ac_cv_search_pthread_mutex_lock=no
14105 fi
14106 rm conftest.$ac_ext
14107 LIBS=$ac_func_search_save_LIBS
14108 fi
14109 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14110 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14111 ac_res=$ac_cv_search_pthread_mutex_lock
14112 if test "$ac_res" != no; then
14113   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_PTHREAD_MUTEX_LOCK 1
14117 _ACEOF
14118
14119 fi
14120
14121   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14122 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14123 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   ac_func_search_save_LIBS=$LIBS
14127 cat >conftest.$ac_ext <<_ACEOF
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133
14134 /* Override any GCC internal prototype to avoid an error.
14135    Use char because int might match the return type of a GCC
14136    builtin and then its argument prototype would still apply.  */
14137 #ifdef __cplusplus
14138 extern "C"
14139 #endif
14140 char pthread_rwlock_init ();
14141 int
14142 main ()
14143 {
14144 return pthread_rwlock_init ();
14145   ;
14146   return 0;
14147 }
14148 _ACEOF
14149 for ac_lib in '' pthread; do
14150   if test -z "$ac_lib"; then
14151     ac_res="none required"
14152   else
14153     ac_res=-l$ac_lib
14154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14155   fi
14156   rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (ac_try="$ac_link"
14158 case "(($ac_try" in
14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160   *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163   (eval "$ac_link") 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171   { (case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_try") 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; } &&
14180          { ac_try='test -s conftest$ac_exeext'
14181   { (case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_try") 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   ac_cv_search_pthread_rwlock_init=$ac_res
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195
14196 fi
14197
14198 rm -f core conftest.err conftest.$ac_objext \
14199       conftest$ac_exeext
14200   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14201   break
14202 fi
14203 done
14204 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14205   :
14206 else
14207   ac_cv_search_pthread_rwlock_init=no
14208 fi
14209 rm conftest.$ac_ext
14210 LIBS=$ac_func_search_save_LIBS
14211 fi
14212 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14213 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14214 ac_res=$ac_cv_search_pthread_rwlock_init
14215 if test "$ac_res" != no; then
14216   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14217
14218 cat >>confdefs.h <<\_ACEOF
14219 #define HAVE_PTHREAD_RWLOCK_INIT 1
14220 _ACEOF
14221
14222 fi
14223
14224   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14225 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14226 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   ac_func_search_save_LIBS=$LIBS
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236
14237 /* Override any GCC internal prototype to avoid an error.
14238    Use char because int might match the return type of a GCC
14239    builtin and then its argument prototype would still apply.  */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char pthread_getspecific ();
14244 int
14245 main ()
14246 {
14247 return pthread_getspecific ();
14248   ;
14249   return 0;
14250 }
14251 _ACEOF
14252 for ac_lib in '' pthread; do
14253   if test -z "$ac_lib"; then
14254     ac_res="none required"
14255   else
14256     ac_res=-l$ac_lib
14257     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14258   fi
14259   rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_link") 2>conftest.er1
14267   ac_status=$?
14268   grep -v '^ *+' conftest.er1 >conftest.err
14269   rm -f conftest.er1
14270   cat conftest.err >&5
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); } &&
14273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274   { (case "(($ac_try" in
14275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276   *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279   (eval "$ac_try") 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest$ac_exeext'
14284   { (case "(($ac_try" in
14285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286   *) ac_try_echo=$ac_try;;
14287 esac
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289   (eval "$ac_try") 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; }; then
14293   ac_cv_search_pthread_getspecific=$ac_res
14294 else
14295   echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298
14299 fi
14300
14301 rm -f core conftest.err conftest.$ac_objext \
14302       conftest$ac_exeext
14303   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14304   break
14305 fi
14306 done
14307 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14308   :
14309 else
14310   ac_cv_search_pthread_getspecific=no
14311 fi
14312 rm conftest.$ac_ext
14313 LIBS=$ac_func_search_save_LIBS
14314 fi
14315 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14316 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14317 ac_res=$ac_cv_search_pthread_getspecific
14318 if test "$ac_res" != no; then
14319   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14320
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_PTHREAD_GETSPECIFIC 1
14323 _ACEOF
14324
14325 fi
14326
14327 fi
14328
14329
14330 # Check whether --with-udis86 was given.
14331 if test "${with_udis86+set}" = set; then
14332   withval=$with_udis86;
14333       USE_UDIS86=1
14334
14335       case "$withval" in
14336         /usr/lib|yes) ;;
14337         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14338       esac
14339
14340 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14341 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14342 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-ludis86  $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353
14354 /* Override any GCC internal prototype to avoid an error.
14355    Use char because int might match the return type of a GCC
14356    builtin and then its argument prototype would still apply.  */
14357 #ifdef __cplusplus
14358 extern "C"
14359 #endif
14360 char ud_init ();
14361 int
14362 main ()
14363 {
14364 return ud_init ();
14365   ;
14366   return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373   *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376   (eval "$ac_link") 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; } &&
14393          { ac_try='test -s conftest$ac_exeext'
14394   { (case "(($ac_try" in
14395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396   *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399   (eval "$ac_try") 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; }; then
14403   ac_cv_lib_udis86_ud_init=yes
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408         ac_cv_lib_udis86_ud_init=no
14409 fi
14410
14411 rm -f core conftest.err conftest.$ac_objext \
14412       conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14414 fi
14415 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14416 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14417 if test $ac_cv_lib_udis86_ud_init = yes; then
14418   cat >>confdefs.h <<_ACEOF
14419 #define HAVE_LIBUDIS86 1
14420 _ACEOF
14421
14422   LIBS="-ludis86 $LIBS"
14423
14424 else
14425
14426         echo "Error! You need to have libudis86 around."
14427         exit -1
14428
14429 fi
14430
14431
14432 else
14433   USE_UDIS86=0
14434
14435 fi
14436
14437
14438 cat >>confdefs.h <<_ACEOF
14439 #define USE_UDIS86 $USE_UDIS86
14440 _ACEOF
14441
14442
14443
14444 # Check whether --with-oprofile was given.
14445 if test "${with_oprofile+set}" = set; then
14446   withval=$with_oprofile;
14447       USE_OPROFILE=1
14448
14449       case "$withval" in
14450         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14451         no) llvm_cv_oppath=
14452             USE_OPROFILE=0
14453  ;;
14454         *) llvm_cv_oppath="${withval}/lib/oprofile"
14455            CPPFLAGS="-I${withval}/include";;
14456       esac
14457       if test -n "$llvm_cv_oppath" ; then
14458         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14459                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14460 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14461 if test "${ac_cv_search_bfd_init+set}" = set; then
14462   echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464   ac_func_search_save_LIBS=$LIBS
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h.  */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h.  */
14471
14472 /* Override any GCC internal prototype to avoid an error.
14473    Use char because int might match the return type of a GCC
14474    builtin and then its argument prototype would still apply.  */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char bfd_init ();
14479 int
14480 main ()
14481 {
14482 return bfd_init ();
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 for ac_lib in '' bfd; do
14488   if test -z "$ac_lib"; then
14489     ac_res="none required"
14490   else
14491     ac_res=-l$ac_lib
14492     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14493   fi
14494   rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498   *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501   (eval "$ac_link") 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } &&
14508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14509   { (case "(($ac_try" in
14510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511   *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514   (eval "$ac_try") 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); }; } &&
14518          { ac_try='test -s conftest$ac_exeext'
14519   { (case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524   (eval "$ac_try") 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   ac_cv_search_bfd_init=$ac_res
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533
14534 fi
14535
14536 rm -f core conftest.err conftest.$ac_objext \
14537       conftest$ac_exeext
14538   if test "${ac_cv_search_bfd_init+set}" = set; then
14539   break
14540 fi
14541 done
14542 if test "${ac_cv_search_bfd_init+set}" = set; then
14543   :
14544 else
14545   ac_cv_search_bfd_init=no
14546 fi
14547 rm conftest.$ac_ext
14548 LIBS=$ac_func_search_save_LIBS
14549 fi
14550 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14551 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14552 ac_res=$ac_cv_search_bfd_init
14553 if test "$ac_res" != no; then
14554   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14555
14556 fi
14557
14558         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14559 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14560 if test "${ac_cv_search_op_open_agent+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   ac_func_search_save_LIBS=$LIBS
14564 cat >conftest.$ac_ext <<_ACEOF
14565 /* confdefs.h.  */
14566 _ACEOF
14567 cat confdefs.h >>conftest.$ac_ext
14568 cat >>conftest.$ac_ext <<_ACEOF
14569 /* end confdefs.h.  */
14570
14571 /* Override any GCC internal prototype to avoid an error.
14572    Use char because int might match the return type of a GCC
14573    builtin and then its argument prototype would still apply.  */
14574 #ifdef __cplusplus
14575 extern "C"
14576 #endif
14577 char op_open_agent ();
14578 int
14579 main ()
14580 {
14581 return op_open_agent ();
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 for ac_lib in '' opagent; do
14587   if test -z "$ac_lib"; then
14588     ac_res="none required"
14589   else
14590     ac_res=-l$ac_lib
14591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14592   fi
14593   rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_link") 2>conftest.er1
14601   ac_status=$?
14602   grep -v '^ *+' conftest.er1 >conftest.err
14603   rm -f conftest.er1
14604   cat conftest.err >&5
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); } &&
14607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608   { (case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_try") 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest$ac_exeext'
14618   { (case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_try") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_cv_search_op_open_agent=$ac_res
14628 else
14629   echo "$as_me: failed program was:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14631
14632
14633 fi
14634
14635 rm -f core conftest.err conftest.$ac_objext \
14636       conftest$ac_exeext
14637   if test "${ac_cv_search_op_open_agent+set}" = set; then
14638   break
14639 fi
14640 done
14641 if test "${ac_cv_search_op_open_agent+set}" = set; then
14642   :
14643 else
14644   ac_cv_search_op_open_agent=no
14645 fi
14646 rm conftest.$ac_ext
14647 LIBS=$ac_func_search_save_LIBS
14648 fi
14649 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14650 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14651 ac_res=$ac_cv_search_op_open_agent
14652 if test "$ac_res" != no; then
14653   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14654
14655 else
14656
14657           echo "Error! You need to have libopagent around."
14658           exit -1
14659
14660 fi
14661
14662         if test "${ac_cv_header_opagent_h+set}" = set; then
14663   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14664 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14665 if test "${ac_cv_header_opagent_h+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 fi
14668 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14670 else
14671   # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14673 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680 $ac_includes_default
14681 #include <opagent.h>
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_compile") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } &&
14697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14698   { (case "(($ac_try" in
14699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700   *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703   (eval "$ac_try") 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; } &&
14707          { ac_try='test -s conftest.$ac_objext'
14708   { (case "(($ac_try" in
14709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710   *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713   (eval "$ac_try") 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; }; then
14717   ac_header_compiler=yes
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722         ac_header_compiler=no
14723 fi
14724
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14727 echo "${ECHO_T}$ac_header_compiler" >&6; }
14728
14729 # Is the header present?
14730 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14731 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14732 cat >conftest.$ac_ext <<_ACEOF
14733 /* confdefs.h.  */
14734 _ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h.  */
14738 #include <opagent.h>
14739 _ACEOF
14740 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14747   ac_status=$?
14748   grep -v '^ *+' conftest.er1 >conftest.err
14749   rm -f conftest.er1
14750   cat conftest.err >&5
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); } >/dev/null; then
14753   if test -s conftest.err; then
14754     ac_cpp_err=$ac_c_preproc_warn_flag
14755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14756   else
14757     ac_cpp_err=
14758   fi
14759 else
14760   ac_cpp_err=yes
14761 fi
14762 if test -z "$ac_cpp_err"; then
14763   ac_header_preproc=yes
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768   ac_header_preproc=no
14769 fi
14770
14771 rm -f conftest.err conftest.$ac_ext
14772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14773 echo "${ECHO_T}$ac_header_preproc" >&6; }
14774
14775 # So?  What about this header?
14776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14777   yes:no: )
14778     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14779 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14780     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14781 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14782     ac_header_preproc=yes
14783     ;;
14784   no:yes:* )
14785     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14786 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14787     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14788 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14789     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14790 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14791     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14792 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14794 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14796 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14797     ( cat <<\_ASBOX
14798 ## ----------------------------------- ##
14799 ## Report this to llvmbugs@cs.uiuc.edu ##
14800 ## ----------------------------------- ##
14801 _ASBOX
14802      ) | sed "s/^/$as_me: WARNING:     /" >&2
14803     ;;
14804 esac
14805 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14806 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14807 if test "${ac_cv_header_opagent_h+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   ac_cv_header_opagent_h=$ac_header_preproc
14811 fi
14812 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14813 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14814
14815 fi
14816 if test $ac_cv_header_opagent_h = yes; then
14817   :
14818 else
14819
14820           echo "Error! You need to have opagent.h around."
14821           exit -1
14822
14823 fi
14824
14825
14826       fi
14827
14828 else
14829
14830       USE_OPROFILE=0
14831
14832
14833 fi
14834
14835
14836 cat >>confdefs.h <<_ACEOF
14837 #define USE_OPROFILE $USE_OPROFILE
14838 _ACEOF
14839
14840
14841
14842
14843
14844
14845
14846
14847 ac_header_dirent=no
14848 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14849   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14850 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14851 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 #include <sys/types.h>
14862 #include <$ac_hdr>
14863
14864 int
14865 main ()
14866 {
14867 if ((DIR *) 0)
14868 return 0;
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (ac_try="$ac_compile"
14875 case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_compile") 2>conftest.er1
14881   ac_status=$?
14882   grep -v '^ *+' conftest.er1 >conftest.err
14883   rm -f conftest.er1
14884   cat conftest.err >&5
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); } &&
14887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14888   { (case "(($ac_try" in
14889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890   *) ac_try_echo=$ac_try;;
14891 esac
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893   (eval "$ac_try") 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (case "(($ac_try" in
14899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900   *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903   (eval "$ac_try") 2>&5
14904   ac_status=$?
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907   eval "$as_ac_Header=yes"
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912         eval "$as_ac_Header=no"
14913 fi
14914
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 fi
14917 ac_res=`eval echo '${'$as_ac_Header'}'`
14918                { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14921   cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14923 _ACEOF
14924
14925 ac_header_dirent=$ac_hdr; break
14926 fi
14927
14928 done
14929 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14930 if test $ac_header_dirent = dirent.h; then
14931   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14932 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14933 if test "${ac_cv_search_opendir+set}" = set; then
14934   echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936   ac_func_search_save_LIBS=$LIBS
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943
14944 /* Override any GCC internal prototype to avoid an error.
14945    Use char because int might match the return type of a GCC
14946    builtin and then its argument prototype would still apply.  */
14947 #ifdef __cplusplus
14948 extern "C"
14949 #endif
14950 char opendir ();
14951 int
14952 main ()
14953 {
14954 return opendir ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 for ac_lib in '' dir; do
14960   if test -z "$ac_lib"; then
14961     ac_res="none required"
14962   else
14963     ac_res=-l$ac_lib
14964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14965   fi
14966   rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_link") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } &&
14980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14981   { (case "(($ac_try" in
14982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983   *) ac_try_echo=$ac_try;;
14984 esac
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986   (eval "$ac_try") 2>&5
14987   ac_status=$?
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); }; } &&
14990          { ac_try='test -s conftest$ac_exeext'
14991   { (case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_try") 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; }; then
15000   ac_cv_search_opendir=$ac_res
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005
15006 fi
15007
15008 rm -f core conftest.err conftest.$ac_objext \
15009       conftest$ac_exeext
15010   if test "${ac_cv_search_opendir+set}" = set; then
15011   break
15012 fi
15013 done
15014 if test "${ac_cv_search_opendir+set}" = set; then
15015   :
15016 else
15017   ac_cv_search_opendir=no
15018 fi
15019 rm conftest.$ac_ext
15020 LIBS=$ac_func_search_save_LIBS
15021 fi
15022 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15023 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15024 ac_res=$ac_cv_search_opendir
15025 if test "$ac_res" != no; then
15026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15027
15028 fi
15029
15030 else
15031   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15032 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15033 if test "${ac_cv_search_opendir+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   ac_func_search_save_LIBS=$LIBS
15037 cat >conftest.$ac_ext <<_ACEOF
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043
15044 /* Override any GCC internal prototype to avoid an error.
15045    Use char because int might match the return type of a GCC
15046    builtin and then its argument prototype would still apply.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 #endif
15050 char opendir ();
15051 int
15052 main ()
15053 {
15054 return opendir ();
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 for ac_lib in '' x; do
15060   if test -z "$ac_lib"; then
15061     ac_res="none required"
15062   else
15063     ac_res=-l$ac_lib
15064     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15065   fi
15066   rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073   (eval "$ac_link") 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081   { (case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_try") 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest$ac_exeext'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_cv_search_opendir=$ac_res
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext \
15109       conftest$ac_exeext
15110   if test "${ac_cv_search_opendir+set}" = set; then
15111   break
15112 fi
15113 done
15114 if test "${ac_cv_search_opendir+set}" = set; then
15115   :
15116 else
15117   ac_cv_search_opendir=no
15118 fi
15119 rm conftest.$ac_ext
15120 LIBS=$ac_func_search_save_LIBS
15121 fi
15122 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15123 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15124 ac_res=$ac_cv_search_opendir
15125 if test "$ac_res" != no; then
15126   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15127
15128 fi
15129
15130 fi
15131
15132 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15133 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15134 if test "${ac_cv_header_mmap_anon+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137    ac_ext=c
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15142
15143   cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149 #include <sys/mman.h>
15150 #include <unistd.h>
15151 #include <fcntl.h>
15152 int
15153 main ()
15154 {
15155 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15156   ;
15157   return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_compile") 2>conftest.er1
15168   ac_status=$?
15169   grep -v '^ *+' conftest.er1 >conftest.err
15170   rm -f conftest.er1
15171   cat conftest.err >&5
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); } &&
15174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175   { (case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_try") 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; } &&
15184          { ac_try='test -s conftest.$ac_objext'
15185   { (case "(($ac_try" in
15186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187   *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190   (eval "$ac_try") 2>&5
15191   ac_status=$?
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); }; }; then
15194   ac_cv_header_mmap_anon=yes
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199         ac_cv_header_mmap_anon=no
15200 fi
15201
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203   ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209
15210 fi
15211 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15212 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15213 if test "$ac_cv_header_mmap_anon" = yes; then
15214
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_MMAP_ANONYMOUS 1
15217 _ACEOF
15218
15219 fi
15220
15221 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15222 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15223 if test "${ac_cv_header_stat_broken+set}" = set; then
15224   echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226   cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h.  */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h.  */
15232 #include <sys/types.h>
15233 #include <sys/stat.h>
15234
15235 #if defined S_ISBLK && defined S_IFDIR
15236 # if S_ISBLK (S_IFDIR)
15237 You lose.
15238 # endif
15239 #endif
15240
15241 #if defined S_ISBLK && defined S_IFCHR
15242 # if S_ISBLK (S_IFCHR)
15243 You lose.
15244 # endif
15245 #endif
15246
15247 #if defined S_ISLNK && defined S_IFREG
15248 # if S_ISLNK (S_IFREG)
15249 You lose.
15250 # endif
15251 #endif
15252
15253 #if defined S_ISSOCK && defined S_IFREG
15254 # if S_ISSOCK (S_IFREG)
15255 You lose.
15256 # endif
15257 #endif
15258
15259 _ACEOF
15260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15261   $EGREP "You lose" >/dev/null 2>&1; then
15262   ac_cv_header_stat_broken=yes
15263 else
15264   ac_cv_header_stat_broken=no
15265 fi
15266 rm -f conftest*
15267
15268 fi
15269 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15270 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15271 if test $ac_cv_header_stat_broken = yes; then
15272
15273 cat >>confdefs.h <<\_ACEOF
15274 #define STAT_MACROS_BROKEN 1
15275 _ACEOF
15276
15277 fi
15278
15279 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15280 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15281 if test "${ac_cv_header_stdc+set}" = set; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 #include <stdlib.h>
15291 #include <stdarg.h>
15292 #include <string.h>
15293 #include <float.h>
15294
15295 int
15296 main ()
15297 {
15298
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 rm -f conftest.$ac_objext
15304 if { (ac_try="$ac_compile"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_compile") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } &&
15317          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15318   { (case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_try") 2>&5
15324   ac_status=$?
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); }; } &&
15327          { ac_try='test -s conftest.$ac_objext'
15328   { (case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_try") 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; }; then
15337   ac_cv_header_stdc=yes
15338 else
15339   echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342         ac_cv_header_stdc=no
15343 fi
15344
15345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15346
15347 if test $ac_cv_header_stdc = yes; then
15348   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15349   cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 #include <string.h>
15356
15357 _ACEOF
15358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359   $EGREP "memchr" >/dev/null 2>&1; then
15360   :
15361 else
15362   ac_cv_header_stdc=no
15363 fi
15364 rm -f conftest*
15365
15366 fi
15367
15368 if test $ac_cv_header_stdc = yes; then
15369   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15370   cat >conftest.$ac_ext <<_ACEOF
15371 /* confdefs.h.  */
15372 _ACEOF
15373 cat confdefs.h >>conftest.$ac_ext
15374 cat >>conftest.$ac_ext <<_ACEOF
15375 /* end confdefs.h.  */
15376 #include <stdlib.h>
15377
15378 _ACEOF
15379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15380   $EGREP "free" >/dev/null 2>&1; then
15381   :
15382 else
15383   ac_cv_header_stdc=no
15384 fi
15385 rm -f conftest*
15386
15387 fi
15388
15389 if test $ac_cv_header_stdc = yes; then
15390   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15391   if test "$cross_compiling" = yes; then
15392   :
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 #include <ctype.h>
15401 #include <stdlib.h>
15402 #if ((' ' & 0x0FF) == 0x020)
15403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15405 #else
15406 # define ISLOWER(c) \
15407                    (('a' <= (c) && (c) <= 'i') \
15408                      || ('j' <= (c) && (c) <= 'r') \
15409                      || ('s' <= (c) && (c) <= 'z'))
15410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15411 #endif
15412
15413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15414 int
15415 main ()
15416 {
15417   int i;
15418   for (i = 0; i < 256; i++)
15419     if (XOR (islower (i), ISLOWER (i))
15420         || toupper (i) != TOUPPER (i))
15421       return 2;
15422   return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_link") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15436   { (case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15441   (eval "$ac_try") 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; }; then
15445   :
15446 else
15447   echo "$as_me: program exited with status $ac_status" >&5
15448 echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ( exit $ac_status )
15452 ac_cv_header_stdc=no
15453 fi
15454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15455 fi
15456
15457
15458 fi
15459 fi
15460 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15461 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15462 if test $ac_cv_header_stdc = yes; then
15463
15464 cat >>confdefs.h <<\_ACEOF
15465 #define STDC_HEADERS 1
15466 _ACEOF
15467
15468 fi
15469
15470 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15471 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475   cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h.  */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h.  */
15481 #include <sys/types.h>
15482 #include <sys/wait.h>
15483 #ifndef WEXITSTATUS
15484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15485 #endif
15486 #ifndef WIFEXITED
15487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15488 #endif
15489
15490 int
15491 main ()
15492 {
15493   int s;
15494   wait (&s);
15495   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15496   ;
15497   return 0;
15498 }
15499 _ACEOF
15500 rm -f conftest.$ac_objext
15501 if { (ac_try="$ac_compile"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_compile") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15515   { (case "(($ac_try" in
15516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517   *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520   (eval "$ac_try") 2>&5
15521   ac_status=$?
15522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523   (exit $ac_status); }; } &&
15524          { ac_try='test -s conftest.$ac_objext'
15525   { (case "(($ac_try" in
15526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527   *) ac_try_echo=$ac_try;;
15528 esac
15529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530   (eval "$ac_try") 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_cv_header_sys_wait_h=yes
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539         ac_cv_header_sys_wait_h=no
15540 fi
15541
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 fi
15544 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15545 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15546 if test $ac_cv_header_sys_wait_h = yes; then
15547
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_SYS_WAIT_H 1
15550 _ACEOF
15551
15552 fi
15553
15554 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15556 if test "${ac_cv_header_time+set}" = set; then
15557   echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559   cat >conftest.$ac_ext <<_ACEOF
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565 #include <sys/types.h>
15566 #include <sys/time.h>
15567 #include <time.h>
15568
15569 int
15570 main ()
15571 {
15572 if ((struct tm *) 0)
15573 return 0;
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (ac_try="$ac_compile"
15580 case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_compile") 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } &&
15592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15593   { (case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598   (eval "$ac_try") 2>&5
15599   ac_status=$?
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); }; } &&
15602          { ac_try='test -s conftest.$ac_objext'
15603   { (case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_try") 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612   ac_cv_header_time=yes
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617         ac_cv_header_time=no
15618 fi
15619
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15623 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15624 if test $ac_cv_header_time = yes; then
15625
15626 cat >>confdefs.h <<\_ACEOF
15627 #define TIME_WITH_SYS_TIME 1
15628 _ACEOF
15629
15630 fi
15631
15632
15633
15634
15635
15636
15637
15638
15639 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15640 do
15641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646   echo $ECHO_N "(cached) $ECHO_C" >&6
15647 fi
15648 ac_res=`eval echo '${'$as_ac_Header'}'`
15649                { echo "$as_me:$LINENO: result: $ac_res" >&5
15650 echo "${ECHO_T}$ac_res" >&6; }
15651 else
15652   # Is the header compilable?
15653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655 cat >conftest.$ac_ext <<_ACEOF
15656 /* confdefs.h.  */
15657 _ACEOF
15658 cat confdefs.h >>conftest.$ac_ext
15659 cat >>conftest.$ac_ext <<_ACEOF
15660 /* end confdefs.h.  */
15661 $ac_includes_default
15662 #include <$ac_header>
15663 _ACEOF
15664 rm -f conftest.$ac_objext
15665 if { (ac_try="$ac_compile"
15666 case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_compile") 2>conftest.er1
15672   ac_status=$?
15673   grep -v '^ *+' conftest.er1 >conftest.err
15674   rm -f conftest.er1
15675   cat conftest.err >&5
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); } &&
15678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679   { (case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_try") 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; } &&
15688          { ac_try='test -s conftest.$ac_objext'
15689   { (case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_try") 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698   ac_header_compiler=yes
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703         ac_header_compiler=no
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6; }
15709
15710 # Is the header present?
15711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719 #include <$ac_header>
15720 _ACEOF
15721 if { (ac_try="$ac_cpp conftest.$ac_ext"
15722 case "(($ac_try" in
15723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724   *) ac_try_echo=$ac_try;;
15725 esac
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } >/dev/null; then
15734   if test -s conftest.err; then
15735     ac_cpp_err=$ac_c_preproc_warn_flag
15736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737   else
15738     ac_cpp_err=
15739   fi
15740 else
15741   ac_cpp_err=yes
15742 fi
15743 if test -z "$ac_cpp_err"; then
15744   ac_header_preproc=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749   ac_header_preproc=no
15750 fi
15751
15752 rm -f conftest.err conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754 echo "${ECHO_T}$ac_header_preproc" >&6; }
15755
15756 # So?  What about this header?
15757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758   yes:no: )
15759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763     ac_header_preproc=yes
15764     ;;
15765   no:yes:* )
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778     ( cat <<\_ASBOX
15779 ## ----------------------------------- ##
15780 ## Report this to llvmbugs@cs.uiuc.edu ##
15781 ## ----------------------------------- ##
15782 _ASBOX
15783      ) | sed "s/^/$as_me: WARNING:     /" >&2
15784     ;;
15785 esac
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   eval "$as_ac_Header=\$ac_header_preproc"
15792 fi
15793 ac_res=`eval echo '${'$as_ac_Header'}'`
15794                { echo "$as_me:$LINENO: result: $ac_res" >&5
15795 echo "${ECHO_T}$ac_res" >&6; }
15796
15797 fi
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799   cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15801 _ACEOF
15802
15803 fi
15804
15805 done
15806
15807
15808
15809
15810
15811
15812
15813 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15814 do
15815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15820   echo $ECHO_N "(cached) $ECHO_C" >&6
15821 fi
15822 ac_res=`eval echo '${'$as_ac_Header'}'`
15823                { echo "$as_me:$LINENO: result: $ac_res" >&5
15824 echo "${ECHO_T}$ac_res" >&6; }
15825 else
15826   # Is the header compilable?
15827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15829 cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835 $ac_includes_default
15836 #include <$ac_header>
15837 _ACEOF
15838 rm -f conftest.$ac_objext
15839 if { (ac_try="$ac_compile"
15840 case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845   (eval "$ac_compile") 2>conftest.er1
15846   ac_status=$?
15847   grep -v '^ *+' conftest.er1 >conftest.err
15848   rm -f conftest.er1
15849   cat conftest.err >&5
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15853   { (case "(($ac_try" in
15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855   *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858   (eval "$ac_try") 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; } &&
15862          { ac_try='test -s conftest.$ac_objext'
15863   { (case "(($ac_try" in
15864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865   *) ac_try_echo=$ac_try;;
15866 esac
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868   (eval "$ac_try") 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; }; then
15872   ac_header_compiler=yes
15873 else
15874   echo "$as_me: failed program was:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15876
15877         ac_header_compiler=no
15878 fi
15879
15880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15882 echo "${ECHO_T}$ac_header_compiler" >&6; }
15883
15884 # Is the header present?
15885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15887 cat >conftest.$ac_ext <<_ACEOF
15888 /* confdefs.h.  */
15889 _ACEOF
15890 cat confdefs.h >>conftest.$ac_ext
15891 cat >>conftest.$ac_ext <<_ACEOF
15892 /* end confdefs.h.  */
15893 #include <$ac_header>
15894 _ACEOF
15895 if { (ac_try="$ac_cpp conftest.$ac_ext"
15896 case "(($ac_try" in
15897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898   *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } >/dev/null; then
15908   if test -s conftest.err; then
15909     ac_cpp_err=$ac_c_preproc_warn_flag
15910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15911   else
15912     ac_cpp_err=
15913   fi
15914 else
15915   ac_cpp_err=yes
15916 fi
15917 if test -z "$ac_cpp_err"; then
15918   ac_header_preproc=yes
15919 else
15920   echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15922
15923   ac_header_preproc=no
15924 fi
15925
15926 rm -f conftest.err conftest.$ac_ext
15927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 echo "${ECHO_T}$ac_header_preproc" >&6; }
15929
15930 # So?  What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932   yes:no: )
15933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15937     ac_header_preproc=yes
15938     ;;
15939   no:yes:* )
15940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15952     ( cat <<\_ASBOX
15953 ## ----------------------------------- ##
15954 ## Report this to llvmbugs@cs.uiuc.edu ##
15955 ## ----------------------------------- ##
15956 _ASBOX
15957      ) | sed "s/^/$as_me: WARNING:     /" >&2
15958     ;;
15959 esac
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   eval "$as_ac_Header=\$ac_header_preproc"
15966 fi
15967 ac_res=`eval echo '${'$as_ac_Header'}'`
15968                { echo "$as_me:$LINENO: result: $ac_res" >&5
15969 echo "${ECHO_T}$ac_res" >&6; }
15970
15971 fi
15972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15973   cat >>confdefs.h <<_ACEOF
15974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15975 _ACEOF
15976
15977 fi
15978
15979 done
15980
15981
15982
15983 for ac_header in utime.h windows.h
15984 do
15985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 fi
15992 ac_res=`eval echo '${'$as_ac_Header'}'`
15993                { echo "$as_me:$LINENO: result: $ac_res" >&5
15994 echo "${ECHO_T}$ac_res" >&6; }
15995 else
15996   # Is the header compilable?
15997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h.  */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h.  */
16005 $ac_includes_default
16006 #include <$ac_header>
16007 _ACEOF
16008 rm -f conftest.$ac_objext
16009 if { (ac_try="$ac_compile"
16010 case "(($ac_try" in
16011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012   *) ac_try_echo=$ac_try;;
16013 esac
16014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16015   (eval "$ac_compile") 2>conftest.er1
16016   ac_status=$?
16017   grep -v '^ *+' conftest.er1 >conftest.err
16018   rm -f conftest.er1
16019   cat conftest.err >&5
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); } &&
16022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16023   { (case "(($ac_try" in
16024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025   *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028   (eval "$ac_try") 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; } &&
16032          { ac_try='test -s conftest.$ac_objext'
16033   { (case "(($ac_try" in
16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035   *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038   (eval "$ac_try") 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; }; then
16042   ac_header_compiler=yes
16043 else
16044   echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16046
16047         ac_header_compiler=no
16048 fi
16049
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16053
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h.  */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h.  */
16063 #include <$ac_header>
16064 _ACEOF
16065 if { (ac_try="$ac_cpp conftest.$ac_ext"
16066 case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16072   ac_status=$?
16073   grep -v '^ *+' conftest.er1 >conftest.err
16074   rm -f conftest.er1
16075   cat conftest.err >&5
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } >/dev/null; then
16078   if test -s conftest.err; then
16079     ac_cpp_err=$ac_c_preproc_warn_flag
16080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16081   else
16082     ac_cpp_err=
16083   fi
16084 else
16085   ac_cpp_err=yes
16086 fi
16087 if test -z "$ac_cpp_err"; then
16088   ac_header_preproc=yes
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093   ac_header_preproc=no
16094 fi
16095
16096 rm -f conftest.err conftest.$ac_ext
16097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 echo "${ECHO_T}$ac_header_preproc" >&6; }
16099
16100 # So?  What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102   yes:no: )
16103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16107     ac_header_preproc=yes
16108     ;;
16109   no:yes:* )
16110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16122     ( cat <<\_ASBOX
16123 ## ----------------------------------- ##
16124 ## Report this to llvmbugs@cs.uiuc.edu ##
16125 ## ----------------------------------- ##
16126 _ASBOX
16127      ) | sed "s/^/$as_me: WARNING:     /" >&2
16128     ;;
16129 esac
16130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133   echo $ECHO_N "(cached) $ECHO_C" >&6
16134 else
16135   eval "$as_ac_Header=\$ac_header_preproc"
16136 fi
16137 ac_res=`eval echo '${'$as_ac_Header'}'`
16138                { echo "$as_me:$LINENO: result: $ac_res" >&5
16139 echo "${ECHO_T}$ac_res" >&6; }
16140
16141 fi
16142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16143   cat >>confdefs.h <<_ACEOF
16144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145 _ACEOF
16146
16147 fi
16148
16149 done
16150
16151
16152
16153
16154
16155 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16156 do
16157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 fi
16164 ac_res=`eval echo '${'$as_ac_Header'}'`
16165                { echo "$as_me:$LINENO: result: $ac_res" >&5
16166 echo "${ECHO_T}$ac_res" >&6; }
16167 else
16168   # Is the header compilable?
16169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16171 cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 $ac_includes_default
16178 #include <$ac_header>
16179 _ACEOF
16180 rm -f conftest.$ac_objext
16181 if { (ac_try="$ac_compile"
16182 case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187   (eval "$ac_compile") 2>conftest.er1
16188   ac_status=$?
16189   grep -v '^ *+' conftest.er1 >conftest.err
16190   rm -f conftest.er1
16191   cat conftest.err >&5
16192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193   (exit $ac_status); } &&
16194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16195   { (case "(($ac_try" in
16196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197   *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200   (eval "$ac_try") 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; } &&
16204          { ac_try='test -s conftest.$ac_objext'
16205   { (case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210   (eval "$ac_try") 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; }; then
16214   ac_header_compiler=yes
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219         ac_header_compiler=no
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16224 echo "${ECHO_T}$ac_header_compiler" >&6; }
16225
16226 # Is the header present?
16227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h.  */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h.  */
16235 #include <$ac_header>
16236 _ACEOF
16237 if { (ac_try="$ac_cpp conftest.$ac_ext"
16238 case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
16247   cat conftest.err >&5
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } >/dev/null; then
16250   if test -s conftest.err; then
16251     ac_cpp_err=$ac_c_preproc_warn_flag
16252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16253   else
16254     ac_cpp_err=
16255   fi
16256 else
16257   ac_cpp_err=yes
16258 fi
16259 if test -z "$ac_cpp_err"; then
16260   ac_header_preproc=yes
16261 else
16262   echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265   ac_header_preproc=no
16266 fi
16267
16268 rm -f conftest.err conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270 echo "${ECHO_T}$ac_header_preproc" >&6; }
16271
16272 # So?  What about this header?
16273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274   yes:no: )
16275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16279     ac_header_preproc=yes
16280     ;;
16281   no:yes:* )
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16294     ( cat <<\_ASBOX
16295 ## ----------------------------------- ##
16296 ## Report this to llvmbugs@cs.uiuc.edu ##
16297 ## ----------------------------------- ##
16298 _ASBOX
16299      ) | sed "s/^/$as_me: WARNING:     /" >&2
16300     ;;
16301 esac
16302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16305   echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307   eval "$as_ac_Header=\$ac_header_preproc"
16308 fi
16309 ac_res=`eval echo '${'$as_ac_Header'}'`
16310                { echo "$as_me:$LINENO: result: $ac_res" >&5
16311 echo "${ECHO_T}$ac_res" >&6; }
16312
16313 fi
16314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16315   cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16317 _ACEOF
16318
16319 fi
16320
16321 done
16322
16323
16324
16325
16326
16327 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16328 do
16329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 fi
16336 ac_res=`eval echo '${'$as_ac_Header'}'`
16337                { echo "$as_me:$LINENO: result: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339 else
16340   # Is the header compilable?
16341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16343 cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 $ac_includes_default
16350 #include <$ac_header>
16351 _ACEOF
16352 rm -f conftest.$ac_objext
16353 if { (ac_try="$ac_compile"
16354 case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_compile") 2>conftest.er1
16360   ac_status=$?
16361   grep -v '^ *+' conftest.er1 >conftest.err
16362   rm -f conftest.er1
16363   cat conftest.err >&5
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); } &&
16366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16367   { (case "(($ac_try" in
16368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369   *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372   (eval "$ac_try") 2>&5
16373   ac_status=$?
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); }; } &&
16376          { ac_try='test -s conftest.$ac_objext'
16377   { (case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_try") 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; }; then
16386   ac_header_compiler=yes
16387 else
16388   echo "$as_me: failed program was:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16390
16391         ac_header_compiler=no
16392 fi
16393
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16397
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 #include <$ac_header>
16408 _ACEOF
16409 if { (ac_try="$ac_cpp conftest.$ac_ext"
16410 case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } >/dev/null; then
16422   if test -s conftest.err; then
16423     ac_cpp_err=$ac_c_preproc_warn_flag
16424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16425   else
16426     ac_cpp_err=
16427   fi
16428 else
16429   ac_cpp_err=yes
16430 fi
16431 if test -z "$ac_cpp_err"; then
16432   ac_header_preproc=yes
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437   ac_header_preproc=no
16438 fi
16439
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443
16444 # So?  What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446   yes:no: )
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451     ac_header_preproc=yes
16452     ;;
16453   no:yes:* )
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466     ( cat <<\_ASBOX
16467 ## ----------------------------------- ##
16468 ## Report this to llvmbugs@cs.uiuc.edu ##
16469 ## ----------------------------------- ##
16470 _ASBOX
16471      ) | sed "s/^/$as_me: WARNING:     /" >&2
16472     ;;
16473 esac
16474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479   eval "$as_ac_Header=\$ac_header_preproc"
16480 fi
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482                { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484
16485 fi
16486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16487   cat >>confdefs.h <<_ACEOF
16488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489 _ACEOF
16490
16491 fi
16492
16493 done
16494
16495
16496 for ac_header in valgrind/valgrind.h
16497 do
16498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16500   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 fi
16505 ac_res=`eval echo '${'$as_ac_Header'}'`
16506                { echo "$as_me:$LINENO: result: $ac_res" >&5
16507 echo "${ECHO_T}$ac_res" >&6; }
16508 else
16509   # Is the header compilable?
16510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h.  */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519 #include <$ac_header>
16520 _ACEOF
16521 rm -f conftest.$ac_objext
16522 if { (ac_try="$ac_compile"
16523 case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_compile") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } &&
16535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16536   { (case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541   (eval "$ac_try") 2>&5
16542   ac_status=$?
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); }; } &&
16545          { ac_try='test -s conftest.$ac_objext'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; }; then
16555   ac_header_compiler=yes
16556 else
16557   echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560         ac_header_compiler=no
16561 fi
16562
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16565 echo "${ECHO_T}$ac_header_compiler" >&6; }
16566
16567 # Is the header present?
16568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h.  */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h.  */
16576 #include <$ac_header>
16577 _ACEOF
16578 if { (ac_try="$ac_cpp conftest.$ac_ext"
16579 case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16585   ac_status=$?
16586   grep -v '^ *+' conftest.er1 >conftest.err
16587   rm -f conftest.er1
16588   cat conftest.err >&5
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } >/dev/null; then
16591   if test -s conftest.err; then
16592     ac_cpp_err=$ac_c_preproc_warn_flag
16593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16594   else
16595     ac_cpp_err=
16596   fi
16597 else
16598   ac_cpp_err=yes
16599 fi
16600 if test -z "$ac_cpp_err"; then
16601   ac_header_preproc=yes
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16605
16606   ac_header_preproc=no
16607 fi
16608
16609 rm -f conftest.err conftest.$ac_ext
16610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16611 echo "${ECHO_T}$ac_header_preproc" >&6; }
16612
16613 # So?  What about this header?
16614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16615   yes:no: )
16616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16620     ac_header_preproc=yes
16621     ;;
16622   no:yes:* )
16623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16635     ( cat <<\_ASBOX
16636 ## ----------------------------------- ##
16637 ## Report this to llvmbugs@cs.uiuc.edu ##
16638 ## ----------------------------------- ##
16639 _ASBOX
16640      ) | sed "s/^/$as_me: WARNING:     /" >&2
16641     ;;
16642 esac
16643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   eval "$as_ac_Header=\$ac_header_preproc"
16649 fi
16650 ac_res=`eval echo '${'$as_ac_Header'}'`
16651                { echo "$as_me:$LINENO: result: $ac_res" >&5
16652 echo "${ECHO_T}$ac_res" >&6; }
16653
16654 fi
16655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16656   cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16658 _ACEOF
16659
16660 fi
16661
16662 done
16663
16664
16665 for ac_header in fenv.h
16666 do
16667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 fi
16674 ac_res=`eval echo '${'$as_ac_Header'}'`
16675                { echo "$as_me:$LINENO: result: $ac_res" >&5
16676 echo "${ECHO_T}$ac_res" >&6; }
16677 else
16678   # Is the header compilable?
16679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 $ac_includes_default
16688 #include <$ac_header>
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694   *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } &&
16704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_try") 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ac_header_compiler=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_header_compiler=no
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16734 echo "${ECHO_T}$ac_header_compiler" >&6; }
16735
16736 # Is the header present?
16737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16739 cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 #include <$ac_header>
16746 _ACEOF
16747 if { (ac_try="$ac_cpp conftest.$ac_ext"
16748 case "(($ac_try" in
16749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750   *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } >/dev/null; then
16760   if test -s conftest.err; then
16761     ac_cpp_err=$ac_c_preproc_warn_flag
16762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16763   else
16764     ac_cpp_err=
16765   fi
16766 else
16767   ac_cpp_err=yes
16768 fi
16769 if test -z "$ac_cpp_err"; then
16770   ac_header_preproc=yes
16771 else
16772   echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775   ac_header_preproc=no
16776 fi
16777
16778 rm -f conftest.err conftest.$ac_ext
16779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16780 echo "${ECHO_T}$ac_header_preproc" >&6; }
16781
16782 # So?  What about this header?
16783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16784   yes:no: )
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16789     ac_header_preproc=yes
16790     ;;
16791   no:yes:* )
16792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16804     ( cat <<\_ASBOX
16805 ## ----------------------------------- ##
16806 ## Report this to llvmbugs@cs.uiuc.edu ##
16807 ## ----------------------------------- ##
16808 _ASBOX
16809      ) | sed "s/^/$as_me: WARNING:     /" >&2
16810     ;;
16811 esac
16812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16815   echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817   eval "$as_ac_Header=\$ac_header_preproc"
16818 fi
16819 ac_res=`eval echo '${'$as_ac_Header'}'`
16820                { echo "$as_me:$LINENO: result: $ac_res" >&5
16821 echo "${ECHO_T}$ac_res" >&6; }
16822
16823 fi
16824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16825   cat >>confdefs.h <<_ACEOF
16826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16827 _ACEOF
16828
16829 fi
16830
16831 done
16832
16833 if test "$ENABLE_THREADS" -eq 1 ; then
16834
16835 for ac_header in pthread.h
16836 do
16837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16842   echo $ECHO_N "(cached) $ECHO_C" >&6
16843 fi
16844 ac_res=`eval echo '${'$as_ac_Header'}'`
16845                { echo "$as_me:$LINENO: result: $ac_res" >&5
16846 echo "${ECHO_T}$ac_res" >&6; }
16847 else
16848   # Is the header compilable?
16849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h.  */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h.  */
16857 $ac_includes_default
16858 #include <$ac_header>
16859 _ACEOF
16860 rm -f conftest.$ac_objext
16861 if { (ac_try="$ac_compile"
16862 case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_compile") 2>conftest.er1
16868   ac_status=$?
16869   grep -v '^ *+' conftest.er1 >conftest.err
16870   rm -f conftest.er1
16871   cat conftest.err >&5
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875   { (case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880   (eval "$ac_try") 2>&5
16881   ac_status=$?
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); }; } &&
16884          { ac_try='test -s conftest.$ac_objext'
16885   { (case "(($ac_try" in
16886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887   *) ac_try_echo=$ac_try;;
16888 esac
16889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890   (eval "$ac_try") 2>&5
16891   ac_status=$?
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); }; }; then
16894   ac_header_compiler=yes
16895 else
16896   echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899         ac_header_compiler=no
16900 fi
16901
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904 echo "${ECHO_T}$ac_header_compiler" >&6; }
16905
16906 # Is the header present?
16907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915 #include <$ac_header>
16916 _ACEOF
16917 if { (ac_try="$ac_cpp conftest.$ac_ext"
16918 case "(($ac_try" in
16919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920   *) ac_try_echo=$ac_try;;
16921 esac
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } >/dev/null; then
16930   if test -s conftest.err; then
16931     ac_cpp_err=$ac_c_preproc_warn_flag
16932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16933   else
16934     ac_cpp_err=
16935   fi
16936 else
16937   ac_cpp_err=yes
16938 fi
16939 if test -z "$ac_cpp_err"; then
16940   ac_header_preproc=yes
16941 else
16942   echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945   ac_header_preproc=no
16946 fi
16947
16948 rm -f conftest.err conftest.$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16950 echo "${ECHO_T}$ac_header_preproc" >&6; }
16951
16952 # So?  What about this header?
16953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16954   yes:no: )
16955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16959     ac_header_preproc=yes
16960     ;;
16961   no:yes:* )
16962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16974     ( cat <<\_ASBOX
16975 ## ----------------------------------- ##
16976 ## Report this to llvmbugs@cs.uiuc.edu ##
16977 ## ----------------------------------- ##
16978 _ASBOX
16979      ) | sed "s/^/$as_me: WARNING:     /" >&2
16980     ;;
16981 esac
16982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16985   echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987   eval "$as_ac_Header=\$ac_header_preproc"
16988 fi
16989 ac_res=`eval echo '${'$as_ac_Header'}'`
16990                { echo "$as_me:$LINENO: result: $ac_res" >&5
16991 echo "${ECHO_T}$ac_res" >&6; }
16992
16993 fi
16994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16995   cat >>confdefs.h <<_ACEOF
16996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16997 _ACEOF
16998  HAVE_PTHREAD=1
16999
17000 else
17001   HAVE_PTHREAD=0
17002
17003 fi
17004
17005 done
17006
17007 else
17008   HAVE_PTHREAD=0
17009
17010 fi
17011
17012 if test "$llvm_cv_enable_libffi" = "yes" ; then
17013
17014
17015 for ac_header in ffi.h ffi/ffi.h
17016 do
17017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 fi
17024 ac_res=`eval echo '${'$as_ac_Header'}'`
17025                { echo "$as_me:$LINENO: result: $ac_res" >&5
17026 echo "${ECHO_T}$ac_res" >&6; }
17027 else
17028   # Is the header compilable?
17029 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037 $ac_includes_default
17038 #include <$ac_header>
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047   (eval "$ac_compile") 2>conftest.er1
17048   ac_status=$?
17049   grep -v '^ *+' conftest.er1 >conftest.err
17050   rm -f conftest.er1
17051   cat conftest.err >&5
17052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053   (exit $ac_status); } &&
17054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055   { (case "(($ac_try" in
17056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057   *) ac_try_echo=$ac_try;;
17058 esac
17059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060   (eval "$ac_try") 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; } &&
17064          { ac_try='test -s conftest.$ac_objext'
17065   { (case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_try") 2>&5
17071   ac_status=$?
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); }; }; then
17074   ac_header_compiler=yes
17075 else
17076   echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079         ac_header_compiler=no
17080 fi
17081
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084 echo "${ECHO_T}$ac_header_compiler" >&6; }
17085
17086 # Is the header present?
17087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17089 cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h.  */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h.  */
17095 #include <$ac_header>
17096 _ACEOF
17097 if { (ac_try="$ac_cpp conftest.$ac_ext"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } >/dev/null; then
17110   if test -s conftest.err; then
17111     ac_cpp_err=$ac_c_preproc_warn_flag
17112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17113   else
17114     ac_cpp_err=
17115   fi
17116 else
17117   ac_cpp_err=yes
17118 fi
17119 if test -z "$ac_cpp_err"; then
17120   ac_header_preproc=yes
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125   ac_header_preproc=no
17126 fi
17127
17128 rm -f conftest.err conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17130 echo "${ECHO_T}$ac_header_preproc" >&6; }
17131
17132 # So?  What about this header?
17133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17134   yes:no: )
17135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17139     ac_header_preproc=yes
17140     ;;
17141   no:yes:* )
17142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17154     ( cat <<\_ASBOX
17155 ## ----------------------------------- ##
17156 ## Report this to llvmbugs@cs.uiuc.edu ##
17157 ## ----------------------------------- ##
17158 _ASBOX
17159      ) | sed "s/^/$as_me: WARNING:     /" >&2
17160     ;;
17161 esac
17162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   eval "$as_ac_Header=\$ac_header_preproc"
17168 fi
17169 ac_res=`eval echo '${'$as_ac_Header'}'`
17170                { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172
17173 fi
17174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17175   cat >>confdefs.h <<_ACEOF
17176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17177 _ACEOF
17178
17179 fi
17180
17181 done
17182
17183 fi
17184
17185
17186 for ac_header in CrashReporterClient.h
17187 do
17188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17190   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 fi
17195 ac_res=`eval echo '${'$as_ac_Header'}'`
17196                { echo "$as_me:$LINENO: result: $ac_res" >&5
17197 echo "${ECHO_T}$ac_res" >&6; }
17198 else
17199   # Is the header compilable?
17200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208 $ac_includes_default
17209 #include <$ac_header>
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (ac_try="$ac_compile"
17213 case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_compile") 2>conftest.er1
17219   ac_status=$?
17220   grep -v '^ *+' conftest.er1 >conftest.err
17221   rm -f conftest.er1
17222   cat conftest.err >&5
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } &&
17225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest.$ac_objext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ac_header_compiler=yes
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250         ac_header_compiler=no
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17255 echo "${ECHO_T}$ac_header_compiler" >&6; }
17256
17257 # Is the header present?
17258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 #include <$ac_header>
17267 _ACEOF
17268 if { (ac_try="$ac_cpp conftest.$ac_ext"
17269 case "(($ac_try" in
17270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271   *) ac_try_echo=$ac_try;;
17272 esac
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17275   ac_status=$?
17276   grep -v '^ *+' conftest.er1 >conftest.err
17277   rm -f conftest.er1
17278   cat conftest.err >&5
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } >/dev/null; then
17281   if test -s conftest.err; then
17282     ac_cpp_err=$ac_c_preproc_warn_flag
17283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17284   else
17285     ac_cpp_err=
17286   fi
17287 else
17288   ac_cpp_err=yes
17289 fi
17290 if test -z "$ac_cpp_err"; then
17291   ac_header_preproc=yes
17292 else
17293   echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17295
17296   ac_header_preproc=no
17297 fi
17298
17299 rm -f conftest.err conftest.$ac_ext
17300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17301 echo "${ECHO_T}$ac_header_preproc" >&6; }
17302
17303 # So?  What about this header?
17304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17305   yes:no: )
17306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17310     ac_header_preproc=yes
17311     ;;
17312   no:yes:* )
17313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17325     ( cat <<\_ASBOX
17326 ## ----------------------------------- ##
17327 ## Report this to llvmbugs@cs.uiuc.edu ##
17328 ## ----------------------------------- ##
17329 _ASBOX
17330      ) | sed "s/^/$as_me: WARNING:     /" >&2
17331     ;;
17332 esac
17333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   eval "$as_ac_Header=\$ac_header_preproc"
17339 fi
17340 ac_res=`eval echo '${'$as_ac_Header'}'`
17341                { echo "$as_me:$LINENO: result: $ac_res" >&5
17342 echo "${ECHO_T}$ac_res" >&6; }
17343
17344 fi
17345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17346   cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17348 _ACEOF
17349
17350 fi
17351
17352 done
17353
17354
17355
17356
17357
17358   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17359 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17360 if test "${ac_cv_huge_val_sanity+set}" = set; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363
17364     ac_ext=cpp
17365 ac_cpp='$CXXCPP $CPPFLAGS'
17366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17369
17370     ac_save_CXXFLAGS=$CXXFLAGS
17371     CXXFLAGS=-pedantic
17372     if test "$cross_compiling" = yes; then
17373   ac_cv_huge_val_sanity=yes
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 #include <math.h>
17382 int
17383 main ()
17384 {
17385 double x = HUGE_VAL; return x != x;
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394   *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397   (eval "$ac_link") 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17401   { (case "(($ac_try" in
17402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403   *) ac_try_echo=$ac_try;;
17404 esac
17405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406   (eval "$ac_try") 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; }; then
17410   ac_cv_huge_val_sanity=yes
17411 else
17412   echo "$as_me: program exited with status $ac_status" >&5
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 ( exit $ac_status )
17417 ac_cv_huge_val_sanity=no
17418 fi
17419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17420 fi
17421
17422
17423     CXXFLAGS=$ac_save_CXXFLAGS
17424     ac_ext=c
17425 ac_cpp='$CPP $CPPFLAGS'
17426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17429
17430
17431 fi
17432 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17433 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17434   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17435
17436
17437 { echo "$as_me:$LINENO: checking for pid_t" >&5
17438 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17439 if test "${ac_cv_type_pid_t+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448 $ac_includes_default
17449 typedef pid_t ac__type_new_;
17450 int
17451 main ()
17452 {
17453 if ((ac__type_new_ *) 0)
17454   return 0;
17455 if (sizeof (ac__type_new_))
17456   return 0;
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_compile") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } &&
17475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476   { (case "(($ac_try" in
17477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478   *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481   (eval "$ac_try") 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; } &&
17485          { ac_try='test -s conftest.$ac_objext'
17486   { (case "(($ac_try" in
17487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488   *) ac_try_echo=$ac_try;;
17489 esac
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491   (eval "$ac_try") 2>&5
17492   ac_status=$?
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); }; }; then
17495   ac_cv_type_pid_t=yes
17496 else
17497   echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500         ac_cv_type_pid_t=no
17501 fi
17502
17503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17504 fi
17505 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17506 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17507 if test $ac_cv_type_pid_t = yes; then
17508   :
17509 else
17510
17511 cat >>confdefs.h <<_ACEOF
17512 #define pid_t int
17513 _ACEOF
17514
17515 fi
17516
17517 { echo "$as_me:$LINENO: checking for size_t" >&5
17518 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17519 if test "${ac_cv_type_size_t+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528 $ac_includes_default
17529 typedef size_t ac__type_new_;
17530 int
17531 main ()
17532 {
17533 if ((ac__type_new_ *) 0)
17534   return 0;
17535 if (sizeof (ac__type_new_))
17536   return 0;
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_compile") 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556   { (case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561   (eval "$ac_try") 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; } &&
17565          { ac_try='test -s conftest.$ac_objext'
17566   { (case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571   (eval "$ac_try") 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; }; then
17575   ac_cv_type_size_t=yes
17576 else
17577   echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580         ac_cv_type_size_t=no
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 fi
17585 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17586 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17587 if test $ac_cv_type_size_t = yes; then
17588   :
17589 else
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define size_t unsigned int
17593 _ACEOF
17594
17595 fi
17596
17597
17598 cat >>confdefs.h <<_ACEOF
17599 #define RETSIGTYPE void
17600 _ACEOF
17601
17602 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17603 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17604 if test "${ac_cv_struct_tm+set}" = set; then
17605   echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607   cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 #include <sys/types.h>
17614 #include <time.h>
17615
17616 int
17617 main ()
17618 {
17619 struct tm *tp; tp->tm_sec;
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (ac_try="$ac_compile"
17626 case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_compile") 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17639   { (case "(($ac_try" in
17640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641   *) ac_try_echo=$ac_try;;
17642 esac
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644   (eval "$ac_try") 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; } &&
17648          { ac_try='test -s conftest.$ac_objext'
17649   { (case "(($ac_try" in
17650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651   *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654   (eval "$ac_try") 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   ac_cv_struct_tm=time.h
17659 else
17660   echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663         ac_cv_struct_tm=sys/time.h
17664 fi
17665
17666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667 fi
17668 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17669 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17670 if test $ac_cv_struct_tm = sys/time.h; then
17671
17672 cat >>confdefs.h <<\_ACEOF
17673 #define TM_IN_SYS_TIME 1
17674 _ACEOF
17675
17676 fi
17677
17678 { echo "$as_me:$LINENO: checking for int64_t" >&5
17679 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17680 if test "${ac_cv_type_int64_t+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 $ac_includes_default
17690 typedef int64_t ac__type_new_;
17691 int
17692 main ()
17693 {
17694 if ((ac__type_new_ *) 0)
17695   return 0;
17696 if (sizeof (ac__type_new_))
17697   return 0;
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_try") 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; } &&
17726          { ac_try='test -s conftest.$ac_objext'
17727   { (case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_try") 2>&5
17733   ac_status=$?
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); }; }; then
17736   ac_cv_type_int64_t=yes
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741         ac_cv_type_int64_t=no
17742 fi
17743
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 fi
17746 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17747 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17748 if test $ac_cv_type_int64_t = yes; then
17749
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_INT64_T 1
17752 _ACEOF
17753
17754
17755 else
17756   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17757 echo "$as_me: error: Type int64_t required but not found" >&2;}
17758    { (exit 1); exit 1; }; }
17759 fi
17760
17761 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17762 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17763 if test "${ac_cv_type_uint64_t+set}" = set; then
17764   echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766   cat >conftest.$ac_ext <<_ACEOF
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772 $ac_includes_default
17773 typedef uint64_t ac__type_new_;
17774 int
17775 main ()
17776 {
17777 if ((ac__type_new_ *) 0)
17778   return 0;
17779 if (sizeof (ac__type_new_))
17780   return 0;
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789   *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792   (eval "$ac_compile") 2>conftest.er1
17793   ac_status=$?
17794   grep -v '^ *+' conftest.er1 >conftest.err
17795   rm -f conftest.er1
17796   cat conftest.err >&5
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); } &&
17799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800   { (case "(($ac_try" in
17801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802   *) ac_try_echo=$ac_try;;
17803 esac
17804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805   (eval "$ac_try") 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; } &&
17809          { ac_try='test -s conftest.$ac_objext'
17810   { (case "(($ac_try" in
17811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812   *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815   (eval "$ac_try") 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; }; then
17819   ac_cv_type_uint64_t=yes
17820 else
17821   echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824         ac_cv_type_uint64_t=no
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 fi
17829 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17830 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17831 if test $ac_cv_type_uint64_t = yes; then
17832
17833 cat >>confdefs.h <<_ACEOF
17834 #define HAVE_UINT64_T 1
17835 _ACEOF
17836
17837
17838 else
17839   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17840 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17841 if test "${ac_cv_type_u_int64_t+set}" = set; then
17842   echo $ECHO_N "(cached) $ECHO_C" >&6
17843 else
17844   cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850 $ac_includes_default
17851 typedef u_int64_t ac__type_new_;
17852 int
17853 main ()
17854 {
17855 if ((ac__type_new_ *) 0)
17856   return 0;
17857 if (sizeof (ac__type_new_))
17858   return 0;
17859   ;
17860   return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870   (eval "$ac_compile") 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878   { (case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_try") 2>&5
17884   ac_status=$?
17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); }; } &&
17887          { ac_try='test -s conftest.$ac_objext'
17888   { (case "(($ac_try" in
17889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890   *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893   (eval "$ac_try") 2>&5
17894   ac_status=$?
17895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896   (exit $ac_status); }; }; then
17897   ac_cv_type_u_int64_t=yes
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902         ac_cv_type_u_int64_t=no
17903 fi
17904
17905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 fi
17907 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17908 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17909 if test $ac_cv_type_u_int64_t = yes; then
17910
17911 cat >>confdefs.h <<_ACEOF
17912 #define HAVE_U_INT64_T 1
17913 _ACEOF
17914
17915
17916 else
17917   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17918 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17919    { (exit 1); exit 1; }; }
17920 fi
17921
17922 fi
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17934 do
17935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17939   echo $ECHO_N "(cached) $ECHO_C" >&6
17940 else
17941   cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17949 #define $ac_func innocuous_$ac_func
17950
17951 /* System header to define __stub macros and hopefully few prototypes,
17952     which can conflict with char $ac_func (); below.
17953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17954     <limits.h> exists even on freestanding compilers.  */
17955
17956 #ifdef __STDC__
17957 # include <limits.h>
17958 #else
17959 # include <assert.h>
17960 #endif
17961
17962 #undef $ac_func
17963
17964 /* Override any GCC internal prototype to avoid an error.
17965    Use char because int might match the return type of a GCC
17966    builtin and then its argument prototype would still apply.  */
17967 #ifdef __cplusplus
17968 extern "C"
17969 #endif
17970 char $ac_func ();
17971 /* The GNU C library defines this for functions which it implements
17972     to always fail with ENOSYS.  Some functions are actually named
17973     something starting with __ and the normal name is an alias.  */
17974 #if defined __stub_$ac_func || defined __stub___$ac_func
17975 choke me
17976 #endif
17977
17978 int
17979 main ()
17980 {
17981 return $ac_func ();
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993   (eval "$ac_link") 2>conftest.er1
17994   ac_status=$?
17995   grep -v '^ *+' conftest.er1 >conftest.err
17996   rm -f conftest.er1
17997   cat conftest.err >&5
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } &&
18000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001   { (case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_try") 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; } &&
18010          { ac_try='test -s conftest$ac_exeext'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; }; then
18020   eval "$as_ac_var=yes"
18021 else
18022   echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18024
18025         eval "$as_ac_var=no"
18026 fi
18027
18028 rm -f core conftest.err conftest.$ac_objext \
18029       conftest$ac_exeext conftest.$ac_ext
18030 fi
18031 ac_res=`eval echo '${'$as_ac_var'}'`
18032                { echo "$as_me:$LINENO: result: $ac_res" >&5
18033 echo "${ECHO_T}$ac_res" >&6; }
18034 if test `eval echo '${'$as_ac_var'}'` = yes; then
18035   cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18037 _ACEOF
18038
18039 fi
18040 done
18041
18042
18043
18044
18045
18046 for ac_func in powf fmodf strtof round
18047 do
18048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052   echo $ECHO_N "(cached) $ECHO_C" >&6
18053 else
18054   cat >conftest.$ac_ext <<_ACEOF
18055 /* confdefs.h.  */
18056 _ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h.  */
18060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18062 #define $ac_func innocuous_$ac_func
18063
18064 /* System header to define __stub macros and hopefully few prototypes,
18065     which can conflict with char $ac_func (); below.
18066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067     <limits.h> exists even on freestanding compilers.  */
18068
18069 #ifdef __STDC__
18070 # include <limits.h>
18071 #else
18072 # include <assert.h>
18073 #endif
18074
18075 #undef $ac_func
18076
18077 /* Override any GCC internal prototype to avoid an error.
18078    Use char because int might match the return type of a GCC
18079    builtin and then its argument prototype would still apply.  */
18080 #ifdef __cplusplus
18081 extern "C"
18082 #endif
18083 char $ac_func ();
18084 /* The GNU C library defines this for functions which it implements
18085     to always fail with ENOSYS.  Some functions are actually named
18086     something starting with __ and the normal name is an alias.  */
18087 #if defined __stub_$ac_func || defined __stub___$ac_func
18088 choke me
18089 #endif
18090
18091 int
18092 main ()
18093 {
18094 return $ac_func ();
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext conftest$ac_exeext
18100 if { (ac_try="$ac_link"
18101 case "(($ac_try" in
18102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103   *) ac_try_echo=$ac_try;;
18104 esac
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106   (eval "$ac_link") 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114   { (case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119   (eval "$ac_try") 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; } &&
18123          { ac_try='test -s conftest$ac_exeext'
18124   { (case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129   (eval "$ac_try") 2>&5
18130   ac_status=$?
18131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132   (exit $ac_status); }; }; then
18133   eval "$as_ac_var=yes"
18134 else
18135   echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18137
18138         eval "$as_ac_var=no"
18139 fi
18140
18141 rm -f core conftest.err conftest.$ac_objext \
18142       conftest$ac_exeext conftest.$ac_ext
18143 fi
18144 ac_res=`eval echo '${'$as_ac_var'}'`
18145                { echo "$as_me:$LINENO: result: $ac_res" >&5
18146 echo "${ECHO_T}$ac_res" >&6; }
18147 if test `eval echo '${'$as_ac_var'}'` = yes; then
18148   cat >>confdefs.h <<_ACEOF
18149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18150 _ACEOF
18151
18152 fi
18153 done
18154
18155
18156
18157
18158
18159
18160 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18161 do
18162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18166   echo $ECHO_N "(cached) $ECHO_C" >&6
18167 else
18168   cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18176 #define $ac_func innocuous_$ac_func
18177
18178 /* System header to define __stub macros and hopefully few prototypes,
18179     which can conflict with char $ac_func (); below.
18180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18181     <limits.h> exists even on freestanding compilers.  */
18182
18183 #ifdef __STDC__
18184 # include <limits.h>
18185 #else
18186 # include <assert.h>
18187 #endif
18188
18189 #undef $ac_func
18190
18191 /* Override any GCC internal prototype to avoid an error.
18192    Use char because int might match the return type of a GCC
18193    builtin and then its argument prototype would still apply.  */
18194 #ifdef __cplusplus
18195 extern "C"
18196 #endif
18197 char $ac_func ();
18198 /* The GNU C library defines this for functions which it implements
18199     to always fail with ENOSYS.  Some functions are actually named
18200     something starting with __ and the normal name is an alias.  */
18201 #if defined __stub_$ac_func || defined __stub___$ac_func
18202 choke me
18203 #endif
18204
18205 int
18206 main ()
18207 {
18208 return $ac_func ();
18209   ;
18210   return 0;
18211 }
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217   *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220   (eval "$ac_link") 2>conftest.er1
18221   ac_status=$?
18222   grep -v '^ *+' conftest.er1 >conftest.err
18223   rm -f conftest.er1
18224   cat conftest.err >&5
18225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226   (exit $ac_status); } &&
18227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228   { (case "(($ac_try" in
18229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230   *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233   (eval "$ac_try") 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; } &&
18237          { ac_try='test -s conftest$ac_exeext'
18238   { (case "(($ac_try" in
18239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240   *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243   (eval "$ac_try") 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   eval "$as_ac_var=yes"
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252         eval "$as_ac_var=no"
18253 fi
18254
18255 rm -f core conftest.err conftest.$ac_objext \
18256       conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259                { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262   cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18265
18266 fi
18267 done
18268
18269
18270
18271
18272 for ac_func in isatty mkdtemp mkstemp
18273 do
18274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18288 #define $ac_func innocuous_$ac_func
18289
18290 /* System header to define __stub macros and hopefully few prototypes,
18291     which can conflict with char $ac_func (); below.
18292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18293     <limits.h> exists even on freestanding compilers.  */
18294
18295 #ifdef __STDC__
18296 # include <limits.h>
18297 #else
18298 # include <assert.h>
18299 #endif
18300
18301 #undef $ac_func
18302
18303 /* Override any GCC internal prototype to avoid an error.
18304    Use char because int might match the return type of a GCC
18305    builtin and then its argument prototype would still apply.  */
18306 #ifdef __cplusplus
18307 extern "C"
18308 #endif
18309 char $ac_func ();
18310 /* The GNU C library defines this for functions which it implements
18311     to always fail with ENOSYS.  Some functions are actually named
18312     something starting with __ and the normal name is an alias.  */
18313 #if defined __stub_$ac_func || defined __stub___$ac_func
18314 choke me
18315 #endif
18316
18317 int
18318 main ()
18319 {
18320 return $ac_func ();
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332   (eval "$ac_link") 2>conftest.er1
18333   ac_status=$?
18334   grep -v '^ *+' conftest.er1 >conftest.err
18335   rm -f conftest.er1
18336   cat conftest.err >&5
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); } &&
18339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18340   { (case "(($ac_try" in
18341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342   *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345   (eval "$ac_try") 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; } &&
18349          { ac_try='test -s conftest$ac_exeext'
18350   { (case "(($ac_try" in
18351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352   *) ac_try_echo=$ac_try;;
18353 esac
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355   (eval "$ac_try") 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; }; then
18359   eval "$as_ac_var=yes"
18360 else
18361   echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18363
18364         eval "$as_ac_var=no"
18365 fi
18366
18367 rm -f core conftest.err conftest.$ac_objext \
18368       conftest$ac_exeext conftest.$ac_ext
18369 fi
18370 ac_res=`eval echo '${'$as_ac_var'}'`
18371                { echo "$as_me:$LINENO: result: $ac_res" >&5
18372 echo "${ECHO_T}$ac_res" >&6; }
18373 if test `eval echo '${'$as_ac_var'}'` = yes; then
18374   cat >>confdefs.h <<_ACEOF
18375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18376 _ACEOF
18377
18378 fi
18379 done
18380
18381
18382
18383
18384
18385
18386
18387 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18388 do
18389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18403 #define $ac_func innocuous_$ac_func
18404
18405 /* System header to define __stub macros and hopefully few prototypes,
18406     which can conflict with char $ac_func (); below.
18407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408     <limits.h> exists even on freestanding compilers.  */
18409
18410 #ifdef __STDC__
18411 # include <limits.h>
18412 #else
18413 # include <assert.h>
18414 #endif
18415
18416 #undef $ac_func
18417
18418 /* Override any GCC internal prototype to avoid an error.
18419    Use char because int might match the return type of a GCC
18420    builtin and then its argument prototype would still apply.  */
18421 #ifdef __cplusplus
18422 extern "C"
18423 #endif
18424 char $ac_func ();
18425 /* The GNU C library defines this for functions which it implements
18426     to always fail with ENOSYS.  Some functions are actually named
18427     something starting with __ and the normal name is an alias.  */
18428 #if defined __stub_$ac_func || defined __stub___$ac_func
18429 choke me
18430 #endif
18431
18432 int
18433 main ()
18434 {
18435 return $ac_func ();
18436   ;
18437   return 0;
18438 }
18439 _ACEOF
18440 rm -f conftest.$ac_objext conftest$ac_exeext
18441 if { (ac_try="$ac_link"
18442 case "(($ac_try" in
18443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444   *) ac_try_echo=$ac_try;;
18445 esac
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447   (eval "$ac_link") 2>conftest.er1
18448   ac_status=$?
18449   grep -v '^ *+' conftest.er1 >conftest.err
18450   rm -f conftest.er1
18451   cat conftest.err >&5
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); } &&
18454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455   { (case "(($ac_try" in
18456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457   *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460   (eval "$ac_try") 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); }; } &&
18464          { ac_try='test -s conftest$ac_exeext'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   eval "$as_ac_var=yes"
18475 else
18476   echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479         eval "$as_ac_var=no"
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext \
18483       conftest$ac_exeext conftest.$ac_ext
18484 fi
18485 ac_res=`eval echo '${'$as_ac_var'}'`
18486                { echo "$as_me:$LINENO: result: $ac_res" >&5
18487 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_var'}'` = yes; then
18489   cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18491 _ACEOF
18492
18493 fi
18494 done
18495
18496
18497
18498
18499
18500 for ac_func in strerror strerror_r strerror_s setenv
18501 do
18502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18516 #define $ac_func innocuous_$ac_func
18517
18518 /* System header to define __stub macros and hopefully few prototypes,
18519     which can conflict with char $ac_func (); below.
18520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521     <limits.h> exists even on freestanding compilers.  */
18522
18523 #ifdef __STDC__
18524 # include <limits.h>
18525 #else
18526 # include <assert.h>
18527 #endif
18528
18529 #undef $ac_func
18530
18531 /* Override any GCC internal prototype to avoid an error.
18532    Use char because int might match the return type of a GCC
18533    builtin and then its argument prototype would still apply.  */
18534 #ifdef __cplusplus
18535 extern "C"
18536 #endif
18537 char $ac_func ();
18538 /* The GNU C library defines this for functions which it implements
18539     to always fail with ENOSYS.  Some functions are actually named
18540     something starting with __ and the normal name is an alias.  */
18541 #if defined __stub_$ac_func || defined __stub___$ac_func
18542 choke me
18543 #endif
18544
18545 int
18546 main ()
18547 {
18548 return $ac_func ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (ac_try="$ac_link"
18555 case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560   (eval "$ac_link") 2>conftest.er1
18561   ac_status=$?
18562   grep -v '^ *+' conftest.er1 >conftest.err
18563   rm -f conftest.er1
18564   cat conftest.err >&5
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); } &&
18567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568   { (case "(($ac_try" in
18569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570   *) ac_try_echo=$ac_try;;
18571 esac
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573   (eval "$ac_try") 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; } &&
18577          { ac_try='test -s conftest$ac_exeext'
18578   { (case "(($ac_try" in
18579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580   *) ac_try_echo=$ac_try;;
18581 esac
18582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583   (eval "$ac_try") 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; }; then
18587   eval "$as_ac_var=yes"
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592         eval "$as_ac_var=no"
18593 fi
18594
18595 rm -f core conftest.err conftest.$ac_objext \
18596       conftest$ac_exeext conftest.$ac_ext
18597 fi
18598 ac_res=`eval echo '${'$as_ac_var'}'`
18599                { echo "$as_me:$LINENO: result: $ac_res" >&5
18600 echo "${ECHO_T}$ac_res" >&6; }
18601 if test `eval echo '${'$as_ac_var'}'` = yes; then
18602   cat >>confdefs.h <<_ACEOF
18603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18604 _ACEOF
18605
18606 fi
18607 done
18608
18609
18610
18611
18612
18613 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18614 do
18615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621   cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18629 #define $ac_func innocuous_$ac_func
18630
18631 /* System header to define __stub macros and hopefully few prototypes,
18632     which can conflict with char $ac_func (); below.
18633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18634     <limits.h> exists even on freestanding compilers.  */
18635
18636 #ifdef __STDC__
18637 # include <limits.h>
18638 #else
18639 # include <assert.h>
18640 #endif
18641
18642 #undef $ac_func
18643
18644 /* Override any GCC internal prototype to avoid an error.
18645    Use char because int might match the return type of a GCC
18646    builtin and then its argument prototype would still apply.  */
18647 #ifdef __cplusplus
18648 extern "C"
18649 #endif
18650 char $ac_func ();
18651 /* The GNU C library defines this for functions which it implements
18652     to always fail with ENOSYS.  Some functions are actually named
18653     something starting with __ and the normal name is an alias.  */
18654 #if defined __stub_$ac_func || defined __stub___$ac_func
18655 choke me
18656 #endif
18657
18658 int
18659 main ()
18660 {
18661 return $ac_func ();
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (ac_try="$ac_link"
18668 case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673   (eval "$ac_link") 2>conftest.er1
18674   ac_status=$?
18675   grep -v '^ *+' conftest.er1 >conftest.err
18676   rm -f conftest.er1
18677   cat conftest.err >&5
18678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } &&
18680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18681   { (case "(($ac_try" in
18682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683   *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686   (eval "$ac_try") 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; } &&
18690          { ac_try='test -s conftest$ac_exeext'
18691   { (case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_try") 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; }; then
18700   eval "$as_ac_var=yes"
18701 else
18702   echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705         eval "$as_ac_var=no"
18706 fi
18707
18708 rm -f core conftest.err conftest.$ac_objext \
18709       conftest$ac_exeext conftest.$ac_ext
18710 fi
18711 ac_res=`eval echo '${'$as_ac_var'}'`
18712                { echo "$as_me:$LINENO: result: $ac_res" >&5
18713 echo "${ECHO_T}$ac_res" >&6; }
18714 if test `eval echo '${'$as_ac_var'}'` = yes; then
18715   cat >>confdefs.h <<_ACEOF
18716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18717 _ACEOF
18718
18719 fi
18720 done
18721
18722
18723
18724
18725
18726 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18727 do
18728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
18740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18742 #define $ac_func innocuous_$ac_func
18743
18744 /* System header to define __stub macros and hopefully few prototypes,
18745     which can conflict with char $ac_func (); below.
18746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18747     <limits.h> exists even on freestanding compilers.  */
18748
18749 #ifdef __STDC__
18750 # include <limits.h>
18751 #else
18752 # include <assert.h>
18753 #endif
18754
18755 #undef $ac_func
18756
18757 /* Override any GCC internal prototype to avoid an error.
18758    Use char because int might match the return type of a GCC
18759    builtin and then its argument prototype would still apply.  */
18760 #ifdef __cplusplus
18761 extern "C"
18762 #endif
18763 char $ac_func ();
18764 /* The GNU C library defines this for functions which it implements
18765     to always fail with ENOSYS.  Some functions are actually named
18766     something starting with __ and the normal name is an alias.  */
18767 #if defined __stub_$ac_func || defined __stub___$ac_func
18768 choke me
18769 #endif
18770
18771 int
18772 main ()
18773 {
18774 return $ac_func ();
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest.$ac_objext conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_link") 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18794   { (case "(($ac_try" in
18795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18796   *) ac_try_echo=$ac_try;;
18797 esac
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799   (eval "$ac_try") 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; } &&
18803          { ac_try='test -s conftest$ac_exeext'
18804   { (case "(($ac_try" in
18805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806   *) ac_try_echo=$ac_try;;
18807 esac
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809   (eval "$ac_try") 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; }; then
18813   eval "$as_ac_var=yes"
18814 else
18815   echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18817
18818         eval "$as_ac_var=no"
18819 fi
18820
18821 rm -f core conftest.err conftest.$ac_objext \
18822       conftest$ac_exeext conftest.$ac_ext
18823 fi
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825                { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828   cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18830 _ACEOF
18831
18832 fi
18833 done
18834
18835 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18836 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18837 if test "${llvm_cv_c_printf_a+set}" = set; then
18838   echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840   ac_ext=c
18841 ac_cpp='$CPP $CPPFLAGS'
18842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18845
18846  if test "$cross_compiling" = yes; then
18847   llvmac_cv_c_printf_a=no
18848 else
18849   cat >conftest.$ac_ext <<_ACEOF
18850
18851   /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856
18857 #include <stdio.h>
18858 #include <stdlib.h>
18859
18860 int
18861 main ()
18862 {
18863
18864 volatile double A, B;
18865 char Buffer[100];
18866 A = 1;
18867 A /= 10.0;
18868 sprintf(Buffer, "%a", A);
18869 B = atof(Buffer);
18870 if (A != B)
18871   return (1);
18872 if (A != 0x1.999999999999ap-4)
18873   return (1);
18874 return (0);
18875   ;
18876   return 0;
18877 }
18878 _ACEOF
18879 rm -f conftest$ac_exeext
18880 if { (ac_try="$ac_link"
18881 case "(($ac_try" in
18882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883   *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886   (eval "$ac_link") 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   llvm_cv_c_printf_a=yes
18900 else
18901   echo "$as_me: program exited with status $ac_status" >&5
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ( exit $ac_status )
18906 llvmac_cv_c_printf_a=no
18907 fi
18908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18909 fi
18910
18911
18912  ac_ext=c
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918 fi
18919 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18920 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18921  if test "$llvm_cv_c_printf_a" = "yes"; then
18922
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE_PRINTF_A 1
18925 _ACEOF
18926
18927  fi
18928
18929
18930 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18931 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18932 if test "${ac_cv_func_rand48+set}" = set; then
18933   echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935   ac_ext=cpp
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18940
18941    cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h.  */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h.  */
18947 #include <stdlib.h>
18948 int
18949 main ()
18950 {
18951 srand48(0);lrand48();drand48();
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963   (eval "$ac_compile") 2>conftest.er1
18964   ac_status=$?
18965   grep -v '^ *+' conftest.er1 >conftest.err
18966   rm -f conftest.er1
18967   cat conftest.err >&5
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); } &&
18970          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18971   { (case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_try") 2>&5
18977   ac_status=$?
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); }; } &&
18980          { ac_try='test -s conftest.$ac_objext'
18981   { (case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_try") 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; }; then
18990   ac_cv_func_rand48=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_cv_func_rand48=no
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999   ac_ext=c
19000 ac_cpp='$CPP $CPPFLAGS'
19001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19004
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19007 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19008
19009 if test "$ac_cv_func_rand48" = "yes" ; then
19010
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE_RAND48 1
19013 _ACEOF
19014
19015 fi
19016
19017
19018
19019 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19020 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19021 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19022   echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024   ac_ext=cpp
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029
19030    cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036 #include <math.h>
19037 int
19038 main ()
19039 {
19040 float f; isnan(f);
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_compile") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } &&
19059          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19060   { (case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_try") 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; } &&
19069          { ac_try='test -s conftest.$ac_objext'
19070   { (case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075   (eval "$ac_try") 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_func_isnan_in_math_h=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         ac_cv_func_isnan_in_math_h=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088   ac_ext=c
19089 ac_cpp='$CPP $CPPFLAGS'
19090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19093
19094 fi
19095 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19096 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19097
19098
19099 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19100
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_ISNAN_IN_MATH_H 1
19103 _ACEOF
19104
19105 fi
19106
19107 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19108 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19109 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19110   echo $ECHO_N "(cached) $ECHO_C" >&6
19111 else
19112   ac_ext=cpp
19113 ac_cpp='$CXXCPP $CPPFLAGS'
19114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19117
19118    cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 #include <cmath>
19125 int
19126 main ()
19127 {
19128 float f; isnan(f);
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137   *) ac_try_echo=$ac_try;;
19138 esac
19139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140   (eval "$ac_compile") 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } &&
19147          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19148   { (case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153   (eval "$ac_try") 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }; } &&
19157          { ac_try='test -s conftest.$ac_objext'
19158   { (case "(($ac_try" in
19159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160   *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163   (eval "$ac_try") 2>&5
19164   ac_status=$?
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); }; }; then
19167   ac_cv_func_isnan_in_cmath=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         ac_cv_func_isnan_in_cmath=no
19173 fi
19174
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19176   ac_ext=c
19177 ac_cpp='$CPP $CPPFLAGS'
19178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19181
19182 fi
19183 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19184 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19185
19186 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_ISNAN_IN_CMATH 1
19190 _ACEOF
19191
19192 fi
19193
19194 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19195 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19196 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 else
19199   ac_ext=cpp
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
19205    cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 #include <cmath>
19212 int
19213 main ()
19214 {
19215 float f; std::isnan(f);
19216   ;
19217   return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224   *) ac_try_echo=$ac_try;;
19225 esac
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227   (eval "$ac_compile") 2>conftest.er1
19228   ac_status=$?
19229   grep -v '^ *+' conftest.er1 >conftest.err
19230   rm -f conftest.er1
19231   cat conftest.err >&5
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); } &&
19234          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19235   { (case "(($ac_try" in
19236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237   *) ac_try_echo=$ac_try;;
19238 esac
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240   (eval "$ac_try") 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest.$ac_objext'
19245   { (case "(($ac_try" in
19246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247   *) ac_try_echo=$ac_try;;
19248 esac
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250   (eval "$ac_try") 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; }; then
19254   ac_cv_func_std_isnan_in_cmath=yes
19255 else
19256   echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         ac_cv_func_std_isnan_in_cmath=no
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263   ac_ext=c
19264 ac_cpp='$CPP $CPPFLAGS'
19265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269 fi
19270 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19271 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19272
19273 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_STD_ISNAN_IN_CMATH 1
19277 _ACEOF
19278
19279 fi
19280
19281
19282 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19283 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19284 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19285   echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287   ac_ext=cpp
19288 ac_cpp='$CXXCPP $CPPFLAGS'
19289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19292
19293    cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <math.h>
19300 int
19301 main ()
19302 {
19303 float f; isinf(f);
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest.$ac_objext
19309 if { (ac_try="$ac_compile"
19310 case "(($ac_try" in
19311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312   *) ac_try_echo=$ac_try;;
19313 esac
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315   (eval "$ac_compile") 2>conftest.er1
19316   ac_status=$?
19317   grep -v '^ *+' conftest.er1 >conftest.err
19318   rm -f conftest.er1
19319   cat conftest.err >&5
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } &&
19322          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19323   { (case "(($ac_try" in
19324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19325   *) ac_try_echo=$ac_try;;
19326 esac
19327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19328   (eval "$ac_try") 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; } &&
19332          { ac_try='test -s conftest.$ac_objext'
19333   { (case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338   (eval "$ac_try") 2>&5
19339   ac_status=$?
19340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341   (exit $ac_status); }; }; then
19342   ac_cv_func_isinf_in_math_h=yes
19343 else
19344   echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.$ac_ext >&5
19346
19347         ac_cv_func_isinf_in_math_h=no
19348 fi
19349
19350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19351   ac_ext=c
19352 ac_cpp='$CPP $CPPFLAGS'
19353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357 fi
19358 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19359 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19360
19361 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19362
19363 cat >>confdefs.h <<\_ACEOF
19364 #define HAVE_ISINF_IN_MATH_H 1
19365 _ACEOF
19366
19367 fi
19368
19369 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19370 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19372   echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374   ac_ext=cpp
19375 ac_cpp='$CXXCPP $CPPFLAGS'
19376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19379
19380    cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h.  */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h.  */
19386 #include <cmath>
19387 int
19388 main ()
19389 {
19390 float f; isinf(f);
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399   *) ac_try_echo=$ac_try;;
19400 esac
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402   (eval "$ac_compile") 2>conftest.er1
19403   ac_status=$?
19404   grep -v '^ *+' conftest.er1 >conftest.err
19405   rm -f conftest.er1
19406   cat conftest.err >&5
19407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408   (exit $ac_status); } &&
19409          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19410   { (case "(($ac_try" in
19411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412   *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415   (eval "$ac_try") 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest.$ac_objext'
19420   { (case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425   (eval "$ac_try") 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; }; then
19429   ac_cv_func_isinf_in_cmath=yes
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434         ac_cv_func_isinf_in_cmath=no
19435 fi
19436
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438   ac_ext=c
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444 fi
19445 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19446 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19447
19448 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19449
19450 cat >>confdefs.h <<\_ACEOF
19451 #define HAVE_ISINF_IN_CMATH 1
19452 _ACEOF
19453
19454 fi
19455
19456 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19457 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19458 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   ac_ext=cpp
19462 ac_cpp='$CXXCPP $CPPFLAGS'
19463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19466
19467    cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473 #include <cmath>
19474 int
19475 main ()
19476 {
19477 float f; std::isinf(f)}
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_compile") 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } &&
19496          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497   { (case "(($ac_try" in
19498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499   *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502   (eval "$ac_try") 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; } &&
19506          { ac_try='test -s conftest.$ac_objext'
19507   { (case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_try") 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516   ac_cv_func_std_isinf_in_cmath=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521         ac_cv_func_std_isinf_in_cmath=no
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525   ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531 fi
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19533 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19534
19535 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_STD_ISINF_IN_CMATH 1
19539 _ACEOF
19540
19541 fi
19542
19543 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19544 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19545 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   ac_ext=cpp
19549 ac_cpp='$CXXCPP $CPPFLAGS'
19550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19553
19554    cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560 #include <ieeefp.h>
19561 int
19562 main ()
19563 {
19564 float f; finite(f);
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573   *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576   (eval "$ac_compile") 2>conftest.er1
19577   ac_status=$?
19578   grep -v '^ *+' conftest.er1 >conftest.err
19579   rm -f conftest.er1
19580   cat conftest.err >&5
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } &&
19583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584   { (case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_try") 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; } &&
19593          { ac_try='test -s conftest.$ac_objext'
19594   { (case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_try") 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; }; then
19603   ac_cv_func_finite_in_ieeefp_h=yes
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         ac_cv_func_finite_in_ieeefp_h=no
19609 fi
19610
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612   ac_ext=c
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618 fi
19619 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19620 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19621
19622 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_FINITE_IN_IEEEFP_H 1
19626 _ACEOF
19627
19628 fi
19629
19630
19631
19632 if test "$llvm_cv_platform_type" = "Unix" ; then
19633
19634
19635 for ac_header in stdlib.h unistd.h
19636 do
19637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19642   echo $ECHO_N "(cached) $ECHO_C" >&6
19643 fi
19644 ac_res=`eval echo '${'$as_ac_Header'}'`
19645                { echo "$as_me:$LINENO: result: $ac_res" >&5
19646 echo "${ECHO_T}$ac_res" >&6; }
19647 else
19648   # Is the header compilable?
19649 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 $ac_includes_default
19658 #include <$ac_header>
19659 _ACEOF
19660 rm -f conftest.$ac_objext
19661 if { (ac_try="$ac_compile"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_compile") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19675   { (case "(($ac_try" in
19676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677   *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680   (eval "$ac_try") 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; } &&
19684          { ac_try='test -s conftest.$ac_objext'
19685   { (case "(($ac_try" in
19686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687   *) ac_try_echo=$ac_try;;
19688 esac
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690   (eval "$ac_try") 2>&5
19691   ac_status=$?
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); }; }; then
19694   ac_header_compiler=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699         ac_header_compiler=no
19700 fi
19701
19702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704 echo "${ECHO_T}$ac_header_compiler" >&6; }
19705
19706 # Is the header present?
19707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715 #include <$ac_header>
19716 _ACEOF
19717 if { (ac_try="$ac_cpp conftest.$ac_ext"
19718 case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } >/dev/null; then
19730   if test -s conftest.err; then
19731     ac_cpp_err=$ac_c_preproc_warn_flag
19732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19733   else
19734     ac_cpp_err=
19735   fi
19736 else
19737   ac_cpp_err=yes
19738 fi
19739 if test -z "$ac_cpp_err"; then
19740   ac_header_preproc=yes
19741 else
19742   echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19744
19745   ac_header_preproc=no
19746 fi
19747
19748 rm -f conftest.err conftest.$ac_ext
19749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6; }
19751
19752 # So?  What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19754   yes:no: )
19755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19759     ac_header_preproc=yes
19760     ;;
19761   no:yes:* )
19762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19774     ( cat <<\_ASBOX
19775 ## ----------------------------------- ##
19776 ## Report this to llvmbugs@cs.uiuc.edu ##
19777 ## ----------------------------------- ##
19778 _ASBOX
19779      ) | sed "s/^/$as_me: WARNING:     /" >&2
19780     ;;
19781 esac
19782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   eval "$as_ac_Header=\$ac_header_preproc"
19788 fi
19789 ac_res=`eval echo '${'$as_ac_Header'}'`
19790                { echo "$as_me:$LINENO: result: $ac_res" >&5
19791 echo "${ECHO_T}$ac_res" >&6; }
19792
19793 fi
19794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19795   cat >>confdefs.h <<_ACEOF
19796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19797 _ACEOF
19798
19799 fi
19800
19801 done
19802
19803
19804 for ac_func in getpagesize
19805 do
19806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h.  */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h.  */
19818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19820 #define $ac_func innocuous_$ac_func
19821
19822 /* System header to define __stub macros and hopefully few prototypes,
19823     which can conflict with char $ac_func (); below.
19824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19825     <limits.h> exists even on freestanding compilers.  */
19826
19827 #ifdef __STDC__
19828 # include <limits.h>
19829 #else
19830 # include <assert.h>
19831 #endif
19832
19833 #undef $ac_func
19834
19835 /* Override any GCC internal prototype to avoid an error.
19836    Use char because int might match the return type of a GCC
19837    builtin and then its argument prototype would still apply.  */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char $ac_func ();
19842 /* The GNU C library defines this for functions which it implements
19843     to always fail with ENOSYS.  Some functions are actually named
19844     something starting with __ and the normal name is an alias.  */
19845 #if defined __stub_$ac_func || defined __stub___$ac_func
19846 choke me
19847 #endif
19848
19849 int
19850 main ()
19851 {
19852 return $ac_func ();
19853   ;
19854   return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_link") 2>conftest.er1
19865   ac_status=$?
19866   grep -v '^ *+' conftest.er1 >conftest.err
19867   rm -f conftest.er1
19868   cat conftest.err >&5
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19872   { (case "(($ac_try" in
19873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874   *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877   (eval "$ac_try") 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); }; } &&
19881          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   eval "$as_ac_var=yes"
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896         eval "$as_ac_var=no"
19897 fi
19898
19899 rm -f core conftest.err conftest.$ac_objext \
19900       conftest$ac_exeext conftest.$ac_ext
19901 fi
19902 ac_res=`eval echo '${'$as_ac_var'}'`
19903                { echo "$as_me:$LINENO: result: $ac_res" >&5
19904 echo "${ECHO_T}$ac_res" >&6; }
19905 if test `eval echo '${'$as_ac_var'}'` = yes; then
19906   cat >>confdefs.h <<_ACEOF
19907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19908 _ACEOF
19909
19910 fi
19911 done
19912
19913 { echo "$as_me:$LINENO: checking for working mmap" >&5
19914 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19915 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19916   echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918   if test "$cross_compiling" = yes; then
19919   ac_cv_func_mmap_fixed_mapped=no
19920 else
19921   cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 $ac_includes_default
19928 /* malloc might have been renamed as rpl_malloc. */
19929 #undef malloc
19930
19931 /* Thanks to Mike Haertel and Jim Avera for this test.
19932    Here is a matrix of mmap possibilities:
19933         mmap private not fixed
19934         mmap private fixed at somewhere currently unmapped
19935         mmap private fixed at somewhere already mapped
19936         mmap shared not fixed
19937         mmap shared fixed at somewhere currently unmapped
19938         mmap shared fixed at somewhere already mapped
19939    For private mappings, we should verify that changes cannot be read()
19940    back from the file, nor mmap's back from the file at a different
19941    address.  (There have been systems where private was not correctly
19942    implemented like the infamous i386 svr4.0, and systems where the
19943    VM page cache was not coherent with the file system buffer cache
19944    like early versions of FreeBSD and possibly contemporary NetBSD.)
19945    For shared mappings, we should conversely verify that changes get
19946    propagated back to all the places they're supposed to be.
19947
19948    Grep wants private fixed already mapped.
19949    The main things grep needs to know about mmap are:
19950    * does it exist and is it safe to write into the mmap'd area
19951    * how to use it (BSD variants)  */
19952
19953 #include <fcntl.h>
19954 #include <sys/mman.h>
19955
19956 #if !STDC_HEADERS && !HAVE_STDLIB_H
19957 char *malloc ();
19958 #endif
19959
19960 /* This mess was copied from the GNU getpagesize.h.  */
19961 #if !HAVE_GETPAGESIZE
19962 /* Assume that all systems that can run configure have sys/param.h.  */
19963 # if !HAVE_SYS_PARAM_H
19964 #  define HAVE_SYS_PARAM_H 1
19965 # endif
19966
19967 # ifdef _SC_PAGESIZE
19968 #  define getpagesize() sysconf(_SC_PAGESIZE)
19969 # else /* no _SC_PAGESIZE */
19970 #  if HAVE_SYS_PARAM_H
19971 #   include <sys/param.h>
19972 #   ifdef EXEC_PAGESIZE
19973 #    define getpagesize() EXEC_PAGESIZE
19974 #   else /* no EXEC_PAGESIZE */
19975 #    ifdef NBPG
19976 #     define getpagesize() NBPG * CLSIZE
19977 #     ifndef CLSIZE
19978 #      define CLSIZE 1
19979 #     endif /* no CLSIZE */
19980 #    else /* no NBPG */
19981 #     ifdef NBPC
19982 #      define getpagesize() NBPC
19983 #     else /* no NBPC */
19984 #      ifdef PAGESIZE
19985 #       define getpagesize() PAGESIZE
19986 #      endif /* PAGESIZE */
19987 #     endif /* no NBPC */
19988 #    endif /* no NBPG */
19989 #   endif /* no EXEC_PAGESIZE */
19990 #  else /* no HAVE_SYS_PARAM_H */
19991 #   define getpagesize() 8192   /* punt totally */
19992 #  endif /* no HAVE_SYS_PARAM_H */
19993 # endif /* no _SC_PAGESIZE */
19994
19995 #endif /* no HAVE_GETPAGESIZE */
19996
19997 int
19998 main ()
19999 {
20000   char *data, *data2, *data3;
20001   int i, pagesize;
20002   int fd;
20003
20004   pagesize = getpagesize ();
20005
20006   /* First, make a file with some known garbage in it. */
20007   data = (char *) malloc (pagesize);
20008   if (!data)
20009     return 1;
20010   for (i = 0; i < pagesize; ++i)
20011     *(data + i) = rand ();
20012   umask (0);
20013   fd = creat ("conftest.mmap", 0600);
20014   if (fd < 0)
20015     return 1;
20016   if (write (fd, data, pagesize) != pagesize)
20017     return 1;
20018   close (fd);
20019
20020   /* Next, try to mmap the file at a fixed address which already has
20021      something else allocated at it.  If we can, also make sure that
20022      we see the same garbage.  */
20023   fd = open ("conftest.mmap", O_RDWR);
20024   if (fd < 0)
20025     return 1;
20026   data2 = (char *) malloc (2 * pagesize);
20027   if (!data2)
20028     return 1;
20029   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20030   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20031                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20032     return 1;
20033   for (i = 0; i < pagesize; ++i)
20034     if (*(data + i) != *(data2 + i))
20035       return 1;
20036
20037   /* Finally, make sure that changes to the mapped area do not
20038      percolate back to the file as seen by read().  (This is a bug on
20039      some variants of i386 svr4.0.)  */
20040   for (i = 0; i < pagesize; ++i)
20041     *(data2 + i) = *(data2 + i) + 1;
20042   data3 = (char *) malloc (pagesize);
20043   if (!data3)
20044     return 1;
20045   if (read (fd, data3, pagesize) != pagesize)
20046     return 1;
20047   for (i = 0; i < pagesize; ++i)
20048     if (*(data + i) != *(data3 + i))
20049       return 1;
20050   close (fd);
20051   return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_link") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20065   { (case "(($ac_try" in
20066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067   *) ac_try_echo=$ac_try;;
20068 esac
20069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070   (eval "$ac_try") 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_cv_func_mmap_fixed_mapped=yes
20075 else
20076   echo "$as_me: program exited with status $ac_status" >&5
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080 ( exit $ac_status )
20081 ac_cv_func_mmap_fixed_mapped=no
20082 fi
20083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20084 fi
20085
20086
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20089 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20090 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20091
20092 cat >>confdefs.h <<\_ACEOF
20093 #define HAVE_MMAP 1
20094 _ACEOF
20095
20096 fi
20097 rm -f conftest.mmap
20098
20099   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20100 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20101 if test "${ac_cv_func_mmap_file+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104    ac_ext=c
20105 ac_cpp='$CPP $CPPFLAGS'
20106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109
20110   if test "$cross_compiling" = yes; then
20111   ac_cv_func_mmap_file=no
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114
20115     /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120
20121 #include <sys/types.h>
20122 #include <sys/mman.h>
20123 #include <fcntl.h>
20124
20125 int
20126 main ()
20127 {
20128
20129   int fd;
20130   fd = creat ("foo",0777);
20131   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20132   unlink ("foo");
20133   return (fd != (int) MAP_FAILED);
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142   *) ac_try_echo=$ac_try;;
20143 esac
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145   (eval "$ac_link") 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20149   { (case "(($ac_try" in
20150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151   *) ac_try_echo=$ac_try;;
20152 esac
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154   (eval "$ac_try") 2>&5
20155   ac_status=$?
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); }; }; then
20158   ac_cv_func_mmap_file=yes
20159 else
20160   echo "$as_me: program exited with status $ac_status" >&5
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20163
20164 ( exit $ac_status )
20165 ac_cv_func_mmap_file=no
20166 fi
20167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20168 fi
20169
20170
20171   ac_ext=c
20172 ac_cpp='$CPP $CPPFLAGS'
20173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20176
20177
20178 fi
20179 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20180 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20181 if test "$ac_cv_func_mmap_file" = yes; then
20182
20183 cat >>confdefs.h <<\_ACEOF
20184 #define HAVE_MMAP_FILE
20185 _ACEOF
20186
20187    MMAP_FILE=yes
20188
20189 fi
20190
20191   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20192 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20193 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   if test "$llvm_cv_os_type" = "Interix" ; then
20197    ac_cv_need_dev_zero_for_mmap=yes
20198  else
20199    ac_cv_need_dev_zero_for_mmap=no
20200  fi
20201
20202 fi
20203 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20204 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20205 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20206
20207 cat >>confdefs.h <<\_ACEOF
20208 #define NEED_DEV_ZERO_FOR_MMAP 1
20209 _ACEOF
20210
20211 fi
20212
20213   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20214   then
20215     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20216 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20217   fi
20218   if test "$ac_cv_func_mmap_file" = "no"
20219   then
20220     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20221 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20222   fi
20223 fi
20224
20225 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20226 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20227 ac_ext=cpp
20228 ac_cpp='$CXXCPP $CPPFLAGS'
20229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20232
20233 cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 int main() {
20240         volatile unsigned long val = 1;
20241         __sync_synchronize();
20242         __sync_val_compare_and_swap(&val, 1, 0);
20243         __sync_add_and_fetch(&val, 1);
20244         __sync_sub_and_fetch(&val, 1);
20245         return 0;
20246       }
20247
20248 _ACEOF
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253   *) ac_try_echo=$ac_try;;
20254 esac
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256   (eval "$ac_link") 2>conftest.er1
20257   ac_status=$?
20258   grep -v '^ *+' conftest.er1 >conftest.err
20259   rm -f conftest.er1
20260   cat conftest.err >&5
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); } &&
20263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20264   { (case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_try") 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; } &&
20273          { ac_try='test -s conftest$ac_exeext'
20274   { (case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_try") 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   ac_ext=c
20284 ac_cpp='$CPP $CPPFLAGS'
20285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289   { echo "$as_me:$LINENO: result: yes" >&5
20290 echo "${ECHO_T}yes" >&6; }
20291
20292 cat >>confdefs.h <<\_ACEOF
20293 #define LLVM_MULTITHREADED 1
20294 _ACEOF
20295
20296 else
20297   echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20299
20300         { echo "$as_me:$LINENO: result: no" >&5
20301 echo "${ECHO_T}no" >&6; }
20302
20303 cat >>confdefs.h <<\_ACEOF
20304 #define LLVM_MULTITHREADED 0
20305 _ACEOF
20306
20307   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20308 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20309 fi
20310
20311 rm -f core conftest.err conftest.$ac_objext \
20312       conftest$ac_exeext conftest.$ac_ext
20313
20314
20315 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20316   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20317 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20318 if test "${llvm_cv_linux_mixed+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321    ac_ext=c
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327   cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333 #ifndef __x86_64__
20334        error: Not x86-64 even if uname says so!
20335       #endif
20336
20337 int
20338 main ()
20339 {
20340
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext
20346 if { (ac_try="$ac_compile"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_compile") 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } &&
20359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20360   { (case "(($ac_try" in
20361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362   *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365   (eval "$ac_try") 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; } &&
20369          { ac_try='test -s conftest.$ac_objext'
20370   { (case "(($ac_try" in
20371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372   *) ac_try_echo=$ac_try;;
20373 esac
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375   (eval "$ac_try") 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; }; then
20379   llvm_cv_linux_mixed=no
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384         llvm_cv_linux_mixed=yes
20385 fi
20386
20387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20388   ac_ext=c
20389 ac_cpp='$CPP $CPPFLAGS'
20390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393
20394
20395 fi
20396 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20397 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20398
20399   if test "$llvm_cv_linux_mixed" = "yes"; then
20400     llvm_cv_target_arch="x86"
20401     ARCH="x86"
20402   fi
20403 fi
20404
20405
20406 for ac_func in __dso_handle
20407 do
20408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20412   echo $ECHO_N "(cached) $ECHO_C" >&6
20413 else
20414   cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h.  */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h.  */
20420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20422 #define $ac_func innocuous_$ac_func
20423
20424 /* System header to define __stub macros and hopefully few prototypes,
20425     which can conflict with char $ac_func (); below.
20426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20427     <limits.h> exists even on freestanding compilers.  */
20428
20429 #ifdef __STDC__
20430 # include <limits.h>
20431 #else
20432 # include <assert.h>
20433 #endif
20434
20435 #undef $ac_func
20436
20437 /* Override any GCC internal prototype to avoid an error.
20438    Use char because int might match the return type of a GCC
20439    builtin and then its argument prototype would still apply.  */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 char $ac_func ();
20444 /* The GNU C library defines this for functions which it implements
20445     to always fail with ENOSYS.  Some functions are actually named
20446     something starting with __ and the normal name is an alias.  */
20447 #if defined __stub_$ac_func || defined __stub___$ac_func
20448 choke me
20449 #endif
20450
20451 int
20452 main ()
20453 {
20454 return $ac_func ();
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_link") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } &&
20473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474   { (case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_try") 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest$ac_exeext'
20484   { (case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_try") 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; }; then
20493   eval "$as_ac_var=yes"
20494 else
20495   echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498         eval "$as_ac_var=no"
20499 fi
20500
20501 rm -f core conftest.err conftest.$ac_objext \
20502       conftest$ac_exeext conftest.$ac_ext
20503 fi
20504 ac_res=`eval echo '${'$as_ac_var'}'`
20505                { echo "$as_me:$LINENO: result: $ac_res" >&5
20506 echo "${ECHO_T}$ac_res" >&6; }
20507 if test `eval echo '${'$as_ac_var'}'` = yes; then
20508   cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20510 _ACEOF
20511
20512 fi
20513 done
20514
20515
20516 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20517 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20518 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   llvm_cv_llvmgcc_sanity="no"
20522 if test -x "$LLVMGCC" ; then
20523   cp /dev/null conftest.c
20524   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20525       grep 'target datalayout =' > /dev/null 2>&1
20526   if test $? -eq 0 ; then
20527     llvm_cv_llvmgcc_sanity="yes"
20528   fi
20529   rm conftest.c
20530 fi
20531 fi
20532 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20533 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20534
20535 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20536   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20537 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20538   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20539   LLVMCC1=$llvmcc1path
20540
20541   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20542   LLVMCC1PLUS=$llvmcc1pluspath
20543
20544   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20545   LLVMGCCDIR=$llvmgccdir
20546
20547   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20548   LLVMGCC_LANGS=$llvmgcclangs
20549
20550   { echo "$as_me:$LINENO: result: ok" >&5
20551 echo "${ECHO_T}ok" >&6; }
20552 fi
20553
20554 SHLIBEXT=$libltdl_cv_shlibext
20555
20556
20557 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20558
20559
20560 # Translate the various configuration directories and other basic
20561 # information into substitutions that will end up in Makefile.config.in
20562 # that these configured values can be used by the makefiles
20563 if test "${prefix}" = "NONE" ; then
20564   prefix="/usr/local"
20565 fi
20566 eval LLVM_PREFIX="${prefix}";
20567 eval LLVM_BINDIR="${prefix}/bin";
20568 eval LLVM_LIBDIR="${prefix}/lib";
20569 eval LLVM_DATADIR="${prefix}/share/llvm";
20570 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20571 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20572 eval LLVM_INCLUDEDIR="${prefix}/include";
20573 eval LLVM_INFODIR="${prefix}/info";
20574 eval LLVM_MANDIR="${prefix}/man";
20575 LLVM_CONFIGTIME=`date`
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587 # Place the various directores into the config.h file as #defines so that we
20588 # can know about the installation paths within LLVM.
20589
20590 cat >>confdefs.h <<_ACEOF
20591 #define LLVM_PREFIX "$LLVM_PREFIX"
20592 _ACEOF
20593
20594
20595 cat >>confdefs.h <<_ACEOF
20596 #define LLVM_BINDIR "$LLVM_BINDIR"
20597 _ACEOF
20598
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20602 _ACEOF
20603
20604
20605 cat >>confdefs.h <<_ACEOF
20606 #define LLVM_DATADIR "$LLVM_DATADIR"
20607 _ACEOF
20608
20609
20610 cat >>confdefs.h <<_ACEOF
20611 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20612 _ACEOF
20613
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20617 _ACEOF
20618
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20622 _ACEOF
20623
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define LLVM_INFODIR "$LLVM_INFODIR"
20627 _ACEOF
20628
20629
20630 cat >>confdefs.h <<_ACEOF
20631 #define LLVM_MANDIR "$LLVM_MANDIR"
20632 _ACEOF
20633
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20637 _ACEOF
20638
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define LLVM_HOSTTRIPLE "$host"
20642 _ACEOF
20643
20644
20645 # Determine which bindings to build.
20646 if test "$BINDINGS_TO_BUILD" = auto ; then
20647   BINDINGS_TO_BUILD=""
20648   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20649     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20650   fi
20651 fi
20652 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20653
20654
20655 # This isn't really configurey, but it avoids having to repeat the list in
20656 # other files.
20657 ALL_BINDINGS=ocaml
20658
20659
20660 # Do any work necessary to ensure that bindings have what they need.
20661 binding_prereqs_failed=0
20662 for a_binding in $BINDINGS_TO_BUILD ; do
20663   case "$a_binding" in
20664   ocaml)
20665     if test "x$OCAMLC" = x ; then
20666       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20667 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20668       binding_prereqs_failed=1
20669     fi
20670     if test "x$OCAMLDEP" = x ; then
20671       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20673       binding_prereqs_failed=1
20674     fi
20675     if test "x$OCAMLOPT" = x ; then
20676       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20678           fi
20679     if test "x$with_ocaml_libdir" != xauto ; then
20680       OCAML_LIBDIR=$with_ocaml_libdir
20681
20682     else
20683       ocaml_stdlib="`"$OCAMLC" -where`"
20684       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20685       then
20686         # ocaml stdlib is beneath our prefix; use stdlib
20687         OCAML_LIBDIR=$ocaml_stdlib
20688
20689       else
20690         # ocaml stdlib is outside our prefix; use libdir/ocaml
20691         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20692
20693       fi
20694     fi
20695     ;;
20696   esac
20697 done
20698 if test "$binding_prereqs_failed" = 1 ; then
20699   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20700 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20701    { (exit 1); exit 1; }; }
20702 fi
20703
20704 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20705 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20706 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709    ac_ext=cpp
20710 ac_cpp='$CXXCPP $CPPFLAGS'
20711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20714
20715   oldcxxflags="$CXXFLAGS"
20716   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20717   cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723
20724 int
20725 main ()
20726 {
20727
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_compile") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } &&
20746          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20747   { (case "(($ac_try" in
20748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749   *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752   (eval "$ac_try") 2>&5
20753   ac_status=$?
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); }; } &&
20756          { ac_try='test -s conftest.$ac_objext'
20757   { (case "(($ac_try" in
20758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759   *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762   (eval "$ac_try") 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; }; then
20766   llvm_cv_cxx_visibility_inlines_hidden=yes
20767 else
20768   echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20770
20771         llvm_cv_cxx_visibility_inlines_hidden=no
20772 fi
20773
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775   CXXFLAGS="$oldcxxflags"
20776   ac_ext=c
20777 ac_cpp='$CPP $CPPFLAGS'
20778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20781
20782
20783 fi
20784 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20785 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20786 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20787   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20788
20789 else
20790   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20791
20792 fi
20793
20794
20795 if test "$llvm_cv_link_use_r" = "yes" ; then
20796   RPATH="-Wl,-R"
20797 else
20798   RPATH="-Wl,-rpath"
20799 fi
20800
20801
20802 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20803   RDYNAMIC="-Wl,-export-dynamic"
20804 else
20805   RDYNAMIC=""
20806 fi
20807
20808
20809
20810 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20811
20812
20813
20814
20815
20816
20817 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20818
20819 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20820
20821 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20822
20823 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20824
20825 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20826
20827
20828 ac_config_files="$ac_config_files Makefile.config"
20829
20830
20831 ac_config_files="$ac_config_files llvm.spec"
20832
20833
20834 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20835
20836
20837 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20838
20839
20840 ac_config_commands="$ac_config_commands setup"
20841
20842 ac_config_commands="$ac_config_commands Makefile"
20843
20844
20845 ac_config_commands="$ac_config_commands Makefile.common"
20846
20847
20848 ac_config_commands="$ac_config_commands examples/Makefile"
20849
20850
20851 ac_config_commands="$ac_config_commands lib/Makefile"
20852
20853
20854 ac_config_commands="$ac_config_commands runtime/Makefile"
20855
20856
20857 ac_config_commands="$ac_config_commands test/Makefile"
20858
20859
20860 ac_config_commands="$ac_config_commands test/Makefile.tests"
20861
20862
20863 ac_config_commands="$ac_config_commands unittests/Makefile"
20864
20865
20866 ac_config_commands="$ac_config_commands tools/Makefile"
20867
20868
20869 ac_config_commands="$ac_config_commands utils/Makefile"
20870
20871
20872 ac_config_commands="$ac_config_commands projects/Makefile"
20873
20874
20875 ac_config_commands="$ac_config_commands bindings/Makefile"
20876
20877
20878 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20879
20880
20881
20882 cat >confcache <<\_ACEOF
20883 # This file is a shell script that caches the results of configure
20884 # tests run on this system so they can be shared between configure
20885 # scripts and configure runs, see configure's option --config-cache.
20886 # It is not useful on other systems.  If it contains results you don't
20887 # want to keep, you may remove or edit it.
20888 #
20889 # config.status only pays attention to the cache file if you give it
20890 # the --recheck option to rerun configure.
20891 #
20892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20894 # following values.
20895
20896 _ACEOF
20897
20898 # The following way of writing the cache mishandles newlines in values,
20899 # but we know of no workaround that is simple, portable, and efficient.
20900 # So, we kill variables containing newlines.
20901 # Ultrix sh set writes to stderr and can't be redirected directly,
20902 # and sets the high bit in the cache file unless we assign to the vars.
20903 (
20904   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20905     eval ac_val=\$$ac_var
20906     case $ac_val in #(
20907     *${as_nl}*)
20908       case $ac_var in #(
20909       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20910 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20911       esac
20912       case $ac_var in #(
20913       _ | IFS | as_nl) ;; #(
20914       *) $as_unset $ac_var ;;
20915       esac ;;
20916     esac
20917   done
20918
20919   (set) 2>&1 |
20920     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20921     *${as_nl}ac_space=\ *)
20922       # `set' does not quote correctly, so add quotes (double-quote
20923       # substitution turns \\\\ into \\, and sed turns \\ into \).
20924       sed -n \
20925         "s/'/'\\\\''/g;
20926           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20927       ;; #(
20928     *)
20929       # `set' quotes correctly as required by POSIX, so do not add quotes.
20930       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20931       ;;
20932     esac |
20933     sort
20934 ) |
20935   sed '
20936      /^ac_cv_env_/b end
20937      t clear
20938      :clear
20939      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20940      t end
20941      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20942      :end' >>confcache
20943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20944   if test -w "$cache_file"; then
20945     test "x$cache_file" != "x/dev/null" &&
20946       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20947 echo "$as_me: updating cache $cache_file" >&6;}
20948     cat confcache >$cache_file
20949   else
20950     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20951 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20952   fi
20953 fi
20954 rm -f confcache
20955
20956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20957 # Let make expand exec_prefix.
20958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20959
20960 DEFS=-DHAVE_CONFIG_H
20961
20962 ac_libobjs=
20963 ac_ltlibobjs=
20964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20965   # 1. Remove the extension, and $U if already installed.
20966   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20967   ac_i=`echo "$ac_i" | sed "$ac_script"`
20968   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20969   #    will be set to the directory where LIBOBJS objects are built.
20970   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20971   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20972 done
20973 LIBOBJS=$ac_libobjs
20974
20975 LTLIBOBJS=$ac_ltlibobjs
20976
20977
20978 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20979   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20980 Usually this means the macro was only invoked conditionally." >&5
20981 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20982 Usually this means the macro was only invoked conditionally." >&2;}
20983    { (exit 1); exit 1; }; }
20984 fi
20985 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20986   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20987 Usually this means the macro was only invoked conditionally." >&5
20988 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&2;}
20990    { (exit 1); exit 1; }; }
20991 fi
20992
20993 : ${CONFIG_STATUS=./config.status}
20994 ac_clean_files_save=$ac_clean_files
20995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20996 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20997 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20998 cat >$CONFIG_STATUS <<_ACEOF
20999 #! $SHELL
21000 # Generated by $as_me.
21001 # Run this file to recreate the current configuration.
21002 # Compiler output produced by configure, useful for debugging
21003 # configure, is in config.log if it exists.
21004
21005 debug=false
21006 ac_cs_recheck=false
21007 ac_cs_silent=false
21008 SHELL=\${CONFIG_SHELL-$SHELL}
21009 _ACEOF
21010
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21012 ## --------------------- ##
21013 ## M4sh Initialization.  ##
21014 ## --------------------- ##
21015
21016 # Be Bourne compatible
21017 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21018   emulate sh
21019   NULLCMD=:
21020   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21021   # is contrary to our usage.  Disable this feature.
21022   alias -g '${1+"$@"}'='"$@"'
21023   setopt NO_GLOB_SUBST
21024 else
21025   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21026 fi
21027 BIN_SH=xpg4; export BIN_SH # for Tru64
21028 DUALCASE=1; export DUALCASE # for MKS sh
21029
21030
21031 # PATH needs CR
21032 # Avoid depending upon Character Ranges.
21033 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21035 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21036 as_cr_digits='0123456789'
21037 as_cr_alnum=$as_cr_Letters$as_cr_digits
21038
21039 # The user is always right.
21040 if test "${PATH_SEPARATOR+set}" != set; then
21041   echo "#! /bin/sh" >conf$$.sh
21042   echo  "exit 0"   >>conf$$.sh
21043   chmod +x conf$$.sh
21044   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21045     PATH_SEPARATOR=';'
21046   else
21047     PATH_SEPARATOR=:
21048   fi
21049   rm -f conf$$.sh
21050 fi
21051
21052 # Support unset when possible.
21053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21054   as_unset=unset
21055 else
21056   as_unset=false
21057 fi
21058
21059
21060 # IFS
21061 # We need space, tab and new line, in precisely that order.  Quoting is
21062 # there to prevent editors from complaining about space-tab.
21063 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21064 # splitting by setting IFS to empty value.)
21065 as_nl='
21066 '
21067 IFS=" ""        $as_nl"
21068
21069 # Find who we are.  Look in the path if we contain no directory separator.
21070 case $0 in
21071   *[\\/]* ) as_myself=$0 ;;
21072   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21073 for as_dir in $PATH
21074 do
21075   IFS=$as_save_IFS
21076   test -z "$as_dir" && as_dir=.
21077   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21078 done
21079 IFS=$as_save_IFS
21080
21081      ;;
21082 esac
21083 # We did not find ourselves, most probably we were run as `sh COMMAND'
21084 # in which case we are not to be found in the path.
21085 if test "x$as_myself" = x; then
21086   as_myself=$0
21087 fi
21088 if test ! -f "$as_myself"; then
21089   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21090   { (exit 1); exit 1; }
21091 fi
21092
21093 # Work around bugs in pre-3.0 UWIN ksh.
21094 for as_var in ENV MAIL MAILPATH
21095 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21096 done
21097 PS1='$ '
21098 PS2='> '
21099 PS4='+ '
21100
21101 # NLS nuisances.
21102 for as_var in \
21103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21105   LC_TELEPHONE LC_TIME
21106 do
21107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21108     eval $as_var=C; export $as_var
21109   else
21110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21111   fi
21112 done
21113
21114 # Required to use basename.
21115 if expr a : '\(a\)' >/dev/null 2>&1 &&
21116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21117   as_expr=expr
21118 else
21119   as_expr=false
21120 fi
21121
21122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21123   as_basename=basename
21124 else
21125   as_basename=false
21126 fi
21127
21128
21129 # Name of the executable.
21130 as_me=`$as_basename -- "$0" ||
21131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21132          X"$0" : 'X\(//\)$' \| \
21133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21134 echo X/"$0" |
21135     sed '/^.*\/\([^/][^/]*\)\/*$/{
21136             s//\1/
21137             q
21138           }
21139           /^X\/\(\/\/\)$/{
21140             s//\1/
21141             q
21142           }
21143           /^X\/\(\/\).*/{
21144             s//\1/
21145             q
21146           }
21147           s/.*/./; q'`
21148
21149 # CDPATH.
21150 $as_unset CDPATH
21151
21152
21153
21154   as_lineno_1=$LINENO
21155   as_lineno_2=$LINENO
21156   test "x$as_lineno_1" != "x$as_lineno_2" &&
21157   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21158
21159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21160   # uniformly replaced by the line number.  The first 'sed' inserts a
21161   # line-number line after each line using $LINENO; the second 'sed'
21162   # does the real work.  The second script uses 'N' to pair each
21163   # line-number line with the line containing $LINENO, and appends
21164   # trailing '-' during substitution so that $LINENO is not a special
21165   # case at line end.
21166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21167   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21168   # E. McMahon (1931-1989) for sed's syntax.  :-)
21169   sed -n '
21170     p
21171     /[$]LINENO/=
21172   ' <$as_myself |
21173     sed '
21174       s/[$]LINENO.*/&-/
21175       t lineno
21176       b
21177       :lineno
21178       N
21179       :loop
21180       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21181       t loop
21182       s/-\n.*//
21183     ' >$as_me.lineno &&
21184   chmod +x "$as_me.lineno" ||
21185     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21186    { (exit 1); exit 1; }; }
21187
21188   # Don't try to exec as it changes $[0], causing all sort of problems
21189   # (the dirname of $[0] is not the place where we might find the
21190   # original and so on.  Autoconf is especially sensitive to this).
21191   . "./$as_me.lineno"
21192   # Exit status is that of the last command.
21193   exit
21194 }
21195
21196
21197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21198   as_dirname=dirname
21199 else
21200   as_dirname=false
21201 fi
21202
21203 ECHO_C= ECHO_N= ECHO_T=
21204 case `echo -n x` in
21205 -n*)
21206   case `echo 'x\c'` in
21207   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21208   *)   ECHO_C='\c';;
21209   esac;;
21210 *)
21211   ECHO_N='-n';;
21212 esac
21213
21214 if expr a : '\(a\)' >/dev/null 2>&1 &&
21215    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21216   as_expr=expr
21217 else
21218   as_expr=false
21219 fi
21220
21221 rm -f conf$$ conf$$.exe conf$$.file
21222 if test -d conf$$.dir; then
21223   rm -f conf$$.dir/conf$$.file
21224 else
21225   rm -f conf$$.dir
21226   mkdir conf$$.dir
21227 fi
21228 echo >conf$$.file
21229 if ln -s conf$$.file conf$$ 2>/dev/null; then
21230   as_ln_s='ln -s'
21231   # ... but there are two gotchas:
21232   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21233   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21234   # In both cases, we have to default to `cp -p'.
21235   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21236     as_ln_s='cp -p'
21237 elif ln conf$$.file conf$$ 2>/dev/null; then
21238   as_ln_s=ln
21239 else
21240   as_ln_s='cp -p'
21241 fi
21242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21243 rmdir conf$$.dir 2>/dev/null
21244
21245 if mkdir -p . 2>/dev/null; then
21246   as_mkdir_p=:
21247 else
21248   test -d ./-p && rmdir ./-p
21249   as_mkdir_p=false
21250 fi
21251
21252 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21253 # systems may use methods other than mode bits to determine executability.
21254 cat >conf$$.file <<_ASEOF
21255 #! /bin/sh
21256 exit 0
21257 _ASEOF
21258 chmod +x conf$$.file
21259 if test -x conf$$.file >/dev/null 2>&1; then
21260   as_executable_p="test -x"
21261 else
21262   as_executable_p=:
21263 fi
21264 rm -f conf$$.file
21265
21266 # Sed expression to map a string onto a valid CPP name.
21267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21268
21269 # Sed expression to map a string onto a valid variable name.
21270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21271
21272
21273 exec 6>&1
21274
21275 # Save the log message, to keep $[0] and so on meaningful, and to
21276 # report actual input values of CONFIG_FILES etc. instead of their
21277 # values after options handling.
21278 ac_log="
21279 This file was extended by llvm $as_me 2.9svn, which was
21280 generated by GNU Autoconf 2.60.  Invocation command line was
21281
21282   CONFIG_FILES    = $CONFIG_FILES
21283   CONFIG_HEADERS  = $CONFIG_HEADERS
21284   CONFIG_LINKS    = $CONFIG_LINKS
21285   CONFIG_COMMANDS = $CONFIG_COMMANDS
21286   $ $0 $@
21287
21288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21289 "
21290
21291 _ACEOF
21292
21293 cat >>$CONFIG_STATUS <<_ACEOF
21294 # Files that config.status was made for.
21295 config_files="$ac_config_files"
21296 config_headers="$ac_config_headers"
21297 config_commands="$ac_config_commands"
21298
21299 _ACEOF
21300
21301 cat >>$CONFIG_STATUS <<\_ACEOF
21302 ac_cs_usage="\
21303 \`$as_me' instantiates files from templates according to the
21304 current configuration.
21305
21306 Usage: $0 [OPTIONS] [FILE]...
21307
21308   -h, --help       print this help, then exit
21309   -V, --version    print version number, then exit
21310   -q, --quiet      do not print progress messages
21311   -d, --debug      don't remove temporary files
21312       --recheck    update $as_me by reconfiguring in the same conditions
21313   --file=FILE[:TEMPLATE]
21314                    instantiate the configuration file FILE
21315   --header=FILE[:TEMPLATE]
21316                    instantiate the configuration header FILE
21317
21318 Configuration files:
21319 $config_files
21320
21321 Configuration headers:
21322 $config_headers
21323
21324 Configuration commands:
21325 $config_commands
21326
21327 Report bugs to <bug-autoconf@gnu.org>."
21328
21329 _ACEOF
21330 cat >>$CONFIG_STATUS <<_ACEOF
21331 ac_cs_version="\\
21332 llvm config.status 2.9svn
21333 configured by $0, generated by GNU Autoconf 2.60,
21334   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21335
21336 Copyright (C) 2006 Free Software Foundation, Inc.
21337 This config.status script is free software; the Free Software Foundation
21338 gives unlimited permission to copy, distribute and modify it."
21339
21340 ac_pwd='$ac_pwd'
21341 srcdir='$srcdir'
21342 INSTALL='$INSTALL'
21343 _ACEOF
21344
21345 cat >>$CONFIG_STATUS <<\_ACEOF
21346 # If no file are specified by the user, then we need to provide default
21347 # value.  By we need to know if files were specified by the user.
21348 ac_need_defaults=:
21349 while test $# != 0
21350 do
21351   case $1 in
21352   --*=*)
21353     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21354     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21355     ac_shift=:
21356     ;;
21357   *)
21358     ac_option=$1
21359     ac_optarg=$2
21360     ac_shift=shift
21361     ;;
21362   esac
21363
21364   case $ac_option in
21365   # Handling of the options.
21366   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21367     ac_cs_recheck=: ;;
21368   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21369     echo "$ac_cs_version"; exit ;;
21370   --debug | --debu | --deb | --de | --d | -d )
21371     debug=: ;;
21372   --file | --fil | --fi | --f )
21373     $ac_shift
21374     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21375     ac_need_defaults=false;;
21376   --header | --heade | --head | --hea )
21377     $ac_shift
21378     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21379     ac_need_defaults=false;;
21380   --he | --h)
21381     # Conflict between --help and --header
21382     { echo "$as_me: error: ambiguous option: $1
21383 Try \`$0 --help' for more information." >&2
21384    { (exit 1); exit 1; }; };;
21385   --help | --hel | -h )
21386     echo "$ac_cs_usage"; exit ;;
21387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21389     ac_cs_silent=: ;;
21390
21391   # This is an error.
21392   -*) { echo "$as_me: error: unrecognized option: $1
21393 Try \`$0 --help' for more information." >&2
21394    { (exit 1); exit 1; }; } ;;
21395
21396   *) ac_config_targets="$ac_config_targets $1"
21397      ac_need_defaults=false ;;
21398
21399   esac
21400   shift
21401 done
21402
21403 ac_configure_extra_args=
21404
21405 if $ac_cs_silent; then
21406   exec 6>/dev/null
21407   ac_configure_extra_args="$ac_configure_extra_args --silent"
21408 fi
21409
21410 _ACEOF
21411 cat >>$CONFIG_STATUS <<_ACEOF
21412 if \$ac_cs_recheck; then
21413   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21414   CONFIG_SHELL=$SHELL
21415   export CONFIG_SHELL
21416   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21417 fi
21418
21419 _ACEOF
21420 cat >>$CONFIG_STATUS <<\_ACEOF
21421 exec 5>>config.log
21422 {
21423   echo
21424   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21425 ## Running $as_me. ##
21426 _ASBOX
21427   echo "$ac_log"
21428 } >&5
21429
21430 _ACEOF
21431 cat >>$CONFIG_STATUS <<_ACEOF
21432 #
21433 # INIT-COMMANDS
21434 #
21435 llvm_src="${srcdir}"
21436
21437 _ACEOF
21438
21439 cat >>$CONFIG_STATUS <<\_ACEOF
21440
21441 # Handling of arguments.
21442 for ac_config_target in $ac_config_targets
21443 do
21444   case $ac_config_target in
21445     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21446     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21447     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21448     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21449     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21450     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21451     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21452     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21453     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21454     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21455     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21456     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21457     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21458     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21459     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21460     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21461     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21462     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21463     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21464     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21465     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21466     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21467     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21468     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21469     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21470
21471   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21472 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21473    { (exit 1); exit 1; }; };;
21474   esac
21475 done
21476
21477
21478 # If the user did not use the arguments to specify the items to instantiate,
21479 # then the envvar interface is used.  Set only those that are not.
21480 # We use the long form for the default assignment because of an extremely
21481 # bizarre bug on SunOS 4.1.3.
21482 if $ac_need_defaults; then
21483   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21484   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21485   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21486 fi
21487
21488 # Have a temporary directory for convenience.  Make it in the build tree
21489 # simply because there is no reason against having it here, and in addition,
21490 # creating and moving files from /tmp can sometimes cause problems.
21491 # Hook for its removal unless debugging.
21492 # Note that there is a small window in which the directory will not be cleaned:
21493 # after its creation but before its name has been assigned to `$tmp'.
21494 $debug ||
21495 {
21496   tmp=
21497   trap 'exit_status=$?
21498   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21499 ' 0
21500   trap '{ (exit 1); exit 1; }' 1 2 13 15
21501 }
21502 # Create a (secure) tmp directory for tmp files.
21503
21504 {
21505   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21506   test -n "$tmp" && test -d "$tmp"
21507 }  ||
21508 {
21509   tmp=./conf$$-$RANDOM
21510   (umask 077 && mkdir "$tmp")
21511 } ||
21512 {
21513    echo "$me: cannot create a temporary directory in ." >&2
21514    { (exit 1); exit 1; }
21515 }
21516
21517 #
21518 # Set up the sed scripts for CONFIG_FILES section.
21519 #
21520
21521 # No need to generate the scripts if there are no CONFIG_FILES.
21522 # This happens for instance when ./config.status config.h
21523 if test -n "$CONFIG_FILES"; then
21524
21525 _ACEOF
21526
21527
21528
21529 ac_delim='%!_!# '
21530 for ac_last_try in false false false false false :; do
21531   cat >conf$$subs.sed <<_ACEOF
21532 SHELL!$SHELL$ac_delim
21533 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21534 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21535 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21536 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21537 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21538 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21539 exec_prefix!$exec_prefix$ac_delim
21540 prefix!$prefix$ac_delim
21541 program_transform_name!$program_transform_name$ac_delim
21542 bindir!$bindir$ac_delim
21543 sbindir!$sbindir$ac_delim
21544 libexecdir!$libexecdir$ac_delim
21545 datarootdir!$datarootdir$ac_delim
21546 datadir!$datadir$ac_delim
21547 sysconfdir!$sysconfdir$ac_delim
21548 sharedstatedir!$sharedstatedir$ac_delim
21549 localstatedir!$localstatedir$ac_delim
21550 includedir!$includedir$ac_delim
21551 oldincludedir!$oldincludedir$ac_delim
21552 docdir!$docdir$ac_delim
21553 infodir!$infodir$ac_delim
21554 htmldir!$htmldir$ac_delim
21555 dvidir!$dvidir$ac_delim
21556 pdfdir!$pdfdir$ac_delim
21557 psdir!$psdir$ac_delim
21558 libdir!$libdir$ac_delim
21559 localedir!$localedir$ac_delim
21560 mandir!$mandir$ac_delim
21561 DEFS!$DEFS$ac_delim
21562 ECHO_C!$ECHO_C$ac_delim
21563 ECHO_N!$ECHO_N$ac_delim
21564 ECHO_T!$ECHO_T$ac_delim
21565 LIBS!$LIBS$ac_delim
21566 build_alias!$build_alias$ac_delim
21567 host_alias!$host_alias$ac_delim
21568 target_alias!$target_alias$ac_delim
21569 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21570 subdirs!$subdirs$ac_delim
21571 build!$build$ac_delim
21572 build_cpu!$build_cpu$ac_delim
21573 build_vendor!$build_vendor$ac_delim
21574 build_os!$build_os$ac_delim
21575 host!$host$ac_delim
21576 host_cpu!$host_cpu$ac_delim
21577 host_vendor!$host_vendor$ac_delim
21578 host_os!$host_os$ac_delim
21579 target!$target$ac_delim
21580 target_cpu!$target_cpu$ac_delim
21581 target_vendor!$target_vendor$ac_delim
21582 target_os!$target_os$ac_delim
21583 OS!$OS$ac_delim
21584 HOST_OS!$HOST_OS$ac_delim
21585 TARGET_OS!$TARGET_OS$ac_delim
21586 LINKALL!$LINKALL$ac_delim
21587 NOLINKALL!$NOLINKALL$ac_delim
21588 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21589 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21590 ARCH!$ARCH$ac_delim
21591 ENDIAN!$ENDIAN$ac_delim
21592 CC!$CC$ac_delim
21593 CFLAGS!$CFLAGS$ac_delim
21594 LDFLAGS!$LDFLAGS$ac_delim
21595 CPPFLAGS!$CPPFLAGS$ac_delim
21596 ac_ct_CC!$ac_ct_CC$ac_delim
21597 EXEEXT!$EXEEXT$ac_delim
21598 OBJEXT!$OBJEXT$ac_delim
21599 CPP!$CPP$ac_delim
21600 GREP!$GREP$ac_delim
21601 EGREP!$EGREP$ac_delim
21602 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21603 BUILD_CC!$BUILD_CC$ac_delim
21604 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21605 BUILD_CXX!$BUILD_CXX$ac_delim
21606 CVSBUILD!$CVSBUILD$ac_delim
21607 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21608 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21609 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21610 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21611 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21612 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21613 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21614 JIT!$JIT$ac_delim
21615 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21616 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21617 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21618 ENABLE_PIC!$ENABLE_PIC$ac_delim
21619 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21620 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21621 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21622 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21623 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21624 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21625 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21626 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21627 CLANGPATH!$CLANGPATH$ac_delim
21628 CLANGXXPATH!$CLANGXXPATH$ac_delim
21629 _ACEOF
21630
21631   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21632     break
21633   elif $ac_last_try; then
21634     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21636    { (exit 1); exit 1; }; }
21637   else
21638     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21639   fi
21640 done
21641
21642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21643 if test -n "$ac_eof"; then
21644   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21645   ac_eof=`expr $ac_eof + 1`
21646 fi
21647
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21651 _ACEOF
21652 sed '
21653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21654 s/^/s,@/; s/!/@,|#_!!_#|/
21655 :n
21656 t n
21657 s/'"$ac_delim"'$/,g/; t
21658 s/$/\\/; p
21659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21660 ' >>$CONFIG_STATUS <conf$$subs.sed
21661 rm -f conf$$subs.sed
21662 cat >>$CONFIG_STATUS <<_ACEOF
21663 CEOF$ac_eof
21664 _ACEOF
21665
21666
21667 ac_delim='%!_!# '
21668 for ac_last_try in false false false false false :; do
21669   cat >conf$$subs.sed <<_ACEOF
21670 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21671 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21672 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21673 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21674 CXX!$CXX$ac_delim
21675 CXXFLAGS!$CXXFLAGS$ac_delim
21676 ac_ct_CXX!$ac_ct_CXX$ac_delim
21677 NM!$NM$ac_delim
21678 ifGNUmake!$ifGNUmake$ac_delim
21679 LN_S!$LN_S$ac_delim
21680 CMP!$CMP$ac_delim
21681 CP!$CP$ac_delim
21682 DATE!$DATE$ac_delim
21683 FIND!$FIND$ac_delim
21684 MKDIR!$MKDIR$ac_delim
21685 MV!$MV$ac_delim
21686 RANLIB!$RANLIB$ac_delim
21687 AR!$AR$ac_delim
21688 RM!$RM$ac_delim
21689 SED!$SED$ac_delim
21690 TAR!$TAR$ac_delim
21691 BINPWD!$BINPWD$ac_delim
21692 GRAPHVIZ!$GRAPHVIZ$ac_delim
21693 DOT!$DOT$ac_delim
21694 FDP!$FDP$ac_delim
21695 NEATO!$NEATO$ac_delim
21696 TWOPI!$TWOPI$ac_delim
21697 CIRCO!$CIRCO$ac_delim
21698 GV!$GV$ac_delim
21699 DOTTY!$DOTTY$ac_delim
21700 XDOT_PY!$XDOT_PY$ac_delim
21701 PERL!$PERL$ac_delim
21702 HAVE_PERL!$HAVE_PERL$ac_delim
21703 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21704 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21705 INSTALL_DATA!$INSTALL_DATA$ac_delim
21706 BZIP2!$BZIP2$ac_delim
21707 CAT!$CAT$ac_delim
21708 DOXYGEN!$DOXYGEN$ac_delim
21709 GROFF!$GROFF$ac_delim
21710 GZIP!$GZIP$ac_delim
21711 POD2HTML!$POD2HTML$ac_delim
21712 POD2MAN!$POD2MAN$ac_delim
21713 PDFROFF!$PDFROFF$ac_delim
21714 RUNTEST!$RUNTEST$ac_delim
21715 TCLSH!$TCLSH$ac_delim
21716 ZIP!$ZIP$ac_delim
21717 OCAMLC!$OCAMLC$ac_delim
21718 OCAMLOPT!$OCAMLOPT$ac_delim
21719 OCAMLDEP!$OCAMLDEP$ac_delim
21720 OCAMLDOC!$OCAMLDOC$ac_delim
21721 GAS!$GAS$ac_delim
21722 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21723 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21724 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21725 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21726 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21727 LIBADD_DL!$LIBADD_DL$ac_delim
21728 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21729 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21730 LLVMGCC!$LLVMGCC$ac_delim
21731 LLVMGXX!$LLVMGXX$ac_delim
21732 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21733 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21734 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21735 USE_UDIS86!$USE_UDIS86$ac_delim
21736 USE_OPROFILE!$USE_OPROFILE$ac_delim
21737 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21738 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21739 MMAP_FILE!$MMAP_FILE$ac_delim
21740 LLVMCC1!$LLVMCC1$ac_delim
21741 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21742 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21743 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21744 SHLIBEXT!$SHLIBEXT$ac_delim
21745 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21746 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21747 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21748 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21749 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21750 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21751 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21752 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21753 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21754 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21755 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21756 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21757 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21758 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21759 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21760 RPATH!$RPATH$ac_delim
21761 RDYNAMIC!$RDYNAMIC$ac_delim
21762 LIBOBJS!$LIBOBJS$ac_delim
21763 LTLIBOBJS!$LTLIBOBJS$ac_delim
21764 _ACEOF
21765
21766   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21767     break
21768   elif $ac_last_try; then
21769     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21770 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21771    { (exit 1); exit 1; }; }
21772   else
21773     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21774   fi
21775 done
21776
21777 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21778 if test -n "$ac_eof"; then
21779   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21780   ac_eof=`expr $ac_eof + 1`
21781 fi
21782
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21786 _ACEOF
21787 sed '
21788 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21789 s/^/s,@/; s/!/@,|#_!!_#|/
21790 :n
21791 t n
21792 s/'"$ac_delim"'$/,g/; t
21793 s/$/\\/; p
21794 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21795 ' >>$CONFIG_STATUS <conf$$subs.sed
21796 rm -f conf$$subs.sed
21797 cat >>$CONFIG_STATUS <<_ACEOF
21798 :end
21799 s/|#_!!_#|//g
21800 CEOF$ac_eof
21801 _ACEOF
21802
21803
21804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21806 # trailing colons and then remove the whole line if VPATH becomes empty
21807 # (actually we leave an empty line to preserve line numbers).
21808 if test "x$srcdir" = x.; then
21809   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21810 s/:*\$(srcdir):*/:/
21811 s/:*\${srcdir}:*/:/
21812 s/:*@srcdir@:*/:/
21813 s/^\([^=]*=[     ]*\):*/\1/
21814 s/:*$//
21815 s/^[^=]*=[       ]*$//
21816 }'
21817 fi
21818
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21820 fi # test -n "$CONFIG_FILES"
21821
21822
21823 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21824 do
21825   case $ac_tag in
21826   :[FHLC]) ac_mode=$ac_tag; continue;;
21827   esac
21828   case $ac_mode$ac_tag in
21829   :[FHL]*:*);;
21830   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21831 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21832    { (exit 1); exit 1; }; };;
21833   :[FH]-) ac_tag=-:-;;
21834   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21835   esac
21836   ac_save_IFS=$IFS
21837   IFS=:
21838   set x $ac_tag
21839   IFS=$ac_save_IFS
21840   shift
21841   ac_file=$1
21842   shift
21843
21844   case $ac_mode in
21845   :L) ac_source=$1;;
21846   :[FH])
21847     ac_file_inputs=
21848     for ac_f
21849     do
21850       case $ac_f in
21851       -) ac_f="$tmp/stdin";;
21852       *) # Look for the file first in the build tree, then in the source tree
21853          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21854          # because $ac_f cannot contain `:'.
21855          test -f "$ac_f" ||
21856            case $ac_f in
21857            [\\/$]*) false;;
21858            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21859            esac ||
21860            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21861 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21862    { (exit 1); exit 1; }; };;
21863       esac
21864       ac_file_inputs="$ac_file_inputs $ac_f"
21865     done
21866
21867     # Let's still pretend it is `configure' which instantiates (i.e., don't
21868     # use $as_me), people would be surprised to read:
21869     #    /* config.h.  Generated by config.status.  */
21870     configure_input="Generated from "`IFS=:
21871           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21872     if test x"$ac_file" != x-; then
21873       configure_input="$ac_file.  $configure_input"
21874       { echo "$as_me:$LINENO: creating $ac_file" >&5
21875 echo "$as_me: creating $ac_file" >&6;}
21876     fi
21877
21878     case $ac_tag in
21879     *:-:* | *:-) cat >"$tmp/stdin";;
21880     esac
21881     ;;
21882   esac
21883
21884   ac_dir=`$as_dirname -- "$ac_file" ||
21885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886          X"$ac_file" : 'X\(//\)[^/]' \| \
21887          X"$ac_file" : 'X\(//\)$' \| \
21888          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21889 echo X"$ac_file" |
21890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891             s//\1/
21892             q
21893           }
21894           /^X\(\/\/\)[^/].*/{
21895             s//\1/
21896             q
21897           }
21898           /^X\(\/\/\)$/{
21899             s//\1/
21900             q
21901           }
21902           /^X\(\/\).*/{
21903             s//\1/
21904             q
21905           }
21906           s/.*/./; q'`
21907   { as_dir="$ac_dir"
21908   case $as_dir in #(
21909   -*) as_dir=./$as_dir;;
21910   esac
21911   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21912     as_dirs=
21913     while :; do
21914       case $as_dir in #(
21915       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21916       *) as_qdir=$as_dir;;
21917       esac
21918       as_dirs="'$as_qdir' $as_dirs"
21919       as_dir=`$as_dirname -- "$as_dir" ||
21920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21921          X"$as_dir" : 'X\(//\)[^/]' \| \
21922          X"$as_dir" : 'X\(//\)$' \| \
21923          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21924 echo X"$as_dir" |
21925     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21926             s//\1/
21927             q
21928           }
21929           /^X\(\/\/\)[^/].*/{
21930             s//\1/
21931             q
21932           }
21933           /^X\(\/\/\)$/{
21934             s//\1/
21935             q
21936           }
21937           /^X\(\/\).*/{
21938             s//\1/
21939             q
21940           }
21941           s/.*/./; q'`
21942       test -d "$as_dir" && break
21943     done
21944     test -z "$as_dirs" || eval "mkdir $as_dirs"
21945   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21946 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21947    { (exit 1); exit 1; }; }; }
21948   ac_builddir=.
21949
21950 case "$ac_dir" in
21951 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21952 *)
21953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21954   # A ".." for each directory in $ac_dir_suffix.
21955   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21956   case $ac_top_builddir_sub in
21957   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21958   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21959   esac ;;
21960 esac
21961 ac_abs_top_builddir=$ac_pwd
21962 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21963 # for backward compatibility:
21964 ac_top_builddir=$ac_top_build_prefix
21965
21966 case $srcdir in
21967   .)  # We are building in place.
21968     ac_srcdir=.
21969     ac_top_srcdir=$ac_top_builddir_sub
21970     ac_abs_top_srcdir=$ac_pwd ;;
21971   [\\/]* | ?:[\\/]* )  # Absolute name.
21972     ac_srcdir=$srcdir$ac_dir_suffix;
21973     ac_top_srcdir=$srcdir
21974     ac_abs_top_srcdir=$srcdir ;;
21975   *) # Relative name.
21976     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21977     ac_top_srcdir=$ac_top_build_prefix$srcdir
21978     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21979 esac
21980 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21981
21982
21983   case $ac_mode in
21984   :F)
21985   #
21986   # CONFIG_FILE
21987   #
21988
21989   case $INSTALL in
21990   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21991   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21992   esac
21993 _ACEOF
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF
21996 # If the template does not know about datarootdir, expand it.
21997 # FIXME: This hack should be removed a few years after 2.60.
21998 ac_datarootdir_hack=; ac_datarootdir_seen=
21999
22000 case `sed -n '/datarootdir/ {
22001   p
22002   q
22003 }
22004 /@datadir@/p
22005 /@docdir@/p
22006 /@infodir@/p
22007 /@localedir@/p
22008 /@mandir@/p
22009 ' $ac_file_inputs` in
22010 *datarootdir*) ac_datarootdir_seen=yes;;
22011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22012   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22013 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22014 _ACEOF
22015 cat >>$CONFIG_STATUS <<_ACEOF
22016   ac_datarootdir_hack='
22017   s&@datadir@&$datadir&g
22018   s&@docdir@&$docdir&g
22019   s&@infodir@&$infodir&g
22020   s&@localedir@&$localedir&g
22021   s&@mandir@&$mandir&g
22022     s&\\\${datarootdir}&$datarootdir&g' ;;
22023 esac
22024 _ACEOF
22025
22026 # Neutralize VPATH when `$srcdir' = `.'.
22027 # Shell code in configure.ac might set extrasub.
22028 # FIXME: do we really want to maintain this feature?
22029 cat >>$CONFIG_STATUS <<_ACEOF
22030   sed "$ac_vpsub
22031 $extrasub
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 :t
22035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22036 s&@configure_input@&$configure_input&;t t
22037 s&@top_builddir@&$ac_top_builddir_sub&;t t
22038 s&@srcdir@&$ac_srcdir&;t t
22039 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22040 s&@top_srcdir@&$ac_top_srcdir&;t t
22041 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22042 s&@builddir@&$ac_builddir&;t t
22043 s&@abs_builddir@&$ac_abs_builddir&;t t
22044 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22045 s&@INSTALL@&$ac_INSTALL&;t t
22046 $ac_datarootdir_hack
22047 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22048
22049 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22050   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22051   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22052   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22053 which seems to be undefined.  Please make sure it is defined." >&5
22054 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22055 which seems to be undefined.  Please make sure it is defined." >&2;}
22056
22057   rm -f "$tmp/stdin"
22058   case $ac_file in
22059   -) cat "$tmp/out"; rm -f "$tmp/out";;
22060   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22061   esac
22062  ;;
22063   :H)
22064   #
22065   # CONFIG_HEADER
22066   #
22067 _ACEOF
22068
22069 # Transform confdefs.h into a sed script `conftest.defines', that
22070 # substitutes the proper values into config.h.in to produce config.h.
22071 rm -f conftest.defines conftest.tail
22072 # First, append a space to every undef/define line, to ease matching.
22073 echo 's/$/ /' >conftest.defines
22074 # Then, protect against being on the right side of a sed subst, or in
22075 # an unquoted here document, in config.status.  If some macros were
22076 # called several times there might be several #defines for the same
22077 # symbol, which is useless.  But do not sort them, since the last
22078 # AC_DEFINE must be honored.
22079 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22080 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22081 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22082 # PARAMS is the parameter list in the macro definition--in most cases, it's
22083 # just an empty string.
22084 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22085 ac_dB='\\)[      (].*,\\1define\\2'
22086 ac_dC=' '
22087 ac_dD=' ,'
22088
22089 uniq confdefs.h |
22090   sed -n '
22091         t rset
22092         :rset
22093         s/^[     ]*#[    ]*define[       ][      ]*//
22094         t ok
22095         d
22096         :ok
22097         s/[\\&,]/\\&/g
22098         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22099         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22100   ' >>conftest.defines
22101
22102 # Remove the space that was appended to ease matching.
22103 # Then replace #undef with comments.  This is necessary, for
22104 # example, in the case of _POSIX_SOURCE, which is predefined and required
22105 # on some systems where configure will not decide to define it.
22106 # (The regexp can be short, since the line contains either #define or #undef.)
22107 echo 's/ $//
22108 s,^[     #]*u.*,/* & */,' >>conftest.defines
22109
22110 # Break up conftest.defines:
22111 ac_max_sed_lines=50
22112
22113 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22114 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22115 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22116 # et cetera.
22117 ac_in='$ac_file_inputs'
22118 ac_out='"$tmp/out1"'
22119 ac_nxt='"$tmp/out2"'
22120
22121 while :
22122 do
22123   # Write a here document:
22124     cat >>$CONFIG_STATUS <<_ACEOF
22125     # First, check the format of the line:
22126     cat >"\$tmp/defines.sed" <<\\CEOF
22127 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22128 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22129 b
22130 :def
22131 _ACEOF
22132   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22133   echo 'CEOF
22134     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22135   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22136   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22137   grep . conftest.tail >/dev/null || break
22138   rm -f conftest.defines
22139   mv conftest.tail conftest.defines
22140 done
22141 rm -f conftest.defines conftest.tail
22142
22143 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22144 cat >>$CONFIG_STATUS <<\_ACEOF
22145   if test x"$ac_file" != x-; then
22146     echo "/* $configure_input  */" >"$tmp/config.h"
22147     cat "$ac_result" >>"$tmp/config.h"
22148     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22149       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22150 echo "$as_me: $ac_file is unchanged" >&6;}
22151     else
22152       rm -f $ac_file
22153       mv "$tmp/config.h" $ac_file
22154     fi
22155   else
22156     echo "/* $configure_input  */"
22157     cat "$ac_result"
22158   fi
22159   rm -f "$tmp/out12"
22160  ;;
22161
22162   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22163 echo "$as_me: executing $ac_file commands" >&6;}
22164  ;;
22165   esac
22166
22167
22168   case $ac_file$ac_mode in
22169     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22170    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22171     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22172    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22173     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22174    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22175     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22176    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22177     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22178    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22179     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22180    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22181     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22182    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22183     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22184    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22185     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22186    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22187     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22188    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22189     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22190    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22191     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22192    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22193     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22194    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22195
22196   esac
22197 done # for ac_tag
22198
22199
22200 { (exit 0); exit 0; }
22201 _ACEOF
22202 chmod +x $CONFIG_STATUS
22203 ac_clean_files=$ac_clean_files_save
22204
22205
22206 # configure is writing to config.log, and then calls config.status.
22207 # config.status does its own redirection, appending to config.log.
22208 # Unfortunately, on DOS this fails, as config.log is still kept open
22209 # by configure, so config.status won't be able to write to it; its
22210 # output is simply discarded.  So we exec the FD to /dev/null,
22211 # effectively closing config.log, so it can be properly (re)opened and
22212 # appended to by config.status.  When coming back to configure, we
22213 # need to make the FD available again.
22214 if test "$no_create" != yes; then
22215   ac_cs_success=:
22216   ac_config_status_args=
22217   test "$silent" = yes &&
22218     ac_config_status_args="$ac_config_status_args --quiet"
22219   exec 5>/dev/null
22220   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22221   exec 5>>config.log
22222   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22223   # would make configure fail if this is the last instruction.
22224   $ac_cs_success || { (exit 1); exit 1; }
22225 fi
22226
22227 #
22228 # CONFIG_SUBDIRS section.
22229 #
22230 if test "$no_recursion" != yes; then
22231
22232   # Remove --cache-file and --srcdir arguments so they do not pile up.
22233   ac_sub_configure_args=
22234   ac_prev=
22235   eval "set x $ac_configure_args"
22236   shift
22237   for ac_arg
22238   do
22239     if test -n "$ac_prev"; then
22240       ac_prev=
22241       continue
22242     fi
22243     case $ac_arg in
22244     -cache-file | --cache-file | --cache-fil | --cache-fi \
22245     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22246       ac_prev=cache_file ;;
22247     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22248     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22249     | --c=*)
22250       ;;
22251     --config-cache | -C)
22252       ;;
22253     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22254       ac_prev=srcdir ;;
22255     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22256       ;;
22257     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22258       ac_prev=prefix ;;
22259     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22260       ;;
22261     *)
22262       case $ac_arg in
22263       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22264       esac
22265       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22266     esac
22267   done
22268
22269   # Always prepend --prefix to ensure using the same prefix
22270   # in subdir configurations.
22271   ac_arg="--prefix=$prefix"
22272   case $ac_arg in
22273   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22274   esac
22275   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22276
22277   ac_popdir=`pwd`
22278   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22279
22280     # Do not complain, so a configure script can configure whichever
22281     # parts of a large source tree are present.
22282     test -d "$srcdir/$ac_dir" || continue
22283
22284     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22285     echo "$as_me:$LINENO: $ac_msg" >&5
22286     echo "$ac_msg" >&6
22287     { as_dir="$ac_dir"
22288   case $as_dir in #(
22289   -*) as_dir=./$as_dir;;
22290   esac
22291   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22292     as_dirs=
22293     while :; do
22294       case $as_dir in #(
22295       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22296       *) as_qdir=$as_dir;;
22297       esac
22298       as_dirs="'$as_qdir' $as_dirs"
22299       as_dir=`$as_dirname -- "$as_dir" ||
22300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22301          X"$as_dir" : 'X\(//\)[^/]' \| \
22302          X"$as_dir" : 'X\(//\)$' \| \
22303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22304 echo X"$as_dir" |
22305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22306             s//\1/
22307             q
22308           }
22309           /^X\(\/\/\)[^/].*/{
22310             s//\1/
22311             q
22312           }
22313           /^X\(\/\/\)$/{
22314             s//\1/
22315             q
22316           }
22317           /^X\(\/\).*/{
22318             s//\1/
22319             q
22320           }
22321           s/.*/./; q'`
22322       test -d "$as_dir" && break
22323     done
22324     test -z "$as_dirs" || eval "mkdir $as_dirs"
22325   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22327    { (exit 1); exit 1; }; }; }
22328     ac_builddir=.
22329
22330 case "$ac_dir" in
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22332 *)
22333   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22334   # A ".." for each directory in $ac_dir_suffix.
22335   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22336   case $ac_top_builddir_sub in
22337   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22339   esac ;;
22340 esac
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22345
22346 case $srcdir in
22347   .)  # We are building in place.
22348     ac_srcdir=.
22349     ac_top_srcdir=$ac_top_builddir_sub
22350     ac_abs_top_srcdir=$ac_pwd ;;
22351   [\\/]* | ?:[\\/]* )  # Absolute name.
22352     ac_srcdir=$srcdir$ac_dir_suffix;
22353     ac_top_srcdir=$srcdir
22354     ac_abs_top_srcdir=$srcdir ;;
22355   *) # Relative name.
22356     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357     ac_top_srcdir=$ac_top_build_prefix$srcdir
22358     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22359 esac
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22361
22362
22363     cd "$ac_dir"
22364
22365     # Check for guested configure; otherwise get Cygnus style configure.
22366     if test -f "$ac_srcdir/configure.gnu"; then
22367       ac_sub_configure=$ac_srcdir/configure.gnu
22368     elif test -f "$ac_srcdir/configure"; then
22369       ac_sub_configure=$ac_srcdir/configure
22370     elif test -f "$ac_srcdir/configure.in"; then
22371       # This should be Cygnus configure.
22372       ac_sub_configure=$ac_aux_dir/configure
22373     else
22374       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22376       ac_sub_configure=
22377     fi
22378
22379     # The recursion is here.
22380     if test -n "$ac_sub_configure"; then
22381       # Make the cache file name correct relative to the subdirectory.
22382       case $cache_file in
22383       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22384       *) # Relative name.
22385         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22386       esac
22387
22388       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22389 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22390       # The eval makes quoting arguments work.
22391       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22392            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22393         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22394 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22395    { (exit 1); exit 1; }; }
22396     fi
22397
22398     cd "$ac_popdir"
22399   done
22400 fi
22401