Adding the MicroBlaze backend.
[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.7svn.
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-2009 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.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
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 TARGETS_TO_BUILD
694 LLVM_ENUM_TARGETS
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
698 ENABLE_CBE_PRINTF_A
699 CLANGPATH
700 CLANGXXPATH
701 ENABLE_BUILT_CLANG
702 OPTIMIZE_OPTION
703 EXTRA_OPTIONS
704 BINUTILS_INCDIR
705 ENABLE_LLVMC_DYNAMIC
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
707 CXX
708 CXXFLAGS
709 ac_ct_CXX
710 NM
711 ifGNUmake
712 LN_S
713 CMP
714 CP
715 DATE
716 FIND
717 MKDIR
718 MV
719 RANLIB
720 AR
721 RM
722 SED
723 TAR
724 BINPWD
725 GRAPHVIZ
726 DOT
727 FDP
728 NEATO
729 TWOPI
730 CIRCO
731 GV
732 DOTTY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 DOXYGEN
740 GROFF
741 GZIP
742 POD2HTML
743 POD2MAN
744 RUNTEST
745 TCLSH
746 ZIP
747 OCAMLC
748 OCAMLOPT
749 OCAMLDEP
750 OCAMLDOC
751 GAS
752 INSTALL_LTDL_TRUE
753 INSTALL_LTDL_FALSE
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
756 LIBADD_DL
757 LLVMGCCCOMMAND
758 LLVMGXXCOMMAND
759 LLVMGCC
760 LLVMGXX
761 LLVMCC_OPTION
762 NO_VARIADIC_MACROS
763 NO_MISSING_FIELD_INITIALIZERS
764 USE_UDIS86
765 USE_OPROFILE
766 HAVE_PTHREAD
767 HUGE_VAL_SANITY
768 MMAP_FILE
769 LLVMCC1
770 LLVMCC1PLUS
771 LLVMGCCDIR
772 LLVMGCC_LANGS
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_LIBDIR
778 LLVM_DATADIR
779 LLVM_DOCSDIR
780 LLVM_ETCDIR
781 LLVM_INCLUDEDIR
782 LLVM_INFODIR
783 LLVM_MANDIR
784 LLVM_CONFIGTIME
785 BINDINGS_TO_BUILD
786 ALL_BINDINGS
787 OCAML_LIBDIR
788 ENABLE_VISIBILITY_INLINES_HIDDEN
789 RPATH
790 RDYNAMIC
791 LIBOBJS
792 LTLIBOBJS'
793 ac_subst_files=''
794       ac_precious_vars='build_alias
795 host_alias
796 target_alias
797 CC
798 CFLAGS
799 LDFLAGS
800 CPPFLAGS
801 CPP
802 CXX
803 CXXFLAGS
804 CCC'
805 ac_subdirs_all='projects/sample
806 projects/privbracket
807 projects/llvm-stacker
808 projects/llvm-test
809 projects/test-suite
810 projects/llvm-reopt
811 projects/llvm-gcc
812 projects/llvm-java
813 projects/llvm-tv
814 projects/llvm-poolalloc
815 projects/poolalloc
816 projects/llvm-kernel'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of llvm 2.7svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-optimized      Compile with optimizations enabled (default is NO)
1392   --enable-profiling      Compile with profiling enabled (default is NO)
1393   --enable-assertions     Compile with assertion checks enabled (default is
1394                           YES)
1395   --enable-expensive-checks
1396                           Compile with expensive debug checks enabled (default
1397                           is NO)
1398   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1399                           NO)
1400   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1401                           optimization is on and YES if it's off)
1402   --enable-jit            Enable Just In Time Compiling (default is YES)
1403   --enable-doxygen        Build doxygen documentation (default is NO)
1404   --enable-threads        Use threads if available (default is YES)
1405   --enable-pic            Build LLVM with Position Independent Code (default
1406                           is YES)
1407   --enable-shared         Link LLVM tools shared (default is NO)
1408   --enable-targets        Build specific host targets: all or
1409                           target1,target2,... Valid targets are: host, x86,
1410                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1411                           pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1412                           and cpp (default=all)
1413   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1414                           %a (default is YES)
1415   --enable-bindings       Build specific language bindings:
1416                           all,auto,none,{binding-name} (default=auto)
1417   --enable-libffi         Check for the presence of libffi (default is NO)
1418   --enable-llvmc-dynamic  Link LLVMC dynamically (default is NO, unless on
1419                           Win32)
1420   --enable-llvmc-dynamic-plugins
1421                           Enable dynamic LLVMC plugins (default is YES)
1422   --enable-ltdl-install   install libltdl
1423
1424 Optional Packages:
1425   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1428                           searches PATH)
1429   --with-llvmgcc          Specify location of llvm-gcc driver (default
1430                           searches PATH)
1431   --with-llvmgxx          Specify location of llvm-g++ driver (default
1432                           searches PATH)
1433   --with-clang            Specify location of clang compiler (default is
1434                           --with-built-clang)
1435   --with-built-clang      Use the compiled Clang as the LLVM compiler
1436                           (default=check)
1437   --with-optimize-option  Select the compiler options to use for optimized
1438                           builds
1439   --with-extra-options    Specify additional options to compile LLVM with
1440   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1441                           is stdlib)
1442   --with-c-include-dirs   Colon separated list of directories clang will
1443                           search for headers
1444   --with-cxx-include-root Directory with the libstdc++ headers.
1445   --with-cxx-include-arch Architecture of the libstdc++ headers.
1446   --with-cxx-include-32bit-dir
1447                           32 bit multilib dir.
1448   --with-cxx-include-64bit-dir
1449                           64 bit multilib directory.
1450   --with-binutils-include Specify path to binutils/include/ containing
1451                           plugin-api.h file for gold plugin.
1452   --with-tclinclude       directory where tcl headers are
1453   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1454                           clang, or none; default=check)
1455   --with-udis86=<path>    Use udis86 external x86 disassembler library
1456   --with-oprofile=<prefix>
1457                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1458
1459 Some influential environment variables:
1460   CC          C compiler command
1461   CFLAGS      C compiler flags
1462   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1463               nonstandard directory <lib dir>
1464   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465               you have headers in a nonstandard directory <include dir>
1466   CPP         C preprocessor
1467   CXX         C++ compiler command
1468   CXXFLAGS    C++ compiler flags
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <llvmbugs@cs.uiuc.edu>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479   # If there are subdirs, report their specific --help.
1480   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481     test -d "$ac_dir" || continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 llvm configure 2.7svn
1535 generated by GNU Autoconf 2.60
1536
1537 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1538 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541
1542 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1543 _ACEOF
1544   exit
1545 fi
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1549
1550 It was created by llvm $as_me 2.7svn, which was
1551 generated by GNU Autoconf 2.60.  Invocation command line was
1552
1553   $ $0 $@
1554
1555 _ACEOF
1556 exec 5>>config.log
1557 {
1558 cat <<_ASUNAME
1559 ## --------- ##
1560 ## Platform. ##
1561 ## --------- ##
1562
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1571
1572 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1573 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1576 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1577 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1578 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1579
1580 _ASUNAME
1581
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   echo "PATH: $as_dir"
1588 done
1589 IFS=$as_save_IFS
1590
1591 } >&5
1592
1593 cat >&5 <<_ACEOF
1594
1595
1596 ## ----------- ##
1597 ## Core tests. ##
1598 ## ----------- ##
1599
1600 _ACEOF
1601
1602
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_configure_args=
1609 ac_configure_args0=
1610 ac_configure_args1=
1611 ac_must_keep_next=false
1612 for ac_pass in 1 2
1613 do
1614   for ac_arg
1615   do
1616     case $ac_arg in
1617     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619     | -silent | --silent | --silen | --sile | --sil)
1620       continue ;;
1621     *\'*)
1622       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1623     esac
1624     case $ac_pass in
1625     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626     2)
1627       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628       if test $ac_must_keep_next = true; then
1629         ac_must_keep_next=false # Got value, back to normal.
1630       else
1631         case $ac_arg in
1632           *=* | --config-cache | -C | -disable-* | --disable-* \
1633           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635           | -with-* | --with-* | -without-* | --without-* | --x)
1636             case "$ac_configure_args0 " in
1637               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1638             esac
1639             ;;
1640           -* ) ac_must_keep_next=true ;;
1641         esac
1642       fi
1643       ac_configure_args="$ac_configure_args '$ac_arg'"
1644       ;;
1645     esac
1646   done
1647 done
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log.  We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657   # Save into config.log some information that might help in debugging.
1658   {
1659     echo
1660
1661     cat <<\_ASBOX
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1665 _ASBOX
1666     echo
1667     # The following way of writing the cache mishandles newlines in values,
1668 (
1669   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670     eval ac_val=\$$ac_var
1671     case $ac_val in #(
1672     *${as_nl}*)
1673       case $ac_var in #(
1674       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1675 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1676       esac
1677       case $ac_var in #(
1678       _ | IFS | as_nl) ;; #(
1679       *) $as_unset $ac_var ;;
1680       esac ;;
1681     esac
1682   done
1683   (set) 2>&1 |
1684     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1685     *${as_nl}ac_space=\ *)
1686       sed -n \
1687         "s/'\''/'\''\\\\'\'''\''/g;
1688           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1689       ;; #(
1690     *)
1691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1692       ;;
1693     esac |
1694     sort
1695 )
1696     echo
1697
1698     cat <<\_ASBOX
1699 ## ----------------- ##
1700 ## Output variables. ##
1701 ## ----------------- ##
1702 _ASBOX
1703     echo
1704     for ac_var in $ac_subst_vars
1705     do
1706       eval ac_val=\$$ac_var
1707       case $ac_val in
1708       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709       esac
1710       echo "$ac_var='\''$ac_val'\''"
1711     done | sort
1712     echo
1713
1714     if test -n "$ac_subst_files"; then
1715       cat <<\_ASBOX
1716 ## ------------------- ##
1717 ## File substitutions. ##
1718 ## ------------------- ##
1719 _ASBOX
1720       echo
1721       for ac_var in $ac_subst_files
1722       do
1723         eval ac_val=\$$ac_var
1724         case $ac_val in
1725         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726         esac
1727         echo "$ac_var='\''$ac_val'\''"
1728       done | sort
1729       echo
1730     fi
1731
1732     if test -s confdefs.h; then
1733       cat <<\_ASBOX
1734 ## ----------- ##
1735 ## confdefs.h. ##
1736 ## ----------- ##
1737 _ASBOX
1738       echo
1739       cat confdefs.h
1740       echo
1741     fi
1742     test "$ac_signal" != 0 &&
1743       echo "$as_me: caught signal $ac_signal"
1744     echo "$as_me: exit $exit_status"
1745   } >&5
1746   rm -f core *.core core.conftest.* &&
1747     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1748     exit $exit_status
1749 ' 0
1750 for ac_signal in 1 2 13 15; do
1751   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 done
1753 ac_signal=0
1754
1755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1756 rm -f -r conftest* confdefs.h
1757
1758 # Predefined preprocessor variables.
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 _ACEOF
1763
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 _ACEOF
1768
1769
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 _ACEOF
1773
1774
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 _ACEOF
1778
1779
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 _ACEOF
1783
1784
1785 # Let the site file select an alternate cache file if it wants to.
1786 # Prefer explicitly selected file to automatically selected ones.
1787 if test -n "$CONFIG_SITE"; then
1788   set x "$CONFIG_SITE"
1789 elif test "x$prefix" != xNONE; then
1790   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 else
1792   set x "$ac_default_prefix/share/config.site" \
1793         "$ac_default_prefix/etc/config.site"
1794 fi
1795 shift
1796 for ac_site_file
1797 do
1798   if test -r "$ac_site_file"; then
1799     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1800 echo "$as_me: loading site script $ac_site_file" >&6;}
1801     sed 's/^/| /' "$ac_site_file" >&5
1802     . "$ac_site_file"
1803   fi
1804 done
1805
1806 if test -r "$cache_file"; then
1807   # Some versions of bash will fail to source /dev/null (special
1808   # files actually), so we avoid doing that.
1809   if test -f "$cache_file"; then
1810     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1811 echo "$as_me: loading cache $cache_file" >&6;}
1812     case $cache_file in
1813       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1814       *)                      . "./$cache_file";;
1815     esac
1816   fi
1817 else
1818   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1819 echo "$as_me: creating cache $cache_file" >&6;}
1820   >$cache_file
1821 fi
1822
1823 # Check that the precious variables saved in the cache have kept the same
1824 # value.
1825 ac_cache_corrupted=false
1826 for ac_var in $ac_precious_vars; do
1827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1828   eval ac_new_set=\$ac_env_${ac_var}_set
1829   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1830   eval ac_new_val=\$ac_env_${ac_var}_value
1831   case $ac_old_set,$ac_new_set in
1832     set,)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,set)
1837       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1839       ac_cache_corrupted=: ;;
1840     ,);;
1841     *)
1842       if test "x$ac_old_val" != "x$ac_new_val"; then
1843         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1845         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1846 echo "$as_me:   former value:  $ac_old_val" >&2;}
1847         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1848 echo "$as_me:   current value: $ac_new_val" >&2;}
1849         ac_cache_corrupted=:
1850       fi;;
1851   esac
1852   # Pass precious variables to config.status.
1853   if test "$ac_new_set" = set; then
1854     case $ac_new_val in
1855     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1856     *) ac_arg=$ac_var=$ac_new_val ;;
1857     esac
1858     case " $ac_configure_args " in
1859       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1860       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861     esac
1862   fi
1863 done
1864 if $ac_cache_corrupted; then
1865   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1866 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1867   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1868 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1869    { (exit 1); exit 1; }; }
1870 fi
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896 ac_ext=c
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901
1902
1903
1904 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1905
1906
1907
1908
1909
1910
1911
1912 ac_aux_dir=
1913 for ac_dir in autoconf "$srcdir"/autoconf; do
1914   if test -f "$ac_dir/install-sh"; then
1915     ac_aux_dir=$ac_dir
1916     ac_install_sh="$ac_aux_dir/install-sh -c"
1917     break
1918   elif test -f "$ac_dir/install.sh"; then
1919     ac_aux_dir=$ac_dir
1920     ac_install_sh="$ac_aux_dir/install.sh -c"
1921     break
1922   elif test -f "$ac_dir/shtool"; then
1923     ac_aux_dir=$ac_dir
1924     ac_install_sh="$ac_aux_dir/shtool install -c"
1925     break
1926   fi
1927 done
1928 if test -z "$ac_aux_dir"; then
1929   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1930 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1931    { (exit 1); exit 1; }; }
1932 fi
1933
1934 # These three variables are undocumented and unsupported,
1935 # and are intended to be withdrawn in a future Autoconf release.
1936 # They can cause serious problems if a builder's source tree is in a directory
1937 # whose full name contains unusual characters.
1938 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1939 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1940 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1941
1942
1943
1944 if test ${srcdir} != "." ; then
1945   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1946     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1947 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1948    { (exit 1); exit 1; }; }
1949   fi
1950 fi
1951
1952 for i in `ls ${srcdir}/projects`
1953 do
1954   if test -d ${srcdir}/projects/${i} ; then
1955     case ${i} in
1956       CVS) ;;
1957       sample)       subdirs="$subdirs projects/sample"
1958     ;;
1959       privbracket)  subdirs="$subdirs projects/privbracket"
1960  ;;
1961       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1962  ;;
1963       # llvm-test is the old name of the test-suite, kept here for backwards
1964       # compatibility
1965       llvm-test)    subdirs="$subdirs projects/llvm-test"
1966  ;;
1967       test-suite)   subdirs="$subdirs projects/test-suite"
1968  ;;
1969       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1970 ;;
1971       llvm-gcc)     subdirs="$subdirs projects/llvm-gcc"
1972   ;;
1973       llvm-java)    subdirs="$subdirs projects/llvm-java"
1974  ;;
1975       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1976    ;;
1977       llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1978  ;;
1979       poolalloc)    subdirs="$subdirs projects/poolalloc"
1980  ;;
1981       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
1982  ;;
1983       *)
1984         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1985 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1986         ;;
1987     esac
1988   fi
1989 done
1990
1991
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996    { (exit 1); exit 1; }; }
1997
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009    { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013    { (exit 1); exit 1; }; }
2014
2015 fi
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2019 *-*-*) ;;
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022    { (exit 1); exit 1; }; };;
2023 esac
2024 build=$ac_cv_build
2025 ac_save_IFS=$IFS; IFS='-'
2026 set x $ac_cv_build
2027 shift
2028 build_cpu=$1
2029 build_vendor=$2
2030 shift; shift
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2033 build_os=$*
2034 IFS=$ac_save_IFS
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
2037
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041   echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043   if test "x$host_alias" = x; then
2044   ac_cv_host=$ac_cv_build
2045 else
2046   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 fi
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2055 case $ac_cv_host in
2056 *-*-*) ;;
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059    { (exit 1); exit 1; }; };;
2060 esac
2061 host=$ac_cv_host
2062 ac_save_IFS=$IFS; IFS='-'
2063 set x $ac_cv_host
2064 shift
2065 host_cpu=$1
2066 host_vendor=$2
2067 shift; shift
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2070 host_os=$*
2071 IFS=$ac_save_IFS
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073
2074
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test "x$target_alias" = x; then
2081   ac_cv_target=$ac_cv_host
2082 else
2083   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086    { (exit 1); exit 1; }; }
2087 fi
2088
2089 fi
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2093 *-*-*) ;;
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_target
2101 shift
2102 target_cpu=$1
2103 target_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 target_os=$*
2108 IFS=$ac_save_IFS
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2110
2111
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115   test "$program_prefix$program_suffix$program_transform_name" = \
2116     NONENONEs,x,x, &&
2117   program_prefix=${target_alias}-
2118
2119 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2120 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2121 if test "${llvm_cv_os_type+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   case $host in
2125   *-*-aix*)
2126     llvm_cv_link_all_option="-Wl,--whole-archive"
2127     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2128     llvm_cv_os_type="AIX"
2129     llvm_cv_platform_type="Unix" ;;
2130   *-*-irix*)
2131     llvm_cv_link_all_option="-Wl,--whole-archive"
2132     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2133     llvm_cv_os_type="IRIX"
2134     llvm_cv_platform_type="Unix" ;;
2135   *-*-cygwin*)
2136     llvm_cv_link_all_option="-Wl,--whole-archive"
2137     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2138     llvm_cv_os_type="Cygwin"
2139     llvm_cv_platform_type="Unix" ;;
2140   *-*-darwin*)
2141     llvm_cv_link_all_option="-Wl,-all_load"
2142     llvm_cv_no_link_all_option="-Wl,-noall_load"
2143     llvm_cv_os_type="Darwin"
2144     llvm_cv_platform_type="Unix" ;;
2145   *-*-freebsd*)
2146     llvm_cv_link_all_option="-Wl,--whole-archive"
2147     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148     llvm_cv_os_type="FreeBSD"
2149     llvm_cv_platform_type="Unix" ;;
2150   *-*-openbsd*)
2151     llvm_cv_link_all_option="-Wl,--whole-archive"
2152     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153     llvm_cv_os_type="OpenBSD"
2154     llvm_cv_platform_type="Unix" ;;
2155   *-*-netbsd*)
2156     llvm_cv_link_all_option="-Wl,--whole-archive"
2157     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2158     llvm_cv_os_type="NetBSD"
2159     llvm_cv_platform_type="Unix" ;;
2160   *-*-dragonfly*)
2161     llvm_cv_link_all_option="-Wl,--whole-archive"
2162     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2163     llvm_cv_os_type="DragonFly"
2164     llvm_cv_platform_type="Unix" ;;
2165   *-*-hpux*)
2166     llvm_cv_link_all_option="-Wl,--whole-archive"
2167     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2168     llvm_cv_os_type="HP-UX"
2169     llvm_cv_platform_type="Unix" ;;
2170   *-*-interix*)
2171     llvm_cv_link_all_option="-Wl,--whole-archive"
2172     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2173     llvm_cv_os_type="Interix"
2174     llvm_cv_platform_type="Unix" ;;
2175   *-*-linux*)
2176     llvm_cv_link_all_option="-Wl,--whole-archive"
2177     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2178     llvm_cv_os_type="Linux"
2179     llvm_cv_platform_type="Unix" ;;
2180   *-*-solaris*)
2181     llvm_cv_link_all_option="-Wl,-z,allextract"
2182     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2183     llvm_cv_os_type="SunOS"
2184     llvm_cv_platform_type="Unix" ;;
2185   *-*-auroraux*)
2186     llvm_cv_link_all_option="-Wl,-z,allextract"
2187     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2188     llvm_cv_os_type="AuroraUX"
2189     llvm_cv_platform_type="Unix" ;;
2190   *-*-win32*)
2191     llvm_cv_link_all_option="-Wl,--whole-archive"
2192     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193     llvm_cv_os_type="Win32"
2194     llvm_cv_platform_type="Win32" ;;
2195   *-*-mingw*)
2196     llvm_cv_link_all_option="-Wl,--whole-archive"
2197     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198     llvm_cv_os_type="MingW"
2199     llvm_cv_platform_type="Win32" ;;
2200   *-*-haiku*)
2201     llvm_cv_link_all_option="-Wl,--whole-archive"
2202     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203     llvm_cv_os_type="Haiku"
2204     llvm_cv_platform_type="Unix" ;;
2205   *-unknown-eabi*)
2206     llvm_cv_link_all_option="-Wl,--whole-archive"
2207     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2208     llvm_cv_os_type="Freestanding"
2209     llvm_cv_platform_type="Unix" ;;
2210   *-unknown-elf*)
2211     llvm_cv_link_all_option="-Wl,--whole-archive"
2212     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2213     llvm_cv_os_type="Freestanding"
2214     llvm_cv_platform_type="Unix" ;;
2215   *)
2216     llvm_cv_link_all_option=""
2217     llvm_cv_no_link_all_option=""
2218     llvm_cv_os_type="Unknown"
2219     llvm_cv_platform_type="Unknown" ;;
2220 esac
2221 fi
2222 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2223 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2224
2225 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2226 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2227 if test "${llvm_cv_target_os_type+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   case $target in
2231   *-*-aix*)
2232     llvm_cv_target_os_type="AIX" ;;
2233   *-*-irix*)
2234     llvm_cv_target_os_type="IRIX" ;;
2235   *-*-cygwin*)
2236     llvm_cv_target_os_type="Cygwin" ;;
2237   *-*-darwin*)
2238     llvm_cv_target_os_type="Darwin" ;;
2239   *-*-freebsd*)
2240     llvm_cv_target_os_type="FreeBSD" ;;
2241   *-*-openbsd*)
2242     llvm_cv_target_os_type="OpenBSD" ;;
2243   *-*-netbsd*)
2244     llvm_cv_target_os_type="NetBSD" ;;
2245   *-*-dragonfly*)
2246     llvm_cv_target_os_type="DragonFly" ;;
2247   *-*-hpux*)
2248     llvm_cv_target_os_type="HP-UX" ;;
2249   *-*-interix*)
2250     llvm_cv_target_os_type="Interix" ;;
2251   *-*-linux*)
2252     llvm_cv_target_os_type="Linux" ;;
2253   *-*-solaris*)
2254     llvm_cv_target_os_type="SunOS" ;;
2255   *-*-auroraux*)
2256     llvm_cv_target_os_type="AuroraUX" ;;
2257   *-*-win32*)
2258     llvm_cv_target_os_type="Win32" ;;
2259   *-*-mingw*)
2260     llvm_cv_target_os_type="MingW" ;;
2261   *-*-haiku*)
2262     llvm_cv_target_os_type="Haiku" ;;
2263   *-unknown-eabi*)
2264     llvm_cv_target_os_type="Freestanding" ;;
2265   *)
2266     llvm_cv_target_os_type="Unknown" ;;
2267 esac
2268 fi
2269 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2270 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2271
2272 if test "$llvm_cv_os_type" = "Unknown" ; then
2273   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2274 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2275    { (exit 1); exit 1; }; }
2276 fi
2277
2278 OS=$llvm_cv_os_type
2279
2280 HOST_OS=$llvm_cv_os_type
2281
2282 TARGET_OS=$llvm_cv_target_os_type
2283
2284
2285 LINKALL=$llvm_cv_link_all_option
2286
2287 NOLINKALL=$llvm_cv_no_link_all_option
2288
2289
2290 case $llvm_cv_platform_type in
2291   Unix)
2292
2293 cat >>confdefs.h <<\_ACEOF
2294 #define LLVM_ON_UNIX 1
2295 _ACEOF
2296
2297     LLVM_ON_UNIX=1
2298
2299     LLVM_ON_WIN32=0
2300
2301     ;;
2302   Win32)
2303
2304 cat >>confdefs.h <<\_ACEOF
2305 #define LLVM_ON_WIN32 1
2306 _ACEOF
2307
2308     LLVM_ON_UNIX=0
2309
2310     LLVM_ON_WIN32=1
2311
2312     ;;
2313 esac
2314
2315 { echo "$as_me:$LINENO: checking target architecture" >&5
2316 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2317 if test "${llvm_cv_target_arch+set}" = set; then
2318   echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320   case $target in
2321   i?86-*)                 llvm_cv_target_arch="x86" ;;
2322   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2323   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2324   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2325   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2326   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2327   mips-*)                 llvm_cv_target_arch="Mips" ;;
2328   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2329   xcore-*)                llvm_cv_target_arch="XCore" ;;
2330   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2331   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2332   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2333   microblaze-*)           llvm_cv_target_arch="MBlaze" ;;
2334   *)                      llvm_cv_target_arch="Unknown" ;;
2335 esac
2336 fi
2337 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2338 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2339
2340 if test "$llvm_cv_target_arch" = "Unknown" ; then
2341   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2342 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2343 fi
2344
2345 # Determine the LLVM native architecture for the target
2346 case "$llvm_cv_target_arch" in
2347     x86)     LLVM_NATIVE_ARCH="X86" ;;
2348     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2349     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2350 esac
2351
2352 ARCH=$llvm_cv_target_arch
2353
2354
2355 ac_ext=c
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 if test -n "$ac_tool_prefix"; then
2361   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   if test -n "$CC"; then
2369   ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374   IFS=$as_save_IFS
2375   test -z "$as_dir" && as_dir=.
2376   for ac_exec_ext in '' $ac_executable_extensions; do
2377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2378     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 fi
2387 fi
2388 CC=$ac_cv_prog_CC
2389 if test -n "$CC"; then
2390   { echo "$as_me:$LINENO: result: $CC" >&5
2391 echo "${ECHO_T}$CC" >&6; }
2392 else
2393   { echo "$as_me:$LINENO: result: no" >&5
2394 echo "${ECHO_T}no" >&6; }
2395 fi
2396
2397
2398 fi
2399 if test -z "$ac_cv_prog_CC"; then
2400   ac_ct_CC=$CC
2401   # Extract the first word of "gcc", so it can be a program name with args.
2402 set dummy gcc; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$ac_ct_CC"; then
2409   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2418     ac_cv_prog_ac_ct_CC="gcc"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2429 if test -n "$ac_ct_CC"; then
2430   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2431 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 else
2433   { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437   if test "x$ac_ct_CC" = x; then
2438     CC=""
2439   else
2440     case $cross_compiling:$ac_tool_warned in
2441 yes:)
2442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet.  If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&5
2445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2446 whose name does not start with the host triplet.  If you think this
2447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450     CC=$ac_ct_CC
2451   fi
2452 else
2453   CC="$ac_cv_prog_CC"
2454 fi
2455
2456 if test -z "$CC"; then
2457           if test -n "$ac_tool_prefix"; then
2458     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}cc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test -n "$CC"; then
2466   ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471   IFS=$as_save_IFS
2472   test -z "$as_dir" && as_dir=.
2473   for ac_exec_ext in '' $ac_executable_extensions; do
2474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2475     ac_cv_prog_CC="${ac_tool_prefix}cc"
2476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477     break 2
2478   fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487   { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490   { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495   fi
2496 fi
2497 if test -z "$CC"; then
2498   # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   if test -n "$CC"; then
2506   ac_cv_prog_CC="$CC" # Let the user override the test.
2507 else
2508   ac_prog_rejected=no
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512   IFS=$as_save_IFS
2513   test -z "$as_dir" && as_dir=.
2514   for ac_exec_ext in '' $ac_executable_extensions; do
2515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2516     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2517        ac_prog_rejected=yes
2518        continue
2519      fi
2520     ac_cv_prog_CC="cc"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 if test $ac_prog_rejected = yes; then
2529   # We found a bogon in the path, so make sure we never use it.
2530   set dummy $ac_cv_prog_CC
2531   shift
2532   if test $# != 0; then
2533     # We chose a different compiler from the bogus one.
2534     # However, it has the same basename, so the bogon will be chosen
2535     # first if we set CC to just the basename; use the full file name.
2536     shift
2537     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538   fi
2539 fi
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544   { echo "$as_me:$LINENO: result: $CC" >&5
2545 echo "${ECHO_T}$CC" >&6; }
2546 else
2547   { echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6; }
2549 fi
2550
2551
2552 fi
2553 if test -z "$CC"; then
2554   if test -n "$ac_tool_prefix"; then
2555   for ac_prog in cl.exe
2556   do
2557     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562   echo $ECHO_N "(cached) $ECHO_C" >&6
2563 else
2564   if test -n "$CC"; then
2565   ac_cv_prog_CC="$CC" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570   IFS=$as_save_IFS
2571   test -z "$as_dir" && as_dir=.
2572   for ac_exec_ext in '' $ac_executable_extensions; do
2573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2574     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576     break 2
2577   fi
2578 done
2579 done
2580 IFS=$as_save_IFS
2581
2582 fi
2583 fi
2584 CC=$ac_cv_prog_CC
2585 if test -n "$CC"; then
2586   { echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6; }
2588 else
2589   { echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6; }
2591 fi
2592
2593
2594     test -n "$CC" && break
2595   done
2596 fi
2597 if test -z "$CC"; then
2598   ac_ct_CC=$CC
2599   for ac_prog in cl.exe
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$ac_ct_CC"; then
2609   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_ac_ct_CC="$ac_prog"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 else
2633   { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638   test -n "$ac_ct_CC" && break
2639 done
2640
2641   if test "x$ac_ct_CC" = x; then
2642     CC=""
2643   else
2644     case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet.  If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&5
2649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2650 whose name does not start with the host triplet.  If you think this
2651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2652 ac_tool_warned=yes ;;
2653 esac
2654     CC=$ac_ct_CC
2655   fi
2656 fi
2657
2658 fi
2659
2660
2661 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: no acceptable C compiler found in \$PATH
2664 See \`config.log' for more details." >&2;}
2665    { (exit 1); exit 1; }; }
2666
2667 # Provide some information about the compiler.
2668 echo "$as_me:$LINENO: checking for C compiler version" >&5
2669 ac_compiler=`set X $ac_compile; echo $2`
2670 { (ac_try="$ac_compiler --version >&5"
2671 case "(($ac_try" in
2672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673   *) ac_try_echo=$ac_try;;
2674 esac
2675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2676   (eval "$ac_compiler --version >&5") 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }
2680 { (ac_try="$ac_compiler -v >&5"
2681 case "(($ac_try" in
2682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683   *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686   (eval "$ac_compiler -v >&5") 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }
2690 { (ac_try="$ac_compiler -V >&5"
2691 case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696   (eval "$ac_compiler -V >&5") 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }
2700
2701 cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2720 # of exeext.
2721 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2722 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2723 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 #
2725 # List of possible output files, starting from the most likely.
2726 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2727 # only as a last resort.  b.out is created by i960 compilers.
2728 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 #
2730 # The IRIX 6 linker writes into existing files which may not be
2731 # executable, retaining their permissions.  Remove them first so a
2732 # subsequent execution test works.
2733 ac_rmfiles=
2734 for ac_file in $ac_files
2735 do
2736   case $ac_file in
2737     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2738     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739   esac
2740 done
2741 rm -f $ac_rmfiles
2742
2743 if { (ac_try="$ac_link_default"
2744 case "(($ac_try" in
2745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746   *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749   (eval "$ac_link_default") 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; then
2753   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2754 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2755 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2756 # so that the user can short-circuit this test for compilers unknown to
2757 # Autoconf.
2758 for ac_file in $ac_files
2759 do
2760   test -f "$ac_file" || continue
2761   case $ac_file in
2762     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2763         ;;
2764     [ab].out )
2765         # We found the default executable, but exeext='' is most
2766         # certainly right.
2767         break;;
2768     *.* )
2769         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770         then :; else
2771            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772         fi
2773         # We set ac_cv_exeext here because the later test for it is not
2774         # safe: cross compilers may not add the suffix if given an `-o'
2775         # argument, so we may need to know it at that point already.
2776         # Even if this section looks crufty: it has the advantage of
2777         # actually working.
2778         break;;
2779     * )
2780         break;;
2781   esac
2782 done
2783 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: C compiler cannot create executables
2792 See \`config.log' for more details." >&2;}
2793    { (exit 77); exit 77; }; }
2794 fi
2795
2796 ac_exeext=$ac_cv_exeext
2797 { echo "$as_me:$LINENO: result: $ac_file" >&5
2798 echo "${ECHO_T}$ac_file" >&6; }
2799
2800 # Check that the compiler produces executables we can run.  If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2803 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2804 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2805 # If not cross compiling, check that we can run a simple program.
2806 if test "$cross_compiling" != yes; then
2807   if { ac_try='./$ac_file'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817     cross_compiling=no
2818   else
2819     if test "$cross_compiling" = maybe; then
2820         cross_compiling=yes
2821     else
2822         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&2;}
2828    { (exit 1); exit 1; }; }
2829     fi
2830   fi
2831 fi
2832 { echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6; }
2834
2835 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2836 ac_clean_files=$ac_clean_files_save
2837 # Check that the compiler produces executables we can run.  If not, either
2838 # the compiler is broken, or we cross compile.
2839 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2840 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2841 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2842 echo "${ECHO_T}$cross_compiling" >&6; }
2843
2844 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2845 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2846 if { (ac_try="$ac_link"
2847 case "(($ac_try" in
2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849   *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852   (eval "$ac_link") 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; then
2856   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2857 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2858 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 # `rm'.
2860 for ac_file in conftest.exe conftest conftest.*; do
2861   test -f "$ac_file" || continue
2862   case $ac_file in
2863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2864     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865           break;;
2866     * ) break;;
2867   esac
2868 done
2869 else
2870   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2873 See \`config.log' for more details." >&2;}
2874    { (exit 1); exit 1; }; }
2875 fi
2876
2877 rm -f conftest$ac_cv_exeext
2878 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2879 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880
2881 rm -f conftest.$ac_ext
2882 EXEEXT=$ac_cv_exeext
2883 ac_exeext=$EXEEXT
2884 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2885 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2886 if test "${ac_cv_objext+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h.  */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899
2900   ;
2901   return 0;
2902 }
2903 _ACEOF
2904 rm -f conftest.o conftest.obj
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908   *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911   (eval "$ac_compile") 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); }; then
2915   for ac_file in conftest.o conftest.obj conftest.*; do
2916   test -f "$ac_file" || continue;
2917   case $ac_file in
2918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920        break;;
2921   esac
2922 done
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2930 See \`config.log' for more details." >&2;}
2931    { (exit 1); exit 1; }; }
2932 fi
2933
2934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 fi
2936 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2937 echo "${ECHO_T}$ac_cv_objext" >&6; }
2938 OBJEXT=$ac_cv_objext
2939 ac_objext=$OBJEXT
2940 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945   cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951
2952 int
2953 main ()
2954 {
2955 #ifndef __GNUC__
2956        choke me
2957 #endif
2958
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2965 case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_compile") 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2978   { (case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_try") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (case "(($ac_try" in
2989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990   *) ac_try_echo=$ac_try;;
2991 esac
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993   (eval "$ac_try") 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   ac_compiler_gnu=yes
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002         ac_compiler_gnu=no
3003 fi
3004
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3007
3008 fi
3009 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3011 GCC=`test $ac_compiler_gnu = yes && echo yes`
3012 ac_test_CFLAGS=${CFLAGS+set}
3013 ac_save_CFLAGS=$CFLAGS
3014 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_cc_g+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   ac_save_c_werror_flag=$ac_c_werror_flag
3020    ac_c_werror_flag=yes
3021    ac_cv_prog_cc_g=no
3022    CFLAGS="-g"
3023    cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_compile") 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } &&
3052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053   { (case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_try") 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); }; } &&
3062          { ac_try='test -s conftest.$ac_objext'
3063   { (case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_try") 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072   ac_cv_prog_cc_g=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         CFLAGS=""
3078       cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } &&
3107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108   { (case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113   (eval "$ac_try") 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); }; } &&
3117          { ac_try='test -s conftest.$ac_objext'
3118   { (case "(($ac_try" in
3119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120   *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123   (eval "$ac_try") 2>&5
3124   ac_status=$?
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); }; }; then
3127   :
3128 else
3129   echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132         ac_c_werror_flag=$ac_save_c_werror_flag
3133          CFLAGS="-g"
3134          cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h.  */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h.  */
3140
3141 int
3142 main ()
3143 {
3144
3145   ;
3146   return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_compile") 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } &&
3163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164   { (case "(($ac_try" in
3165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166   *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169   (eval "$ac_try") 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; } &&
3173          { ac_try='test -s conftest.$ac_objext'
3174   { (case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_try") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }; }; then
3183   ac_cv_prog_cc_g=yes
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188
3189 fi
3190
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198    ac_c_werror_flag=$ac_save_c_werror_flag
3199 fi
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3202 if test "$ac_test_CFLAGS" = set; then
3203   CFLAGS=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205   if test "$GCC" = yes; then
3206     CFLAGS="-g -O2"
3207   else
3208     CFLAGS="-g"
3209   fi
3210 else
3211   if test "$GCC" = yes; then
3212     CFLAGS="-O2"
3213   else
3214     CFLAGS=
3215   fi
3216 fi
3217 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3218 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3219 if test "${ac_cv_prog_cc_c89+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   ac_cv_prog_cc_c89=no
3223 ac_save_CC=$CC
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h.  */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h.  */
3230 #include <stdarg.h>
3231 #include <stdio.h>
3232 #include <sys/types.h>
3233 #include <sys/stat.h>
3234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3235 struct buf { int x; };
3236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237 static char *e (p, i)
3238      char **p;
3239      int i;
3240 {
3241   return p[i];
3242 }
3243 static char *f (char * (*g) (char **, int), char **p, ...)
3244 {
3245   char *s;
3246   va_list v;
3247   va_start (v,p);
3248   s = g (p, va_arg (v,int));
3249   va_end (v);
3250   return s;
3251 }
3252
3253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3254    function prototypes and stuff, but not '\xHH' hex character constants.
3255    These don't provoke an error unfortunately, instead are silently treated
3256    as 'x'.  The following induces an error, until -std is added to get
3257    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3258    array size at least.  It's necessary to write '\x00'==0 to get something
3259    that's true only with -std.  */
3260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
3262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263    inside strings and character constants.  */
3264 #define FOO(x) 'x'
3265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
3267 int test (int i, double x);
3268 struct s1 {int (*f) (int a);};
3269 struct s2 {int (*f) (double a);};
3270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271 int argc;
3272 char **argv;
3273 int
3274 main ()
3275 {
3276 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3277   ;
3278   return 0;
3279 }
3280 _ACEOF
3281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283 do
3284   CC="$ac_save_CC $ac_arg"
3285   rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_try") 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_prog_cc_c89=$ac_arg
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
3325 fi
3326
3327 rm -f core conftest.err conftest.$ac_objext
3328   test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 done
3330 rm -f conftest.$ac_ext
3331 CC=$ac_save_CC
3332
3333 fi
3334 # AC_CACHE_VAL
3335 case "x$ac_cv_prog_cc_c89" in
3336   x)
3337     { echo "$as_me:$LINENO: result: none needed" >&5
3338 echo "${ECHO_T}none needed" >&6; } ;;
3339   xno)
3340     { echo "$as_me:$LINENO: result: unsupported" >&5
3341 echo "${ECHO_T}unsupported" >&6; } ;;
3342   *)
3343     CC="$CC $ac_cv_prog_cc_c89"
3344     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3345 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3346 esac
3347
3348
3349 ac_ext=c
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
3355
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3362 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3363 # On Suns, sometimes $CPP names a directory.
3364 if test -n "$CPP" && test -d "$CPP"; then
3365   CPP=
3366 fi
3367 if test -z "$CPP"; then
3368   if test "${ac_cv_prog_CPP+set}" = set; then
3369   echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371       # Double quotes because CPP needs to be expanded
3372     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373     do
3374       ac_preproc_ok=false
3375 for ac_c_preproc_warn_flag in '' yes
3376 do
3377   # Use a header file that comes with gcc, so configuring glibc
3378   # with a fresh cross-compiler works.
3379   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380   # <limits.h> exists even on freestanding compilers.
3381   # On the NeXT, cc -E runs the code through the compiler's parser,
3382   # not just through cpp. "Syntax error" is here to catch this case.
3383   cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389 #ifdef __STDC__
3390 # include <limits.h>
3391 #else
3392 # include <assert.h>
3393 #endif
3394                      Syntax error
3395 _ACEOF
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3397 case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3403   ac_status=$?
3404   grep -v '^ *+' conftest.er1 >conftest.err
3405   rm -f conftest.er1
3406   cat conftest.err >&5
3407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408   (exit $ac_status); } >/dev/null; then
3409   if test -s conftest.err; then
3410     ac_cpp_err=$ac_c_preproc_warn_flag
3411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3412   else
3413     ac_cpp_err=
3414   fi
3415 else
3416   ac_cpp_err=yes
3417 fi
3418 if test -z "$ac_cpp_err"; then
3419   :
3420 else
3421   echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424   # Broken: fails on valid input.
3425 continue
3426 fi
3427
3428 rm -f conftest.err conftest.$ac_ext
3429
3430   # OK, works on sane cases.  Now check whether nonexistent headers
3431   # can be detected and how.
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #include <ac_nonexistent.h>
3439 _ACEOF
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } >/dev/null; then
3453   if test -s conftest.err; then
3454     ac_cpp_err=$ac_c_preproc_warn_flag
3455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456   else
3457     ac_cpp_err=
3458   fi
3459 else
3460   ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463   # Broken: success on invalid input.
3464 continue
3465 else
3466   echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469   # Passes both tests.
3470 ac_preproc_ok=:
3471 break
3472 fi
3473
3474 rm -f conftest.err conftest.$ac_ext
3475
3476 done
3477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478 rm -f conftest.err conftest.$ac_ext
3479 if $ac_preproc_ok; then
3480   break
3481 fi
3482
3483     done
3484     ac_cv_prog_CPP=$CPP
3485
3486 fi
3487   CPP=$ac_cv_prog_CPP
3488 else
3489   ac_cv_prog_CPP=$CPP
3490 fi
3491 { echo "$as_me:$LINENO: result: $CPP" >&5
3492 echo "${ECHO_T}$CPP" >&6; }
3493 ac_preproc_ok=false
3494 for ac_c_preproc_warn_flag in '' yes
3495 do
3496   # Use a header file that comes with gcc, so configuring glibc
3497   # with a fresh cross-compiler works.
3498   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3499   # <limits.h> exists even on freestanding compilers.
3500   # On the NeXT, cc -E runs the code through the compiler's parser,
3501   # not just through cpp. "Syntax error" is here to catch this case.
3502   cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h.  */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h.  */
3508 #ifdef __STDC__
3509 # include <limits.h>
3510 #else
3511 # include <assert.h>
3512 #endif
3513                      Syntax error
3514 _ACEOF
3515 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 case "(($ac_try" in
3517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518   *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522   ac_status=$?
3523   grep -v '^ *+' conftest.er1 >conftest.err
3524   rm -f conftest.er1
3525   cat conftest.err >&5
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); } >/dev/null; then
3528   if test -s conftest.err; then
3529     ac_cpp_err=$ac_c_preproc_warn_flag
3530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531   else
3532     ac_cpp_err=
3533   fi
3534 else
3535   ac_cpp_err=yes
3536 fi
3537 if test -z "$ac_cpp_err"; then
3538   :
3539 else
3540   echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543   # Broken: fails on valid input.
3544 continue
3545 fi
3546
3547 rm -f conftest.err conftest.$ac_ext
3548
3549   # OK, works on sane cases.  Now check whether nonexistent headers
3550   # can be detected and how.
3551   cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 #include <ac_nonexistent.h>
3558 _ACEOF
3559 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566   ac_status=$?
3567   grep -v '^ *+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } >/dev/null; then
3572   if test -s conftest.err; then
3573     ac_cpp_err=$ac_c_preproc_warn_flag
3574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575   else
3576     ac_cpp_err=
3577   fi
3578 else
3579   ac_cpp_err=yes
3580 fi
3581 if test -z "$ac_cpp_err"; then
3582   # Broken: success on invalid input.
3583 continue
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588   # Passes both tests.
3589 ac_preproc_ok=:
3590 break
3591 fi
3592
3593 rm -f conftest.err conftest.$ac_ext
3594
3595 done
3596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597 rm -f conftest.err conftest.$ac_ext
3598 if $ac_preproc_ok; then
3599   :
3600 else
3601   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3604 See \`config.log' for more details." >&2;}
3605    { (exit 1); exit 1; }; }
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3617 if test "${ac_cv_path_GREP+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   # Extract the first word of "grep ggrep" to use in msg output
3621 if test -z "$GREP"; then
3622 set dummy grep ggrep; ac_prog_name=$2
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   ac_path_GREP_found=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633   for ac_prog in grep ggrep; do
3634   for ac_exec_ext in '' $ac_executable_extensions; do
3635     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3636     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3637     # Check for GNU ac_path_GREP and select it if it is found.
3638   # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3640 *GNU*)
3641   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3642 *)
3643   ac_count=0
3644   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3645   while :
3646   do
3647     cat "conftest.in" "conftest.in" >"conftest.tmp"
3648     mv "conftest.tmp" "conftest.in"
3649     cp "conftest.in" "conftest.nl"
3650     echo 'GREP' >> "conftest.nl"
3651     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3652     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3653     ac_count=`expr $ac_count + 1`
3654     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655       # Best one so far, save it but keep looking for a better one
3656       ac_cv_path_GREP="$ac_path_GREP"
3657       ac_path_GREP_max=$ac_count
3658     fi
3659     # 10*(2^10) chars as input seems more than enough
3660     test $ac_count -gt 10 && break
3661   done
3662   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 esac
3664
3665
3666     $ac_path_GREP_found && break 3
3667   done
3668 done
3669
3670 done
3671 IFS=$as_save_IFS
3672
3673
3674 fi
3675
3676 GREP="$ac_cv_path_GREP"
3677 if test -z "$GREP"; then
3678   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3680    { (exit 1); exit 1; }; }
3681 fi
3682
3683 else
3684   ac_cv_path_GREP=$GREP
3685 fi
3686
3687
3688 fi
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3691  GREP="$ac_cv_path_GREP"
3692
3693
3694 { echo "$as_me:$LINENO: checking for egrep" >&5
3695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3696 if test "${ac_cv_path_EGREP+set}" = set; then
3697   echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700    then ac_cv_path_EGREP="$GREP -E"
3701    else
3702      # Extract the first word of "egrep" to use in msg output
3703 if test -z "$EGREP"; then
3704 set dummy egrep; ac_prog_name=$2
3705 if test "${ac_cv_path_EGREP+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   ac_path_EGREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_prog in egrep; do
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3718     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3719     # Check for GNU ac_path_EGREP and select it if it is found.
3720   # Check for GNU $ac_path_EGREP
3721 case `"$ac_path_EGREP" --version 2>&1` in
3722 *GNU*)
3723   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3724 *)
3725   ac_count=0
3726   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3727   while :
3728   do
3729     cat "conftest.in" "conftest.in" >"conftest.tmp"
3730     mv "conftest.tmp" "conftest.in"
3731     cp "conftest.in" "conftest.nl"
3732     echo 'EGREP' >> "conftest.nl"
3733     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735     ac_count=`expr $ac_count + 1`
3736     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3737       # Best one so far, save it but keep looking for a better one
3738       ac_cv_path_EGREP="$ac_path_EGREP"
3739       ac_path_EGREP_max=$ac_count
3740     fi
3741     # 10*(2^10) chars as input seems more than enough
3742     test $ac_count -gt 10 && break
3743   done
3744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 esac
3746
3747
3748     $ac_path_EGREP_found && break 3
3749   done
3750 done
3751
3752 done
3753 IFS=$as_save_IFS
3754
3755
3756 fi
3757
3758 EGREP="$ac_cv_path_EGREP"
3759 if test -z "$EGREP"; then
3760   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762    { (exit 1); exit 1; }; }
3763 fi
3764
3765 else
3766   ac_cv_path_EGREP=$EGREP
3767 fi
3768
3769
3770    fi
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3774  EGREP="$ac_cv_path_EGREP"
3775
3776
3777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3779 if test "${ac_cv_header_stdc+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h.  */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h.  */
3788 #include <stdlib.h>
3789 #include <stdarg.h>
3790 #include <string.h>
3791 #include <float.h>
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_compile") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816   { (case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3821   (eval "$ac_try") 2>&5
3822   ac_status=$?
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); }; } &&
3825          { ac_try='test -s conftest.$ac_objext'
3826   { (case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831   (eval "$ac_try") 2>&5
3832   ac_status=$?
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); }; }; then
3835   ac_cv_header_stdc=yes
3836 else
3837   echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840         ac_cv_header_stdc=no
3841 fi
3842
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844
3845 if test $ac_cv_header_stdc = yes; then
3846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3847   cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 #include <string.h>
3854
3855 _ACEOF
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857   $EGREP "memchr" >/dev/null 2>&1; then
3858   :
3859 else
3860   ac_cv_header_stdc=no
3861 fi
3862 rm -f conftest*
3863
3864 fi
3865
3866 if test $ac_cv_header_stdc = yes; then
3867   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3868   cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874 #include <stdlib.h>
3875
3876 _ACEOF
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878   $EGREP "free" >/dev/null 2>&1; then
3879   :
3880 else
3881   ac_cv_header_stdc=no
3882 fi
3883 rm -f conftest*
3884
3885 fi
3886
3887 if test $ac_cv_header_stdc = yes; then
3888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3889   if test "$cross_compiling" = yes; then
3890   :
3891 else
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <ctype.h>
3899 #include <stdlib.h>
3900 #if ((' ' & 0x0FF) == 0x020)
3901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3903 #else
3904 # define ISLOWER(c) \
3905                    (('a' <= (c) && (c) <= 'i') \
3906                      || ('j' <= (c) && (c) <= 'r') \
3907                      || ('s' <= (c) && (c) <= 'z'))
3908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3909 #endif
3910
3911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3912 int
3913 main ()
3914 {
3915   int i;
3916   for (i = 0; i < 256; i++)
3917     if (XOR (islower (i), ISLOWER (i))
3918         || toupper (i) != TOUPPER (i))
3919       return 2;
3920   return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest$ac_exeext
3924 if { (ac_try="$ac_link"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_link") 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3934   { (case "(($ac_try" in
3935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936   *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939   (eval "$ac_try") 2>&5
3940   ac_status=$?
3941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942   (exit $ac_status); }; }; then
3943   :
3944 else
3945   echo "$as_me: program exited with status $ac_status" >&5
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ( exit $ac_status )
3950 ac_cv_header_stdc=no
3951 fi
3952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3953 fi
3954
3955
3956 fi
3957 fi
3958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3960 if test $ac_cv_header_stdc = yes; then
3961
3962 cat >>confdefs.h <<\_ACEOF
3963 #define STDC_HEADERS 1
3964 _ACEOF
3965
3966 fi
3967
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979                   inttypes.h stdint.h unistd.h
3980 do
3981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 $ac_includes_default
3994
3995 #include <$ac_header>
3996 _ACEOF
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_compile") 2>conftest.er1
4005   ac_status=$?
4006   grep -v '^ *+' conftest.er1 >conftest.err
4007   rm -f conftest.er1
4008   cat conftest.err >&5
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } &&
4011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012   { (case "(($ac_try" in
4013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014   *) ac_try_echo=$ac_try;;
4015 esac
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017   (eval "$ac_try") 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; } &&
4021          { ac_try='test -s conftest.$ac_objext'
4022   { (case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027   (eval "$ac_try") 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; }; then
4031   eval "$as_ac_Header=yes"
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036         eval "$as_ac_Header=no"
4037 fi
4038
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 fi
4041 ac_res=`eval echo '${'$as_ac_Header'}'`
4042                { echo "$as_me:$LINENO: result: $ac_res" >&5
4043 echo "${ECHO_T}$ac_res" >&6; }
4044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4045   cat >>confdefs.h <<_ACEOF
4046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4047 _ACEOF
4048
4049 fi
4050
4051 done
4052
4053
4054 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4055 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4056 if test "${ac_cv_c_bigendian+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   # See if sys/param.h defines the BYTE_ORDER macro.
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 #include <sys/types.h>
4067 #include <sys/param.h>
4068
4069 int
4070 main ()
4071 {
4072 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4073  bogus endian macros
4074 #endif
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_try") 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; } &&
4104          { ac_try='test -s conftest.$ac_objext'
4105   { (case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4110   (eval "$ac_try") 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   # It does; now see whether it defined to BIG_ENDIAN or not.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121 #include <sys/types.h>
4122 #include <sys/param.h>
4123
4124 int
4125 main ()
4126 {
4127 #if BYTE_ORDER != BIG_ENDIAN
4128  not big endian
4129 #endif
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 rm -f conftest.$ac_objext
4136 if { (ac_try="$ac_compile"
4137 case "(($ac_try" in
4138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139   *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142   (eval "$ac_compile") 2>conftest.er1
4143   ac_status=$?
4144   grep -v '^ *+' conftest.er1 >conftest.err
4145   rm -f conftest.er1
4146   cat conftest.err >&5
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); } &&
4149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150   { (case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_try") 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; } &&
4159          { ac_try='test -s conftest.$ac_objext'
4160   { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); }; }; then
4169   ac_cv_c_bigendian=yes
4170 else
4171   echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174         ac_cv_c_bigendian=no
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         # It does not; compile a test program.
4183 if test "$cross_compiling" = yes; then
4184   # try to guess the endianness by grepping values into an object file
4185   ac_cv_c_bigendian=unknown
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4194 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4195 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4196 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4197 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4198 int
4199 main ()
4200 {
4201  _ascii (); _ebcdic ();
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4208 case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_compile") 2>conftest.er1
4214   ac_status=$?
4215   grep -v '^ *+' conftest.er1 >conftest.err
4216   rm -f conftest.er1
4217   cat conftest.err >&5
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } &&
4220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221   { (case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_try") 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; } &&
4230          { ac_try='test -s conftest.$ac_objext'
4231   { (case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236   (eval "$ac_try") 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4241   ac_cv_c_bigendian=yes
4242 fi
4243 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4244   if test "$ac_cv_c_bigendian" = unknown; then
4245     ac_cv_c_bigendian=no
4246   else
4247     # finding both strings is unlikely to happen, but who knows?
4248     ac_cv_c_bigendian=unknown
4249   fi
4250 fi
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255
4256 fi
4257
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 else
4260   cat >conftest.$ac_ext <<_ACEOF
4261 /* confdefs.h.  */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h.  */
4266 $ac_includes_default
4267 int
4268 main ()
4269 {
4270
4271   /* Are we little or big endian?  From Harbison&Steele.  */
4272   union
4273   {
4274     long int l;
4275     char c[sizeof (long int)];
4276   } u;
4277   u.l = 1;
4278   return u.c[sizeof (long int) - 1] == 1;
4279
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4286 case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_link") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295   { (case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300   (eval "$ac_try") 2>&5
4301   ac_status=$?
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); }; }; then
4304   ac_cv_c_bigendian=no
4305 else
4306   echo "$as_me: program exited with status $ac_status" >&5
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ( exit $ac_status )
4311 ac_cv_c_bigendian=yes
4312 fi
4313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4314 fi
4315
4316
4317 fi
4318
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4323 case $ac_cv_c_bigendian in
4324   yes)
4325     ENDIAN=big
4326  ;;
4327   no)
4328     ENDIAN=little
4329  ;;
4330   *)
4331     { { echo "$as_me:$LINENO: error: unknown endianness
4332 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4333 echo "$as_me: error: unknown endianness
4334 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4335    { (exit 1); exit 1; }; } ;;
4336 esac
4337
4338
4339 if test "$cross_compiling" = yes; then
4340   LLVM_CROSS_COMPILING=1
4341
4342
4343 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4344 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4345 if test "${ac_cv_build_exeext+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4349   ac_cv_build_exeext=.exe
4350 else
4351   ac_build_prefix=${build_alias}-
4352
4353   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4354 set dummy ${ac_build_prefix}gcc; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   if test -n "$BUILD_CC"; then
4361   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4370     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376 IFS=$as_save_IFS
4377
4378 fi
4379 fi
4380 BUILD_CC=$ac_cv_prog_BUILD_CC
4381 if test -n "$BUILD_CC"; then
4382   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4383 echo "${ECHO_T}$BUILD_CC" >&6; }
4384 else
4385   { echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6; }
4387 fi
4388
4389
4390   if test -z "$BUILD_CC"; then
4391      # Extract the first word of "gcc", so it can be a program name with args.
4392 set dummy gcc; ac_word=$2
4393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4395 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   if test -n "$BUILD_CC"; then
4399   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406   for ac_exec_ext in '' $ac_executable_extensions; do
4407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4408     ac_cv_prog_BUILD_CC="gcc"
4409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410     break 2
4411   fi
4412 done
4413 done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 BUILD_CC=$ac_cv_prog_BUILD_CC
4419 if test -n "$BUILD_CC"; then
4420   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4421 echo "${ECHO_T}$BUILD_CC" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428      if test -z "$BUILD_CC"; then
4429        # Extract the first word of "cc", so it can be a program name with args.
4430 set dummy cc; ac_word=$2
4431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   if test -n "$BUILD_CC"; then
4437   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 else
4439   ac_prog_rejected=no
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4448        ac_prog_rejected=yes
4449        continue
4450      fi
4451     ac_cv_prog_BUILD_CC="cc"
4452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456 done
4457 IFS=$as_save_IFS
4458
4459 if test $ac_prog_rejected = yes; then
4460   # We found a bogon in the path, so make sure we never use it.
4461   set dummy $ac_cv_prog_BUILD_CC
4462   shift
4463   if test $# != 0; then
4464     # We chose a different compiler from the bogus one.
4465     # However, it has the same basename, so the bogon will be chosen
4466     # first if we set BUILD_CC to just the basename; use the full file name.
4467     shift
4468     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4469   fi
4470 fi
4471 fi
4472 fi
4473 BUILD_CC=$ac_cv_prog_BUILD_CC
4474 if test -n "$BUILD_CC"; then
4475   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476 echo "${ECHO_T}$BUILD_CC" >&6; }
4477 else
4478   { echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6; }
4480 fi
4481
4482
4483      fi
4484   fi
4485   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4486 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4487    { (exit 1); exit 1; }; }
4488   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4489   rm -f conftest*
4490   echo 'int main () { return 0; }' > conftest.$ac_ext
4491   ac_cv_build_exeext=
4492   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4493   (eval $ac_build_link) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; then
4497     for file in conftest.*; do
4498       case $file in
4499       *.c | *.o | *.obj | *.dSYM) ;;
4500       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4501       esac
4502     done
4503   else
4504     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4505 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4506    { (exit 1); exit 1; }; }
4507   fi
4508   rm -f conftest*
4509   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4510 fi
4511 fi
4512
4513 BUILD_EXEEXT=""
4514 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4515 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4516 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4517 ac_build_exeext=$BUILD_EXEEXT
4518
4519   ac_build_prefix=${build_alias}-
4520   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4521 set dummy ${ac_build_prefix}g++; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   if test -n "$BUILD_CXX"; then
4528   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4532 do
4533   IFS=$as_save_IFS
4534   test -z "$as_dir" && as_dir=.
4535   for ac_exec_ext in '' $ac_executable_extensions; do
4536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4537     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539     break 2
4540   fi
4541 done
4542 done
4543 IFS=$as_save_IFS
4544
4545 fi
4546 fi
4547 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4548 if test -n "$BUILD_CXX"; then
4549   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4550 echo "${ECHO_T}$BUILD_CXX" >&6; }
4551 else
4552   { echo "$as_me:$LINENO: result: no" >&5
4553 echo "${ECHO_T}no" >&6; }
4554 fi
4555
4556
4557   if test -z "$BUILD_CXX"; then
4558      # Extract the first word of "g++", so it can be a program name with args.
4559 set dummy g++; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   if test -n "$BUILD_CXX"; then
4566   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573   for ac_exec_ext in '' $ac_executable_extensions; do
4574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4575     ac_cv_prog_BUILD_CXX="g++"
4576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4586 if test -n "$BUILD_CXX"; then
4587   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4588 echo "${ECHO_T}$BUILD_CXX" >&6; }
4589 else
4590   { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4592 fi
4593
4594
4595      if test -z "$BUILD_CXX"; then
4596        # Extract the first word of "c++", so it can be a program name with args.
4597 set dummy c++; ac_word=$2
4598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   if test -n "$BUILD_CXX"; then
4604   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 else
4606   ac_prog_rejected=no
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610   IFS=$as_save_IFS
4611   test -z "$as_dir" && as_dir=.
4612   for ac_exec_ext in '' $ac_executable_extensions; do
4613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4614     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4615        ac_prog_rejected=yes
4616        continue
4617      fi
4618     ac_cv_prog_BUILD_CXX="c++"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 if test $ac_prog_rejected = yes; then
4627   # We found a bogon in the path, so make sure we never use it.
4628   set dummy $ac_cv_prog_BUILD_CXX
4629   shift
4630   if test $# != 0; then
4631     # We chose a different compiler from the bogus one.
4632     # However, it has the same basename, so the bogon will be chosen
4633     # first if we set BUILD_CXX to just the basename; use the full file name.
4634     shift
4635     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4636   fi
4637 fi
4638 fi
4639 fi
4640 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641 if test -n "$BUILD_CXX"; then
4642   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643 echo "${ECHO_T}$BUILD_CXX" >&6; }
4644 else
4645   { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 fi
4648
4649
4650      fi
4651   fi
4652 else
4653   LLVM_CROSS_COMPILING=0
4654
4655 fi
4656
4657 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4658   cvsbuild="yes"
4659   optimize="no"
4660   CVSBUILD=CVSBUILD=1
4661
4662 else
4663   cvsbuild="no"
4664   optimize="yes"
4665 fi
4666
4667
4668 # Check whether --enable-optimized was given.
4669 if test "${enable_optimized+set}" = set; then
4670   enableval=$enable_optimized;
4671 else
4672   enableval=$optimize
4673 fi
4674
4675 if test ${enableval} = "no" ; then
4676   ENABLE_OPTIMIZED=
4677
4678 else
4679   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4680
4681 fi
4682
4683 # Check whether --enable-profiling was given.
4684 if test "${enable_profiling+set}" = set; then
4685   enableval=$enable_profiling;
4686 else
4687   enableval="no"
4688 fi
4689
4690 if test ${enableval} = "no" ; then
4691   ENABLE_PROFILING=
4692
4693 else
4694   ENABLE_PROFILING=ENABLE_PROFILING=1
4695
4696 fi
4697
4698 # Check whether --enable-assertions was given.
4699 if test "${enable_assertions+set}" = set; then
4700   enableval=$enable_assertions;
4701 else
4702   enableval="yes"
4703 fi
4704
4705 if test ${enableval} = "yes" ; then
4706   DISABLE_ASSERTIONS=
4707
4708 else
4709   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4710
4711 fi
4712
4713 # Check whether --enable-expensive-checks was given.
4714 if test "${enable_expensive_checks+set}" = set; then
4715   enableval=$enable_expensive_checks;
4716 else
4717   enableval="no"
4718 fi
4719
4720 if test ${enableval} = "yes" ; then
4721   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4722
4723   EXPENSIVE_CHECKS=yes
4724
4725 else
4726   ENABLE_EXPENSIVE_CHECKS=
4727
4728   EXPENSIVE_CHECKS=no
4729
4730 fi
4731
4732 # Check whether --enable-debug-runtime was given.
4733 if test "${enable_debug_runtime+set}" = set; then
4734   enableval=$enable_debug_runtime;
4735 else
4736   enableval=no
4737 fi
4738
4739 if test ${enableval} = "no" ; then
4740   DEBUG_RUNTIME=
4741
4742 else
4743   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4744
4745 fi
4746
4747 # Check whether --enable-debug-symbols was given.
4748 if test "${enable_debug_symbols+set}" = set; then
4749   enableval=$enable_debug_symbols;
4750 else
4751   enableval=no
4752 fi
4753
4754 if test ${enableval} = "no" ; then
4755   DEBUG_SYMBOLS=
4756
4757 else
4758   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4759
4760 fi
4761
4762 # Check whether --enable-jit was given.
4763 if test "${enable_jit+set}" = set; then
4764   enableval=$enable_jit;
4765 else
4766   enableval=default
4767 fi
4768
4769 if test ${enableval} = "no"
4770 then
4771   JIT=
4772
4773 else
4774   case "$llvm_cv_target_arch" in
4775     x86)         TARGET_HAS_JIT=1
4776  ;;
4777     Sparc)       TARGET_HAS_JIT=0
4778  ;;
4779     PowerPC)     TARGET_HAS_JIT=1
4780  ;;
4781     x86_64)      TARGET_HAS_JIT=1
4782  ;;
4783     Alpha)       TARGET_HAS_JIT=1
4784  ;;
4785     ARM)         TARGET_HAS_JIT=1
4786  ;;
4787     Mips)        TARGET_HAS_JIT=0
4788  ;;
4789     PIC16)       TARGET_HAS_JIT=0
4790  ;;
4791     XCore)       TARGET_HAS_JIT=0
4792  ;;
4793     MSP430)      TARGET_HAS_JIT=0
4794  ;;
4795     SystemZ)     TARGET_HAS_JIT=0
4796  ;;
4797     Blackfin)    TARGET_HAS_JIT=0
4798  ;;
4799     MBlaze)      TARGET_HAS_JIT=0
4800  ;;
4801     *)           TARGET_HAS_JIT=0
4802  ;;
4803   esac
4804 fi
4805
4806 # Check whether --enable-doxygen was given.
4807 if test "${enable_doxygen+set}" = set; then
4808   enableval=$enable_doxygen;
4809 else
4810   enableval=default
4811 fi
4812
4813 case "$enableval" in
4814   yes) ENABLE_DOXYGEN=1
4815  ;;
4816   no)  ENABLE_DOXYGEN=0
4817  ;;
4818   default) ENABLE_DOXYGEN=0
4819  ;;
4820   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4821 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4822    { (exit 1); exit 1; }; } ;;
4823 esac
4824
4825 # Check whether --enable-threads was given.
4826 if test "${enable_threads+set}" = set; then
4827   enableval=$enable_threads;
4828 else
4829   enableval=default
4830 fi
4831
4832 case "$enableval" in
4833   yes) ENABLE_THREADS=1
4834  ;;
4835   no)  ENABLE_THREADS=0
4836  ;;
4837   default) ENABLE_THREADS=1
4838  ;;
4839   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4841    { (exit 1); exit 1; }; } ;;
4842 esac
4843
4844 cat >>confdefs.h <<_ACEOF
4845 #define ENABLE_THREADS $ENABLE_THREADS
4846 _ACEOF
4847
4848
4849 # Check whether --enable-pic was given.
4850 if test "${enable_pic+set}" = set; then
4851   enableval=$enable_pic;
4852 else
4853   enableval=default
4854 fi
4855
4856 case "$enableval" in
4857   yes) ENABLE_PIC=1
4858  ;;
4859   no)  ENABLE_PIC=0
4860  ;;
4861   default) ENABLE_PIC=1
4862  ;;
4863   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4864 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4865    { (exit 1); exit 1; }; } ;;
4866 esac
4867
4868 cat >>confdefs.h <<_ACEOF
4869 #define ENABLE_PIC $ENABLE_PIC
4870 _ACEOF
4871
4872
4873 # Check whether --enable-shared was given.
4874 if test "${enable_shared+set}" = set; then
4875   enableval=$enable_shared;
4876 else
4877   enableval=default
4878 fi
4879
4880 case "$enableval" in
4881   yes) ENABLE_SHARED=1
4882  ;;
4883   no)  ENABLE_SHARED=0
4884  ;;
4885   default) ENABLE_SHARED=0
4886  ;;
4887   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4888 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4889    { (exit 1); exit 1; }; } ;;
4890 esac
4891
4892 TARGETS_TO_BUILD=""
4893 # Check whether --enable-targets was given.
4894 if test "${enable_targets+set}" = set; then
4895   enableval=$enable_targets;
4896 else
4897   enableval=all
4898 fi
4899
4900 if test "$enableval" = host-only ; then
4901   enableval=host
4902 fi
4903 case "$enableval" in
4904   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4905   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4906       case "$a_target" in
4907         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4908         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4910         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4911         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4912         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4913         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4914         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4915         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4916         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4917         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4918         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4919         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4920         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921         msil)     TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4922         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4923         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4924         host) case "$llvm_cv_target_arch" in
4925             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4926             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4928             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4929             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4930             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4931             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4932             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4933             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4937             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4938             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4939             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940 echo "$as_me: error: Can not set target to build" >&2;}
4941    { (exit 1); exit 1; }; } ;;
4942           esac ;;
4943         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945    { (exit 1); exit 1; }; } ;;
4946       esac
4947   done
4948   ;;
4949 esac
4950 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951
4952
4953 # Determine whether we are building LLVM support for the native architecture.
4954 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4955 for a_target in $TARGETS_TO_BUILD; do
4956   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4957     LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4958
4959 cat >>confdefs.h <<_ACEOF
4960 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4961 _ACEOF
4962
4963   fi
4964 done
4965
4966 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4967 # target feature def files.
4968 LLVM_ENUM_TARGETS=""
4969 LLVM_ENUM_ASM_PRINTERS=""
4970 LLVM_ENUM_ASM_PARSERS=""
4971 LLVM_ENUM_DISASSEMBLERS=""
4972 for target_to_build in $TARGETS_TO_BUILD; do
4973   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4974   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4975     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4976   fi
4977   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4978     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4979   fi
4980   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4981     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4982   fi
4983 done
4984
4985
4986
4987
4988
4989 # Check whether --enable-cbe-printf-a was given.
4990 if test "${enable_cbe_printf_a+set}" = set; then
4991   enableval=$enable_cbe_printf_a;
4992 else
4993   enableval=default
4994 fi
4995
4996 case "$enableval" in
4997   yes) ENABLE_CBE_PRINTF_A=1
4998  ;;
4999   no)  ENABLE_CBE_PRINTF_A=0
5000  ;;
5001   default)  ENABLE_CBE_PRINTF_A=1
5002  ;;
5003   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5004 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5005    { (exit 1); exit 1; }; } ;;
5006 esac
5007
5008 cat >>confdefs.h <<_ACEOF
5009 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5010 _ACEOF
5011
5012
5013
5014 # Check whether --with-llvmgccdir was given.
5015 if test "${with_llvmgccdir+set}" = set; then
5016   withval=$with_llvmgccdir;
5017 else
5018   withval=default
5019 fi
5020
5021 case "$withval" in
5022   default) WITH_LLVMGCCDIR=default ;;
5023   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5024   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5025 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5026    { (exit 1); exit 1; }; } ;;
5027 esac
5028
5029
5030 # Check whether --with-llvmgcc was given.
5031 if test "${with_llvmgcc+set}" = set; then
5032   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5033       WITH_LLVMGCCDIR=""
5034 fi
5035
5036
5037
5038 # Check whether --with-llvmgxx was given.
5039 if test "${with_llvmgxx+set}" = set; then
5040   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5041     WITH_LLVMGCCDIR=""
5042 fi
5043
5044
5045 if test -n "$LLVMGCC"; then
5046    LLVMGCCCOMMAND="$LLVMGCC"
5047 fi
5048
5049 if test -n "$LLVMGXX"; then
5050    LLVMGXXCOMMAND="$LLVMGXX"
5051 fi
5052
5053 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5054    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5055 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5056    { (exit 1); exit 1; }; };
5057 fi
5058
5059 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5060    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5061 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5062    { (exit 1); exit 1; }; };
5063 fi
5064
5065
5066 # Check whether --with-clang was given.
5067 if test "${with_clang+set}" = set; then
5068   withval=$with_clang;
5069 else
5070   with_clang=default
5071 fi
5072
5073
5074
5075 # Check whether --with-built-clang was given.
5076 if test "${with_built_clang+set}" = set; then
5077   withval=$with_built_clang;
5078 else
5079   with_built_clang=check
5080 fi
5081
5082
5083 { echo "$as_me:$LINENO: checking clang compiler" >&5
5084 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5085 WITH_CLANGPATH=""
5086 WITH_BUILT_CLANG=0
5087 if test "$with_clang" != "default"; then
5088    WITH_CLANGPATH="$with_clang"
5089    if ! test -x "$WITH_CLANGPATH"; then
5090      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5091 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5092    { (exit 1); exit 1; }; }
5093    fi
5094 elif test "$with_built_clang" = "yes"; then
5095    WITH_BUILT_CLANG=1
5096 elif test "$with_built_clang" = "no"; then
5097    WITH_BUILT_CLANG=0
5098 else
5099    if test "$with_built_clang" != "check"; then
5100       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5101 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5102    { (exit 1); exit 1; }; }
5103    fi
5104
5105    if test -f ${srcdir}/tools/clang/README.txt; then
5106      WITH_BUILT_CLANG=1
5107    fi
5108 fi
5109
5110 if ! test -z "$WITH_CLANGPATH"; then
5111    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5112 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5113    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5114 elif test "$WITH_BUILT_CLANG" = "1"; then
5115    { echo "$as_me:$LINENO: result: built" >&5
5116 echo "${ECHO_T}built" >&6; }
5117 else
5118    { echo "$as_me:$LINENO: result: none" >&5
5119 echo "${ECHO_T}none" >&6; }
5120 fi
5121 CLANGPATH=$WITH_CLANGPATH
5122
5123 CLANGXXPATH=$WITH_CLANGXXPATH
5124
5125 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5126
5127
5128
5129 # Check whether --with-optimize-option was given.
5130 if test "${with_optimize_option+set}" = set; then
5131   withval=$with_optimize_option;
5132 else
5133   withval=default
5134 fi
5135
5136 { echo "$as_me:$LINENO: checking optimization flags" >&5
5137 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5138 case "$withval" in
5139   default)
5140     case "$llvm_cv_os_type" in
5141     MingW) optimize_option=-O3 ;;
5142     *)     optimize_option=-O2 ;;
5143     esac ;;
5144   *) optimize_option="$withval" ;;
5145 esac
5146 OPTIMIZE_OPTION=$optimize_option
5147
5148 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5149 echo "${ECHO_T}$optimize_option" >&6; }
5150
5151
5152 # Check whether --with-extra-options was given.
5153 if test "${with_extra_options+set}" = set; then
5154   withval=$with_extra_options;
5155 else
5156   withval=default
5157 fi
5158
5159 case "$withval" in
5160   default) EXTRA_OPTIONS= ;;
5161   *) EXTRA_OPTIONS=$withval ;;
5162 esac
5163 EXTRA_OPTIONS=$EXTRA_OPTIONS
5164
5165
5166 # Check whether --enable-bindings was given.
5167 if test "${enable_bindings+set}" = set; then
5168   enableval=$enable_bindings;
5169 else
5170   enableval=default
5171 fi
5172
5173 BINDINGS_TO_BUILD=""
5174 case "$enableval" in
5175   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5176   all ) BINDINGS_TO_BUILD="ocaml" ;;
5177   none | no) BINDINGS_TO_BUILD="" ;;
5178   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5179       case "$a_binding" in
5180         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5181         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5182 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184       esac
5185   done
5186   ;;
5187 esac
5188
5189
5190 # Check whether --with-ocaml-libdir was given.
5191 if test "${with_ocaml_libdir+set}" = set; then
5192   withval=$with_ocaml_libdir;
5193 else
5194   withval=auto
5195 fi
5196
5197 case "$withval" in
5198   auto) with_ocaml_libdir="$withval" ;;
5199   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5200   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5201 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5202    { (exit 1); exit 1; }; } ;;
5203 esac
5204
5205
5206 # Check whether --with-c-include-dirs was given.
5207 if test "${with_c_include_dirs+set}" = set; then
5208   withval=$with_c_include_dirs;
5209 else
5210   withval=""
5211 fi
5212
5213
5214 cat >>confdefs.h <<_ACEOF
5215 #define C_INCLUDE_DIRS "$withval"
5216 _ACEOF
5217
5218
5219
5220 # Check whether --with-cxx-include-root was given.
5221 if test "${with_cxx_include_root+set}" = set; then
5222   withval=$with_cxx_include_root;
5223 else
5224   withval=""
5225 fi
5226
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define CXX_INCLUDE_ROOT "$withval"
5230 _ACEOF
5231
5232
5233
5234 # Check whether --with-cxx-include-arch was given.
5235 if test "${with_cxx_include_arch+set}" = set; then
5236   withval=$with_cxx_include_arch;
5237 else
5238   withval=""
5239 fi
5240
5241
5242 cat >>confdefs.h <<_ACEOF
5243 #define CXX_INCLUDE_ARCH "$withval"
5244 _ACEOF
5245
5246
5247
5248 # Check whether --with-cxx-include-32bit-dir was given.
5249 if test "${with_cxx_include_32bit_dir+set}" = set; then
5250   withval=$with_cxx_include_32bit_dir;
5251 else
5252   withval=""
5253 fi
5254
5255
5256 cat >>confdefs.h <<_ACEOF
5257 #define CXX_INCLUDE_32BIT_DIR "$withval"
5258 _ACEOF
5259
5260
5261
5262 # Check whether --with-cxx-include-64bit-dir was given.
5263 if test "${with_cxx_include_64bit_dir+set}" = set; then
5264   withval=$with_cxx_include_64bit_dir;
5265 else
5266   withval=""
5267 fi
5268
5269
5270 cat >>confdefs.h <<_ACEOF
5271 #define CXX_INCLUDE_64BIT_DIR "$withval"
5272 _ACEOF
5273
5274
5275
5276 # Check whether --with-binutils-include was given.
5277 if test "${with_binutils_include+set}" = set; then
5278   withval=$with_binutils_include;
5279 else
5280   withval=default
5281 fi
5282
5283 case "$withval" in
5284   default) WITH_BINUTILS_INCDIR=default ;;
5285   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5286   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5287 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5288    { (exit 1); exit 1; }; } ;;
5289 esac
5290 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5291   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5292
5293   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5294      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5295      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5296 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5297    { (exit 1); exit 1; }; };
5298   fi
5299 fi
5300
5301 # Check whether --enable-libffi was given.
5302 if test "${enable_libffi+set}" = set; then
5303   enableval=$enable_libffi; case "$enableval" in
5304     yes) llvm_cv_enable_libffi="yes" ;;
5305     no)  llvm_cv_enable_libffi="no"  ;;
5306     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5307 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5308    { (exit 1); exit 1; }; } ;;
5309   esac
5310 else
5311   llvm_cv_enable_libffi=no
5312 fi
5313
5314
5315 if test "$llvm_cv_os_type" = "Win32" ; then
5316    llvmc_dynamic="yes"
5317 else
5318    llvmc_dynamic="no"
5319 fi
5320
5321 # Check whether --enable-llvmc-dynamic was given.
5322 if test "${enable_llvmc_dynamic+set}" = set; then
5323   enableval=$enable_llvmc_dynamic;
5324 else
5325   enableval=$llvmc_dynamic
5326 fi
5327
5328 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5329    ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5330
5331 else
5332    ENABLE_LLVMC_DYNAMIC=
5333
5334 fi
5335
5336 # Check whether --enable-llvmc-dynamic-plugins was given.
5337 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5338   enableval=$enable_llvmc_dynamic_plugins;
5339 else
5340   enableval=yes
5341 fi
5342
5343 if test ${enableval} = "yes" ; then
5344    ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5345
5346 else
5347    ENABLE_LLVMC_DYNAMIC_PLUGINS=
5348
5349 fi
5350
5351
5352 ac_ext=c
5353 ac_cpp='$CPP $CPPFLAGS'
5354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5359 # On Suns, sometimes $CPP names a directory.
5360 if test -n "$CPP" && test -d "$CPP"; then
5361   CPP=
5362 fi
5363 if test -z "$CPP"; then
5364   if test "${ac_cv_prog_CPP+set}" = set; then
5365   echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367       # Double quotes because CPP needs to be expanded
5368     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5369     do
5370       ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5372 do
5373   # Use a header file that comes with gcc, so configuring glibc
5374   # with a fresh cross-compiler works.
5375   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376   # <limits.h> exists even on freestanding compilers.
5377   # On the NeXT, cc -E runs the code through the compiler's parser,
5378   # not just through cpp. "Syntax error" is here to catch this case.
5379   cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390                      Syntax error
5391 _ACEOF
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 case "(($ac_try" in
5394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395   *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } >/dev/null; then
5405   if test -s conftest.err; then
5406     ac_cpp_err=$ac_c_preproc_warn_flag
5407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408   else
5409     ac_cpp_err=
5410   fi
5411 else
5412   ac_cpp_err=yes
5413 fi
5414 if test -z "$ac_cpp_err"; then
5415   :
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420   # Broken: fails on valid input.
5421 continue
5422 fi
5423
5424 rm -f conftest.err conftest.$ac_ext
5425
5426   # OK, works on sane cases.  Now check whether nonexistent headers
5427   # can be detected and how.
5428   cat >conftest.$ac_ext <<_ACEOF
5429 /* confdefs.h.  */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h.  */
5434 #include <ac_nonexistent.h>
5435 _ACEOF
5436 if { (ac_try="$ac_cpp conftest.$ac_ext"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443   ac_status=$?
5444   grep -v '^ *+' conftest.er1 >conftest.err
5445   rm -f conftest.er1
5446   cat conftest.err >&5
5447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448   (exit $ac_status); } >/dev/null; then
5449   if test -s conftest.err; then
5450     ac_cpp_err=$ac_c_preproc_warn_flag
5451     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5452   else
5453     ac_cpp_err=
5454   fi
5455 else
5456   ac_cpp_err=yes
5457 fi
5458 if test -z "$ac_cpp_err"; then
5459   # Broken: success on invalid input.
5460 continue
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465   # Passes both tests.
5466 ac_preproc_ok=:
5467 break
5468 fi
5469
5470 rm -f conftest.err conftest.$ac_ext
5471
5472 done
5473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5474 rm -f conftest.err conftest.$ac_ext
5475 if $ac_preproc_ok; then
5476   break
5477 fi
5478
5479     done
5480     ac_cv_prog_CPP=$CPP
5481
5482 fi
5483   CPP=$ac_cv_prog_CPP
5484 else
5485   ac_cv_prog_CPP=$CPP
5486 fi
5487 { echo "$as_me:$LINENO: result: $CPP" >&5
5488 echo "${ECHO_T}$CPP" >&6; }
5489 ac_preproc_ok=false
5490 for ac_c_preproc_warn_flag in '' yes
5491 do
5492   # Use a header file that comes with gcc, so configuring glibc
5493   # with a fresh cross-compiler works.
5494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495   # <limits.h> exists even on freestanding compilers.
5496   # On the NeXT, cc -E runs the code through the compiler's parser,
5497   # not just through cpp. "Syntax error" is here to catch this case.
5498   cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 #ifdef __STDC__
5505 # include <limits.h>
5506 #else
5507 # include <assert.h>
5508 #endif
5509                      Syntax error
5510 _ACEOF
5511 if { (ac_try="$ac_cpp conftest.$ac_ext"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } >/dev/null; then
5524   if test -s conftest.err; then
5525     ac_cpp_err=$ac_c_preproc_warn_flag
5526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527   else
5528     ac_cpp_err=
5529   fi
5530 else
5531   ac_cpp_err=yes
5532 fi
5533 if test -z "$ac_cpp_err"; then
5534   :
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539   # Broken: fails on valid input.
5540 continue
5541 fi
5542
5543 rm -f conftest.err conftest.$ac_ext
5544
5545   # OK, works on sane cases.  Now check whether nonexistent headers
5546   # can be detected and how.
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 #include <ac_nonexistent.h>
5554 _ACEOF
5555 if { (ac_try="$ac_cpp conftest.$ac_ext"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5562   ac_status=$?
5563   grep -v '^ *+' conftest.er1 >conftest.err
5564   rm -f conftest.er1
5565   cat conftest.err >&5
5566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567   (exit $ac_status); } >/dev/null; then
5568   if test -s conftest.err; then
5569     ac_cpp_err=$ac_c_preproc_warn_flag
5570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5571   else
5572     ac_cpp_err=
5573   fi
5574 else
5575   ac_cpp_err=yes
5576 fi
5577 if test -z "$ac_cpp_err"; then
5578   # Broken: success on invalid input.
5579 continue
5580 else
5581   echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584   # Passes both tests.
5585 ac_preproc_ok=:
5586 break
5587 fi
5588
5589 rm -f conftest.err conftest.$ac_ext
5590
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then
5595   :
5596 else
5597   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600 See \`config.log' for more details." >&2;}
5601    { (exit 1); exit 1; }; }
5602 fi
5603
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 if test -n "$ac_tool_prefix"; then
5616   for ac_prog in gcc
5617   do
5618     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   if test -n "$CC"; then
5626   ac_cv_prog_CC="$CC" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633   for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 CC=$ac_cv_prog_CC
5646 if test -n "$CC"; then
5647   { echo "$as_me:$LINENO: result: $CC" >&5
5648 echo "${ECHO_T}$CC" >&6; }
5649 else
5650   { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5652 fi
5653
5654
5655     test -n "$CC" && break
5656   done
5657 fi
5658 if test -z "$CC"; then
5659   ac_ct_CC=$CC
5660   for ac_prog in gcc
5661 do
5662   # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5667   echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669   if test -n "$ac_ct_CC"; then
5670   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_ac_ct_CC="$ac_prog"
5680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5692 echo "${ECHO_T}$ac_ct_CC" >&6; }
5693 else
5694   { echo "$as_me:$LINENO: result: no" >&5
5695 echo "${ECHO_T}no" >&6; }
5696 fi
5697
5698
5699   test -n "$ac_ct_CC" && break
5700 done
5701
5702   if test "x$ac_ct_CC" = x; then
5703     CC=""
5704   else
5705     case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708 whose name does not start with the host triplet.  If you think this
5709 configuration is useful to you, please write to autoconf@gnu.org." >&5
5710 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711 whose name does not start with the host triplet.  If you think this
5712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715     CC=$ac_ct_CC
5716   fi
5717 fi
5718
5719
5720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." >&5
5722 echo "$as_me: error: no acceptable C compiler found in \$PATH
5723 See \`config.log' for more details." >&2;}
5724    { (exit 1); exit 1; }; }
5725
5726 # Provide some information about the compiler.
5727 echo "$as_me:$LINENO: checking for C compiler version" >&5
5728 ac_compiler=`set X $ac_compile; echo $2`
5729 { (ac_try="$ac_compiler --version >&5"
5730 case "(($ac_try" in
5731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732   *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735   (eval "$ac_compiler --version >&5") 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }
5739 { (ac_try="$ac_compiler -v >&5"
5740 case "(($ac_try" in
5741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742   *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745   (eval "$ac_compiler -v >&5") 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }
5749 { (ac_try="$ac_compiler -V >&5"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compiler -V >&5") 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }
5759
5760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771
5772 int
5773 main ()
5774 {
5775 #ifndef __GNUC__
5776        choke me
5777 #endif
5778
5779   ;
5780   return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (ac_try="$ac_compile"
5785 case "(($ac_try" in
5786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787   *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790   (eval "$ac_compile") 2>conftest.er1
5791   ac_status=$?
5792   grep -v '^ *+' conftest.er1 >conftest.err
5793   rm -f conftest.er1
5794   cat conftest.err >&5
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); } &&
5797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5798   { (case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803   (eval "$ac_try") 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_try") 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; }; then
5817   ac_compiler_gnu=yes
5818 else
5819   echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822         ac_compiler_gnu=no
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5827
5828 fi
5829 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5831 GCC=`test $ac_compiler_gnu = yes && echo yes`
5832 ac_test_CFLAGS=${CFLAGS+set}
5833 ac_save_CFLAGS=$CFLAGS
5834 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5835 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   ac_save_c_werror_flag=$ac_c_werror_flag
5840    ac_c_werror_flag=yes
5841    ac_cv_prog_cc_g=no
5842    CFLAGS="-g"
5843    cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849
5850 int
5851 main ()
5852 {
5853
5854   ;
5855   return 0;
5856 }
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862   *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865   (eval "$ac_compile") 2>conftest.er1
5866   ac_status=$?
5867   grep -v '^ *+' conftest.er1 >conftest.err
5868   rm -f conftest.er1
5869   cat conftest.err >&5
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); } &&
5872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5873   { (case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_try") 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (case "(($ac_try" in
5884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885   *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888   (eval "$ac_try") 2>&5
5889   ac_status=$?
5890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891   (exit $ac_status); }; }; then
5892   ac_cv_prog_cc_g=yes
5893 else
5894   echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897         CFLAGS=""
5898       cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904
5905 int
5906 main ()
5907 {
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (ac_try="$ac_compile"
5915 case "(($ac_try" in
5916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917   *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920   (eval "$ac_compile") 2>conftest.er1
5921   ac_status=$?
5922   grep -v '^ *+' conftest.er1 >conftest.err
5923   rm -f conftest.er1
5924   cat conftest.err >&5
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); } &&
5927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928   { (case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_try") 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (case "(($ac_try" in
5939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940   *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943   (eval "$ac_try") 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947   :
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952         ac_c_werror_flag=$ac_save_c_werror_flag
5953          CFLAGS="-g"
5954          cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960
5961 int
5962 main ()
5963 {
5964
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973   *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976   (eval "$ac_compile") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984   { (case "(($ac_try" in
5985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986   *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989   (eval "$ac_try") 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; } &&
5993          { ac_try='test -s conftest.$ac_objext'
5994   { (case "(($ac_try" in
5995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996   *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999   (eval "$ac_try") 2>&5
6000   ac_status=$?
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); }; }; then
6003   ac_cv_prog_cc_g=yes
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009 fi
6010
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018    ac_c_werror_flag=$ac_save_c_werror_flag
6019 fi
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6022 if test "$ac_test_CFLAGS" = set; then
6023   CFLAGS=$ac_save_CFLAGS
6024 elif test $ac_cv_prog_cc_g = yes; then
6025   if test "$GCC" = yes; then
6026     CFLAGS="-g -O2"
6027   else
6028     CFLAGS="-g"
6029   fi
6030 else
6031   if test "$GCC" = yes; then
6032     CFLAGS="-O2"
6033   else
6034     CFLAGS=
6035   fi
6036 fi
6037 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6038 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_cc_c89+set}" = set; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   ac_cv_prog_cc_c89=no
6043 ac_save_CC=$CC
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <stdarg.h>
6051 #include <stdio.h>
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6058      char **p;
6059      int i;
6060 {
6061   return p[i];
6062 }
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6064 {
6065   char *s;
6066   va_list v;
6067   va_start (v,p);
6068   s = g (p, va_arg (v,int));
6069   va_end (v);
6070   return s;
6071 }
6072
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6074    function prototypes and stuff, but not '\xHH' hex character constants.
6075    These don't provoke an error unfortunately, instead are silently treated
6076    as 'x'.  The following induces an error, until -std is added to get
6077    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6078    array size at least.  It's necessary to write '\x00'==0 to get something
6079    that's true only with -std.  */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6081
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083    inside strings and character constants.  */
6084 #define FOO(x) 'x'
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6086
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6091 int argc;
6092 char **argv;
6093 int
6094 main ()
6095 {
6096 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6103 do
6104   CC="$ac_save_CC $ac_arg"
6105   rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112   (eval "$ac_compile") 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120   { (case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_try") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; } &&
6129          { ac_try='test -s conftest.$ac_objext'
6130   { (case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_try") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_prog_cc_c89=$ac_arg
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144
6145 fi
6146
6147 rm -f core conftest.err conftest.$ac_objext
6148   test "x$ac_cv_prog_cc_c89" != "xno" && break
6149 done
6150 rm -f conftest.$ac_ext
6151 CC=$ac_save_CC
6152
6153 fi
6154 # AC_CACHE_VAL
6155 case "x$ac_cv_prog_cc_c89" in
6156   x)
6157     { echo "$as_me:$LINENO: result: none needed" >&5
6158 echo "${ECHO_T}none needed" >&6; } ;;
6159   xno)
6160     { echo "$as_me:$LINENO: result: unsupported" >&5
6161 echo "${ECHO_T}unsupported" >&6; } ;;
6162   *)
6163     CC="$CC $ac_cv_prog_cc_c89"
6164     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6165 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6166 esac
6167
6168
6169 ac_ext=c
6170 ac_cpp='$CPP $CPPFLAGS'
6171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175 ac_ext=cpp
6176 ac_cpp='$CXXCPP $CPPFLAGS'
6177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6180 if test -z "$CXX"; then
6181   if test -n "$CCC"; then
6182     CXX=$CCC
6183   else
6184     if test -n "$ac_tool_prefix"; then
6185   for ac_prog in g++
6186   do
6187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_CXX+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$CXX"; then
6195   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 CXX=$ac_cv_prog_CXX
6215 if test -n "$CXX"; then
6216   { echo "$as_me:$LINENO: result: $CXX" >&5
6217 echo "${ECHO_T}$CXX" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223
6224     test -n "$CXX" && break
6225   done
6226 fi
6227 if test -z "$CXX"; then
6228   ac_ct_CXX=$CXX
6229   for ac_prog in g++
6230 do
6231   # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   if test -n "$ac_ct_CXX"; then
6239   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246   for ac_exec_ext in '' $ac_executable_extensions; do
6247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248     ac_cv_prog_ac_ct_CXX="$ac_prog"
6249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259 if test -n "$ac_ct_CXX"; then
6260   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268   test -n "$ac_ct_CXX" && break
6269 done
6270
6271   if test "x$ac_ct_CXX" = x; then
6272     CXX="g++"
6273   else
6274     case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&5
6279 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6280 whose name does not start with the host triplet.  If you think this
6281 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6282 ac_tool_warned=yes ;;
6283 esac
6284     CXX=$ac_ct_CXX
6285   fi
6286 fi
6287
6288   fi
6289 fi
6290 # Provide some information about the compiler.
6291 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6292 ac_compiler=`set X $ac_compile; echo $2`
6293 { (ac_try="$ac_compiler --version >&5"
6294 case "(($ac_try" in
6295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296   *) ac_try_echo=$ac_try;;
6297 esac
6298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6299   (eval "$ac_compiler --version >&5") 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }
6303 { (ac_try="$ac_compiler -v >&5"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compiler -v >&5") 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); }
6313 { (ac_try="$ac_compiler -V >&5"
6314 case "(($ac_try" in
6315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316   *) ac_try_echo=$ac_try;;
6317 esac
6318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319   (eval "$ac_compiler -V >&5") 2>&5
6320   ac_status=$?
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); }
6323
6324 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335
6336 int
6337 main ()
6338 {
6339 #ifndef __GNUC__
6340        choke me
6341 #endif
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354   (eval "$ac_compile") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6362   { (case "(($ac_try" in
6363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364   *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367   (eval "$ac_try") 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; } &&
6371          { ac_try='test -s conftest.$ac_objext'
6372   { (case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377   (eval "$ac_try") 2>&5
6378   ac_status=$?
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); }; }; then
6381   ac_compiler_gnu=yes
6382 else
6383   echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386         ac_compiler_gnu=no
6387 fi
6388
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6391
6392 fi
6393 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6394 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6395 GXX=`test $ac_compiler_gnu = yes && echo yes`
6396 ac_test_CXXFLAGS=${CXXFLAGS+set}
6397 ac_save_CXXFLAGS=$CXXFLAGS
6398 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6399 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6400 if test "${ac_cv_prog_cxx_g+set}" = set; then
6401   echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6404    ac_cxx_werror_flag=yes
6405    ac_cv_prog_cxx_g=no
6406    CXXFLAGS="-g"
6407    cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413
6414 int
6415 main ()
6416 {
6417
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426   *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429   (eval "$ac_compile") 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6437   { (case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442   (eval "$ac_try") 2>&5
6443   ac_status=$?
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); }; } &&
6446          { ac_try='test -s conftest.$ac_objext'
6447   { (case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_try") 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; }; then
6456   ac_cv_prog_cxx_g=yes
6457 else
6458   echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6460
6461         CXXFLAGS=""
6462       cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468
6469 int
6470 main ()
6471 {
6472
6473   ;
6474   return 0;
6475 }
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (ac_try="$ac_compile"
6479 case "(($ac_try" in
6480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481   *) ac_try_echo=$ac_try;;
6482 esac
6483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484   (eval "$ac_compile") 2>conftest.er1
6485   ac_status=$?
6486   grep -v '^ *+' conftest.er1 >conftest.err
6487   rm -f conftest.er1
6488   cat conftest.err >&5
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); } &&
6491          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6492   { (case "(($ac_try" in
6493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494   *) ac_try_echo=$ac_try;;
6495 esac
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497   (eval "$ac_try") 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; } &&
6501          { ac_try='test -s conftest.$ac_objext'
6502   { (case "(($ac_try" in
6503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504   *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507   (eval "$ac_try") 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   :
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6517          CXXFLAGS="-g"
6518          cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524
6525 int
6526 main ()
6527 {
6528
6529   ;
6530   return 0;
6531 }
6532 _ACEOF
6533 rm -f conftest.$ac_objext
6534 if { (ac_try="$ac_compile"
6535 case "(($ac_try" in
6536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537   *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540   (eval "$ac_compile") 2>conftest.er1
6541   ac_status=$?
6542   grep -v '^ *+' conftest.er1 >conftest.err
6543   rm -f conftest.er1
6544   cat conftest.err >&5
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); } &&
6547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6548   { (case "(($ac_try" in
6549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550   *) ac_try_echo=$ac_try;;
6551 esac
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553   (eval "$ac_try") 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); }; } &&
6557          { ac_try='test -s conftest.$ac_objext'
6558   { (case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563   (eval "$ac_try") 2>&5
6564   ac_status=$?
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); }; }; then
6567   ac_cv_prog_cxx_g=yes
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 fi
6580
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6583 fi
6584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6585 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6586 if test "$ac_test_CXXFLAGS" = set; then
6587   CXXFLAGS=$ac_save_CXXFLAGS
6588 elif test $ac_cv_prog_cxx_g = yes; then
6589   if test "$GXX" = yes; then
6590     CXXFLAGS="-g -O2"
6591   else
6592     CXXFLAGS="-g"
6593   fi
6594 else
6595   if test "$GXX" = yes; then
6596     CXXFLAGS="-O2"
6597   else
6598     CXXFLAGS=
6599   fi
6600 fi
6601 ac_ext=c
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6606
6607
6608 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6609 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6610 if test "${lt_cv_path_NM+set}" = set; then
6611   echo $ECHO_N "(cached) $ECHO_C" >&6
6612 else
6613   if test -n "$NM"; then
6614   # Let the user override the test.
6615   lt_cv_path_NM="$NM"
6616 else
6617   lt_nm_to_check="${ac_tool_prefix}nm"
6618   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6619     lt_nm_to_check="$lt_nm_to_check nm"
6620   fi
6621   for lt_tmp_nm in $lt_nm_to_check; do
6622     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6623     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6624       IFS="$lt_save_ifs"
6625       test -z "$ac_dir" && ac_dir=.
6626       tmp_nm="$ac_dir/$lt_tmp_nm"
6627       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6628         # Check to see if the nm accepts a BSD-compat flag.
6629         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6630         #   nm: unknown option "B" ignored
6631         # Tru64's nm complains that /dev/null is an invalid object file
6632         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6633         */dev/null* | *'Invalid file or object type'*)
6634           lt_cv_path_NM="$tmp_nm -B"
6635           break
6636           ;;
6637         *)
6638           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6639           */dev/null*)
6640             lt_cv_path_NM="$tmp_nm -p"
6641             break
6642             ;;
6643           *)
6644             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6645             continue # so that we can try to find one that supports BSD flags
6646             ;;
6647           esac
6648           ;;
6649         esac
6650       fi
6651     done
6652     IFS="$lt_save_ifs"
6653   done
6654   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6655 fi
6656 fi
6657 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6658 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6659 NM="$lt_cv_path_NM"
6660
6661
6662
6663 { echo "$as_me:$LINENO: checking for GNU make" >&5
6664 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6665 if test "${llvm_cv_gnu_make_command+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   llvm_cv_gnu_make_command=''
6669  for a in "$MAKE" make gmake gnumake ; do
6670   if test -z "$a" ; then continue ; fi ;
6671   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6672   then
6673    llvm_cv_gnu_make_command=$a ;
6674    break;
6675   fi
6676  done
6677 fi
6678 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6679 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6680  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6681    ifGNUmake='' ;
6682  else
6683    ifGNUmake='#' ;
6684    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6685 echo "${ECHO_T}\"Not found\"" >&6; };
6686  fi
6687
6688
6689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6691 LN_S=$as_ln_s
6692 if test "$LN_S" = "ln -s"; then
6693   { echo "$as_me:$LINENO: result: yes" >&5
6694 echo "${ECHO_T}yes" >&6; }
6695 else
6696   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6697 echo "${ECHO_T}no, using $LN_S" >&6; }
6698 fi
6699
6700 # Extract the first word of "cmp", so it can be a program name with args.
6701 set dummy cmp; ac_word=$2
6702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704 if test "${ac_cv_path_CMP+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707   case $CMP in
6708   [\\/]* | ?:[\\/]*)
6709   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6710   ;;
6711   *)
6712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6719     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6728   ;;
6729 esac
6730 fi
6731 CMP=$ac_cv_path_CMP
6732 if test -n "$CMP"; then
6733   { echo "$as_me:$LINENO: result: $CMP" >&5
6734 echo "${ECHO_T}$CMP" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741 # Extract the first word of "cp", so it can be a program name with args.
6742 set dummy cp; 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_CP+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   case $CP in
6749   [\\/]* | ?:[\\/]*)
6750   ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
6769   ;;
6770 esac
6771 fi
6772 CP=$ac_cv_path_CP
6773 if test -n "$CP"; then
6774   { echo "$as_me:$LINENO: result: $CP" >&5
6775 echo "${ECHO_T}$CP" >&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 "date", so it can be a program name with args.
6783 set dummy date; 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_DATE+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $DATE in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_DATE="$DATE" # 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_DATE="$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_DATE" && ac_cv_path_DATE="date"
6810   ;;
6811 esac
6812 fi
6813 DATE=$ac_cv_path_DATE
6814 if test -n "$DATE"; then
6815   { echo "$as_me:$LINENO: result: $DATE" >&5
6816 echo "${ECHO_T}$DATE" >&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 "find", so it can be a program name with args.
6824 set dummy find; 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_FIND+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   case $FIND in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND="find"
6851   ;;
6852 esac
6853 fi
6854 FIND=$ac_cv_path_FIND
6855 if test -n "$FIND"; then
6856   { echo "$as_me:$LINENO: result: $FIND" >&5
6857 echo "${ECHO_T}$FIND" >&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 "grep", so it can be a program name with args.
6865 set dummy grep; 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_GREP+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $GREP in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP="grep"
6892   ;;
6893 esac
6894 fi
6895 GREP=$ac_cv_path_GREP
6896 if test -n "$GREP"; then
6897   { echo "$as_me:$LINENO: result: $GREP" >&5
6898 echo "${ECHO_T}$GREP" >&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 "mkdir", so it can be a program name with args.
6906 set dummy mkdir; 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_MKDIR+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   case $MKDIR in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir"
6933   ;;
6934 esac
6935 fi
6936 MKDIR=$ac_cv_path_MKDIR
6937 if test -n "$MKDIR"; then
6938   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6939 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args.
6947 set dummy mv; 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_MV+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   case $MV in
6954   [\\/]* | ?:[\\/]*)
6955   ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv"
6974   ;;
6975 esac
6976 fi
6977 MV=$ac_cv_path_MV
6978 if test -n "$MV"; then
6979   { echo "$as_me:$LINENO: result: $MV" >&5
6980 echo "${ECHO_T}$MV" >&6; }
6981 else
6982   { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6984 fi
6985
6986
6987 if test -n "$ac_tool_prefix"; then
6988   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_prog_RANLIB+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   if test -n "$RANLIB"; then
6996   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 RANLIB=$ac_cv_prog_RANLIB
7016 if test -n "$RANLIB"; then
7017   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7018 echo "${ECHO_T}$RANLIB" >&6; }
7019 else
7020   { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_RANLIB"; then
7027   ac_ct_RANLIB=$RANLIB
7028   # Extract the first word of "ranlib", so it can be a program name with args.
7029 set dummy ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   if test -n "$ac_ct_RANLIB"; then
7036   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_ac_ct_RANLIB="ranlib"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056 if test -n "$ac_ct_RANLIB"; then
7057   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7058 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064   if test "x$ac_ct_RANLIB" = x; then
7065     RANLIB=":"
7066   else
7067     case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7070 whose name does not start with the host triplet.  If you think this
7071 configuration is useful to you, please write to autoconf@gnu.org." >&5
7072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7073 whose name does not start with the host triplet.  If you think this
7074 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077     RANLIB=$ac_ct_RANLIB
7078   fi
7079 else
7080   RANLIB="$ac_cv_prog_RANLIB"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}ar; ac_word=$2
7086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7088 if test "${ac_cv_prog_AR+set}" = set; then
7089   echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091   if test -n "$AR"; then
7092   ac_cv_prog_AR="$AR" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_prog_AR="${ac_tool_prefix}ar"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 AR=$ac_cv_prog_AR
7112 if test -n "$AR"; then
7113   { echo "$as_me:$LINENO: result: $AR" >&5
7114 echo "${ECHO_T}$AR" >&6; }
7115 else
7116   { echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_AR"; then
7123   ac_ct_AR=$AR
7124   # Extract the first word of "ar", so it can be a program name with args.
7125 set dummy ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   if test -n "$ac_ct_AR"; then
7132   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_ac_ct_AR="ar"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7152 if test -n "$ac_ct_AR"; then
7153   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7154 echo "${ECHO_T}$ac_ct_AR" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160   if test "x$ac_ct_AR" = x; then
7161     AR="false"
7162   else
7163     case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7166 whose name does not start with the host triplet.  If you think this
7167 configuration is useful to you, please write to autoconf@gnu.org." >&5
7168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7169 whose name does not start with the host triplet.  If you think this
7170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173     AR=$ac_ct_AR
7174   fi
7175 else
7176   AR="$ac_cv_prog_AR"
7177 fi
7178
7179 # Extract the first word of "rm", so it can be a program name with args.
7180 set dummy rm; ac_word=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_path_RM+set}" = set; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   case $RM in
7187   [\\/]* | ?:[\\/]*)
7188   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7189   ;;
7190   *)
7191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7207   ;;
7208 esac
7209 fi
7210 RM=$ac_cv_path_RM
7211 if test -n "$RM"; then
7212   { echo "$as_me:$LINENO: result: $RM" >&5
7213 echo "${ECHO_T}$RM" >&6; }
7214 else
7215   { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219
7220 # Extract the first word of "sed", so it can be a program name with args.
7221 set dummy sed; 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_SED+set}" = set; then
7225   echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227   case $SED in
7228   [\\/]* | ?:[\\/]*)
7229   ac_cv_path_SED="$SED" # 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_SED="$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_SED" && ac_cv_path_SED="sed"
7248   ;;
7249 esac
7250 fi
7251 SED=$ac_cv_path_SED
7252 if test -n "$SED"; then
7253   { echo "$as_me:$LINENO: result: $SED" >&5
7254 echo "${ECHO_T}$SED" >&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 "tar", so it can be a program name with args.
7262 set dummy tar; 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_TAR+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   case $TAR in
7269   [\\/]* | ?:[\\/]*)
7270   ac_cv_path_TAR="$TAR" # 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_TAR="$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_TAR" && ac_cv_path_TAR="gtar"
7289   ;;
7290 esac
7291 fi
7292 TAR=$ac_cv_path_TAR
7293 if test -n "$TAR"; then
7294   { echo "$as_me:$LINENO: result: $TAR" >&5
7295 echo "${ECHO_T}$TAR" >&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 "pwd", so it can be a program name with args.
7303 set dummy pwd; 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_BINPWD+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   case $BINPWD in
7310   [\\/]* | ?:[\\/]*)
7311   ac_cv_path_BINPWD="$BINPWD" # 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_BINPWD="$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_BINPWD" && ac_cv_path_BINPWD="pwd"
7330   ;;
7331 esac
7332 fi
7333 BINPWD=$ac_cv_path_BINPWD
7334 if test -n "$BINPWD"; then
7335   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7336 echo "${ECHO_T}$BINPWD" >&6; }
7337 else
7338   { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342
7343
7344 # Extract the first word of "Graphviz", so it can be a program name with args.
7345 set dummy Graphviz; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   case $GRAPHVIZ in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361   for ac_exec_ext in '' $ac_executable_extensions; do
7362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368 done
7369 IFS=$as_save_IFS
7370
7371   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7372   ;;
7373 esac
7374 fi
7375 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7376 if test -n "$GRAPHVIZ"; then
7377   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7378 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7379 else
7380   { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7382 fi
7383
7384
7385 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7386
7387 cat >>confdefs.h <<\_ACEOF
7388 #define HAVE_GRAPHVIZ 1
7389 _ACEOF
7390
7391     if test "$llvm_cv_os_type" = "MingW" ; then
7392     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7393   fi
7394
7395 cat >>confdefs.h <<_ACEOF
7396 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7397 _ACEOF
7398
7399 fi
7400 # Extract the first word of "dot", so it can be a program name with args.
7401 set dummy dot; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_path_DOT+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   case $DOT in
7408   [\\/]* | ?:[\\/]*)
7409   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7410   ;;
7411   *)
7412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7428   ;;
7429 esac
7430 fi
7431 DOT=$ac_cv_path_DOT
7432 if test -n "$DOT"; then
7433   { echo "$as_me:$LINENO: result: $DOT" >&5
7434 echo "${ECHO_T}$DOT" >&6; }
7435 else
7436   { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440
7441 if test "$DOT" != "echo dot" ; then
7442
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_DOT 1
7445 _ACEOF
7446
7447     if test "$llvm_cv_os_type" = "MingW" ; then
7448     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7449   fi
7450
7451 cat >>confdefs.h <<_ACEOF
7452 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7453 _ACEOF
7454
7455 fi
7456 # Extract the first word of "fdp", so it can be a program name with args.
7457 set dummy fdp; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_path_FDP+set}" = set; then
7461   echo $ECHO_N "(cached) $ECHO_C" >&6
7462 else
7463   case $FDP in
7464   [\\/]* | ?:[\\/]*)
7465   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7466   ;;
7467   *)
7468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473   for ac_exec_ext in '' $ac_executable_extensions; do
7474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7475     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480 done
7481 IFS=$as_save_IFS
7482
7483   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7484   ;;
7485 esac
7486 fi
7487 FDP=$ac_cv_path_FDP
7488 if test -n "$FDP"; then
7489   { echo "$as_me:$LINENO: result: $FDP" >&5
7490 echo "${ECHO_T}$FDP" >&6; }
7491 else
7492   { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494 fi
7495
7496
7497 if test "$FDP" != "echo fdp" ; then
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define HAVE_FDP 1
7501 _ACEOF
7502
7503     if test "$llvm_cv_os_type" = "MingW" ; then
7504     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7505   fi
7506
7507 cat >>confdefs.h <<_ACEOF
7508 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7509 _ACEOF
7510
7511 fi
7512 # Extract the first word of "neato", so it can be a program name with args.
7513 set dummy neato; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_path_NEATO+set}" = set; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   case $NEATO in
7520   [\\/]* | ?:[\\/]*)
7521   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7522   ;;
7523   *)
7524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7540   ;;
7541 esac
7542 fi
7543 NEATO=$ac_cv_path_NEATO
7544 if test -n "$NEATO"; then
7545   { echo "$as_me:$LINENO: result: $NEATO" >&5
7546 echo "${ECHO_T}$NEATO" >&6; }
7547 else
7548   { echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6; }
7550 fi
7551
7552
7553 if test "$NEATO" != "echo neato" ; then
7554
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_NEATO 1
7557 _ACEOF
7558
7559     if test "$llvm_cv_os_type" = "MingW" ; then
7560     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7561   fi
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7565 _ACEOF
7566
7567 fi
7568 # Extract the first word of "twopi", so it can be a program name with args.
7569 set dummy twopi; ac_word=$2
7570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572 if test "${ac_cv_path_TWOPI+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   case $TWOPI in
7576   [\\/]* | ?:[\\/]*)
7577   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7578   ;;
7579   *)
7580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585   for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592 done
7593 IFS=$as_save_IFS
7594
7595   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7596   ;;
7597 esac
7598 fi
7599 TWOPI=$ac_cv_path_TWOPI
7600 if test -n "$TWOPI"; then
7601   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7602 echo "${ECHO_T}$TWOPI" >&6; }
7603 else
7604   { echo "$as_me:$LINENO: result: no" >&5
7605 echo "${ECHO_T}no" >&6; }
7606 fi
7607
7608
7609 if test "$TWOPI" != "echo twopi" ; then
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define HAVE_TWOPI 1
7613 _ACEOF
7614
7615     if test "$llvm_cv_os_type" = "MingW" ; then
7616     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7617   fi
7618
7619 cat >>confdefs.h <<_ACEOF
7620 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7621 _ACEOF
7622
7623 fi
7624 # Extract the first word of "circo", so it can be a program name with args.
7625 set dummy circo; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_CIRCO+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $CIRCO in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7652   ;;
7653 esac
7654 fi
7655 CIRCO=$ac_cv_path_CIRCO
7656 if test -n "$CIRCO"; then
7657   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7658 echo "${ECHO_T}$CIRCO" >&6; }
7659 else
7660   { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7662 fi
7663
7664
7665 if test "$CIRCO" != "echo circo" ; then
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_CIRCO 1
7669 _ACEOF
7670
7671     if test "$llvm_cv_os_type" = "MingW" ; then
7672     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7673   fi
7674
7675 cat >>confdefs.h <<_ACEOF
7676 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7677 _ACEOF
7678
7679 fi
7680 for ac_prog in gv gsview32
7681 do
7682   # Extract the first word of "$ac_prog", so it can be a program name with args.
7683 set dummy $ac_prog; ac_word=$2
7684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686 if test "${ac_cv_path_GV+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   case $GV in
7690   [\\/]* | ?:[\\/]*)
7691   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7692   ;;
7693   *)
7694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7696 do
7697   IFS=$as_save_IFS
7698   test -z "$as_dir" && as_dir=.
7699   for ac_exec_ext in '' $ac_executable_extensions; do
7700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7701     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703     break 2
7704   fi
7705 done
7706 done
7707 IFS=$as_save_IFS
7708
7709   ;;
7710 esac
7711 fi
7712 GV=$ac_cv_path_GV
7713 if test -n "$GV"; then
7714   { echo "$as_me:$LINENO: result: $GV" >&5
7715 echo "${ECHO_T}$GV" >&6; }
7716 else
7717   { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7719 fi
7720
7721
7722   test -n "$GV" && break
7723 done
7724 test -n "$GV" || GV="echo gv"
7725
7726 if test "$GV" != "echo gv" ; then
7727
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_GV 1
7730 _ACEOF
7731
7732     if test "$llvm_cv_os_type" = "MingW" ; then
7733     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7734   fi
7735
7736 cat >>confdefs.h <<_ACEOF
7737 #define LLVM_PATH_GV "$GV${EXEEXT}"
7738 _ACEOF
7739
7740 fi
7741 # Extract the first word of "dotty", so it can be a program name with args.
7742 set dummy dotty; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_DOTTY+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $DOTTY in
7749   [\\/]* | ?:[\\/]*)
7750   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7751   ;;
7752   *)
7753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_exec_ext in '' $ac_executable_extensions; do
7759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762     break 2
7763   fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7769   ;;
7770 esac
7771 fi
7772 DOTTY=$ac_cv_path_DOTTY
7773 if test -n "$DOTTY"; then
7774   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7775 echo "${ECHO_T}$DOTTY" >&6; }
7776 else
7777   { echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6; }
7779 fi
7780
7781
7782 if test "$DOTTY" != "echo dotty" ; then
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_DOTTY 1
7786 _ACEOF
7787
7788     if test "$llvm_cv_os_type" = "MingW" ; then
7789     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7790   fi
7791
7792 cat >>confdefs.h <<_ACEOF
7793 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7794 _ACEOF
7795
7796 fi
7797
7798
7799 # Extract the first word of "perl", so it can be a program name with args.
7800 set dummy perl; ac_word=$2
7801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803 if test "${ac_cv_path_PERL+set}" = set; then
7804   echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806   case $PERL in
7807   [\\/]* | ?:[\\/]*)
7808   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7809   ;;
7810   *)
7811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816   for ac_exec_ext in '' $ac_executable_extensions; do
7817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7818     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7827   ;;
7828 esac
7829 fi
7830 PERL=$ac_cv_path_PERL
7831 if test -n "$PERL"; then
7832   { echo "$as_me:$LINENO: result: $PERL" >&5
7833 echo "${ECHO_T}$PERL" >&6; }
7834 else
7835   { echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6; }
7837 fi
7838
7839
7840 if test "$PERL" != "none"; then
7841   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7842 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7843   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7844     { echo "$as_me:$LINENO: result: yes" >&5
7845 echo "${ECHO_T}yes" >&6; }
7846   else
7847     PERL=none
7848     { echo "$as_me:$LINENO: result: not found" >&5
7849 echo "${ECHO_T}not found" >&6; }
7850   fi
7851 fi
7852
7853
7854 if test x"$PERL" = xnone; then
7855    HAVE_PERL=0
7856
7857    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7858 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7859    { (exit 1); exit 1; }; }
7860 else
7861    HAVE_PERL=1
7862
7863 fi
7864
7865 # Find a good install program.  We prefer a C program (faster),
7866 # so one script is as good as another.  But avoid the broken or
7867 # incompatible versions:
7868 # SysV /etc/install, /usr/sbin/install
7869 # SunOS /usr/etc/install
7870 # IRIX /sbin/install
7871 # AIX /bin/install
7872 # AmigaOS /C/install, which installs bootblocks on floppy discs
7873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7876 # OS/2's system install, which has a completely different semantic
7877 # ./install, which can be erroneously created by make from ./install.sh.
7878 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7880 if test -z "$INSTALL"; then
7881 if test "${ac_cv_path_install+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887   IFS=$as_save_IFS
7888   test -z "$as_dir" && as_dir=.
7889   # Account for people who put trailing slashes in PATH elements.
7890 case $as_dir/ in
7891   ./ | .// | /cC/* | \
7892   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7893   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7894   /usr/ucb/* ) ;;
7895   *)
7896     # OSF1 and SCO ODT 3.0 have their own names for install.
7897     # Don't use installbsd from OSF since it installs stuff as root
7898     # by default.
7899     for ac_prog in ginstall scoinst install; do
7900       for ac_exec_ext in '' $ac_executable_extensions; do
7901         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7902           if test $ac_prog = install &&
7903             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7904             # AIX install.  It has an incompatible calling convention.
7905             :
7906           elif test $ac_prog = install &&
7907             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908             # program-specific install script used by HP pwplus--don't use.
7909             :
7910           else
7911             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7912             break 3
7913           fi
7914         fi
7915       done
7916     done
7917     ;;
7918 esac
7919 done
7920 IFS=$as_save_IFS
7921
7922
7923 fi
7924   if test "${ac_cv_path_install+set}" = set; then
7925     INSTALL=$ac_cv_path_install
7926   else
7927     # As a last resort, use the slow shell script.  Don't cache a
7928     # value for INSTALL within a source directory, because that will
7929     # break other packages using the cache if that directory is
7930     # removed, or if the value is a relative name.
7931     INSTALL=$ac_install_sh
7932   fi
7933 fi
7934 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7935 echo "${ECHO_T}$INSTALL" >&6; }
7936
7937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7938 # It thinks the first close brace ends the variable substitution.
7939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7940
7941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7942
7943 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7944
7945
7946 # Extract the first word of "bzip2", so it can be a program name with args.
7947 set dummy bzip2; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_BZIP2+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   case $BZIP2 in
7954   [\\/]* | ?:[\\/]*)
7955   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7956   ;;
7957   *)
7958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973   ;;
7974 esac
7975 fi
7976 BZIP2=$ac_cv_path_BZIP2
7977 if test -n "$BZIP2"; then
7978   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7979 echo "${ECHO_T}$BZIP2" >&6; }
7980 else
7981   { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7983 fi
7984
7985
7986 # Extract the first word of "doxygen", so it can be a program name with args.
7987 set dummy doxygen; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   case $DOXYGEN in
7994   [\\/]* | ?:[\\/]*)
7995   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7996   ;;
7997   *)
7998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003   for ac_exec_ext in '' $ac_executable_extensions; do
8004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013   ;;
8014 esac
8015 fi
8016 DOXYGEN=$ac_cv_path_DOXYGEN
8017 if test -n "$DOXYGEN"; then
8018   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8019 echo "${ECHO_T}$DOXYGEN" >&6; }
8020 else
8021   { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8023 fi
8024
8025
8026 # Extract the first word of "groff", so it can be a program name with args.
8027 set dummy groff; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_GROFF+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   case $GROFF in
8034   [\\/]* | ?:[\\/]*)
8035   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8036   ;;
8037   *)
8038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043   for ac_exec_ext in '' $ac_executable_extensions; do
8044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050 done
8051 IFS=$as_save_IFS
8052
8053   ;;
8054 esac
8055 fi
8056 GROFF=$ac_cv_path_GROFF
8057 if test -n "$GROFF"; then
8058   { echo "$as_me:$LINENO: result: $GROFF" >&5
8059 echo "${ECHO_T}$GROFF" >&6; }
8060 else
8061   { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8063 fi
8064
8065
8066 # Extract the first word of "gzip", so it can be a program name with args.
8067 set dummy gzip; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_path_GZIP+set}" = set; then
8071   echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073   case $GZIP in
8074   [\\/]* | ?:[\\/]*)
8075   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8076   ;;
8077   *)
8078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081   IFS=$as_save_IFS
8082   test -z "$as_dir" && as_dir=.
8083   for ac_exec_ext in '' $ac_executable_extensions; do
8084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8085     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087     break 2
8088   fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093   ;;
8094 esac
8095 fi
8096 GZIP=$ac_cv_path_GZIP
8097 if test -n "$GZIP"; then
8098   { echo "$as_me:$LINENO: result: $GZIP" >&5
8099 echo "${ECHO_T}$GZIP" >&6; }
8100 else
8101   { echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6; }
8103 fi
8104
8105
8106 # Extract the first word of "pod2html", so it can be a program name with args.
8107 set dummy pod2html; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_path_POD2HTML+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   case $POD2HTML in
8114   [\\/]* | ?:[\\/]*)
8115   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8116   ;;
8117   *)
8118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121   IFS=$as_save_IFS
8122   test -z "$as_dir" && as_dir=.
8123   for ac_exec_ext in '' $ac_executable_extensions; do
8124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8125     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127     break 2
8128   fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133   ;;
8134 esac
8135 fi
8136 POD2HTML=$ac_cv_path_POD2HTML
8137 if test -n "$POD2HTML"; then
8138   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8139 echo "${ECHO_T}$POD2HTML" >&6; }
8140 else
8141   { echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6; }
8143 fi
8144
8145
8146 # Extract the first word of "pod2man", so it can be a program name with args.
8147 set dummy pod2man; ac_word=$2
8148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8150 if test "${ac_cv_path_POD2MAN+set}" = set; then
8151   echo $ECHO_N "(cached) $ECHO_C" >&6
8152 else
8153   case $POD2MAN in
8154   [\\/]* | ?:[\\/]*)
8155   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8156   ;;
8157   *)
8158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163   for ac_exec_ext in '' $ac_executable_extensions; do
8164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8165     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170 done
8171 IFS=$as_save_IFS
8172
8173   ;;
8174 esac
8175 fi
8176 POD2MAN=$ac_cv_path_POD2MAN
8177 if test -n "$POD2MAN"; then
8178   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8179 echo "${ECHO_T}$POD2MAN" >&6; }
8180 else
8181   { echo "$as_me:$LINENO: result: no" >&5
8182 echo "${ECHO_T}no" >&6; }
8183 fi
8184
8185
8186 # Extract the first word of "runtest", so it can be a program name with args.
8187 set dummy runtest; ac_word=$2
8188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8190 if test "${ac_cv_path_RUNTEST+set}" = set; then
8191   echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193   case $RUNTEST in
8194   [\\/]* | ?:[\\/]*)
8195   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8196   ;;
8197   *)
8198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201   IFS=$as_save_IFS
8202   test -z "$as_dir" && as_dir=.
8203   for ac_exec_ext in '' $ac_executable_extensions; do
8204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8205     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207     break 2
8208   fi
8209 done
8210 done
8211 IFS=$as_save_IFS
8212
8213   ;;
8214 esac
8215 fi
8216 RUNTEST=$ac_cv_path_RUNTEST
8217 if test -n "$RUNTEST"; then
8218   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8219 echo "${ECHO_T}$RUNTEST" >&6; }
8220 else
8221   { echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6; }
8223 fi
8224
8225
8226
8227 no_itcl=true
8228 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8229 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8230
8231 # Check whether --with-tclinclude was given.
8232 if test "${with_tclinclude+set}" = set; then
8233   withval=$with_tclinclude; with_tclinclude=${withval}
8234 else
8235   with_tclinclude=''
8236 fi
8237
8238 if test "${ac_cv_path_tclsh+set}" = set; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241
8242 if test x"${with_tclinclude}" != x ; then
8243   if test -f ${with_tclinclude}/tclsh ; then
8244     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8245   elif test -f ${with_tclinclude}/src/tclsh ; then
8246     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8247   else
8248     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8249 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8250    { (exit 1); exit 1; }; }
8251   fi
8252 fi
8253 fi
8254
8255
8256 if test x"${ac_cv_path_tclsh}" = x ; then
8257   { echo "$as_me:$LINENO: result: none" >&5
8258 echo "${ECHO_T}none" >&6; }
8259   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
8260 do
8261   # Extract the first word of "$ac_prog", so it can be a program name with args.
8262 set dummy $ac_prog; ac_word=$2
8263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265 if test "${ac_cv_path_TCLSH+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   case $TCLSH in
8269   [\\/]* | ?:[\\/]*)
8270   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8271   ;;
8272   *)
8273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276   IFS=$as_save_IFS
8277   test -z "$as_dir" && as_dir=.
8278   for ac_exec_ext in '' $ac_executable_extensions; do
8279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8280     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282     break 2
8283   fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288   ;;
8289 esac
8290 fi
8291 TCLSH=$ac_cv_path_TCLSH
8292 if test -n "$TCLSH"; then
8293   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8294 echo "${ECHO_T}$TCLSH" >&6; }
8295 else
8296   { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8298 fi
8299
8300
8301   test -n "$TCLSH" && break
8302 done
8303
8304   if test x"${TCLSH}" = x ; then
8305     ac_cv_path_tclsh='';
8306   else
8307     ac_cv_path_tclsh="${TCLSH}";
8308   fi
8309 else
8310   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8311 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8312   TCLSH="${ac_cv_path_tclsh}"
8313
8314 fi
8315
8316 # Extract the first word of "zip", so it can be a program name with args.
8317 set dummy zip; ac_word=$2
8318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8320 if test "${ac_cv_path_ZIP+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   case $ZIP in
8324   [\\/]* | ?:[\\/]*)
8325   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8326   ;;
8327   *)
8328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 for as_dir in $PATH
8330 do
8331   IFS=$as_save_IFS
8332   test -z "$as_dir" && as_dir=.
8333   for ac_exec_ext in '' $ac_executable_extensions; do
8334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8335     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8337     break 2
8338   fi
8339 done
8340 done
8341 IFS=$as_save_IFS
8342
8343   ;;
8344 esac
8345 fi
8346 ZIP=$ac_cv_path_ZIP
8347 if test -n "$ZIP"; then
8348   { echo "$as_me:$LINENO: result: $ZIP" >&5
8349 echo "${ECHO_T}$ZIP" >&6; }
8350 else
8351   { echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6; }
8353 fi
8354
8355
8356 for ac_prog in ocamlc
8357 do
8358   # Extract the first word of "$ac_prog", so it can be a program name with args.
8359 set dummy $ac_prog; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_OCAMLC+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   case $OCAMLC in
8366   [\\/]* | ?:[\\/]*)
8367   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8368   ;;
8369   *)
8370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375   for ac_exec_ext in '' $ac_executable_extensions; do
8376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8377     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385   ;;
8386 esac
8387 fi
8388 OCAMLC=$ac_cv_path_OCAMLC
8389 if test -n "$OCAMLC"; then
8390   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8391 echo "${ECHO_T}$OCAMLC" >&6; }
8392 else
8393   { echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6; }
8395 fi
8396
8397
8398   test -n "$OCAMLC" && break
8399 done
8400
8401 for ac_prog in ocamlopt
8402 do
8403   # Extract the first word of "$ac_prog", so it can be a program name with args.
8404 set dummy $ac_prog; ac_word=$2
8405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8407 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   case $OCAMLOPT in
8411   [\\/]* | ?:[\\/]*)
8412   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8413   ;;
8414   *)
8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420   for ac_exec_ext in '' $ac_executable_extensions; do
8421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8422     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430   ;;
8431 esac
8432 fi
8433 OCAMLOPT=$ac_cv_path_OCAMLOPT
8434 if test -n "$OCAMLOPT"; then
8435   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8436 echo "${ECHO_T}$OCAMLOPT" >&6; }
8437 else
8438   { echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6; }
8440 fi
8441
8442
8443   test -n "$OCAMLOPT" && break
8444 done
8445
8446 for ac_prog in ocamldep
8447 do
8448   # Extract the first word of "$ac_prog", so it can be a program name with args.
8449 set dummy $ac_prog; ac_word=$2
8450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8452 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   case $OCAMLDEP in
8456   [\\/]* | ?:[\\/]*)
8457   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8458   ;;
8459   *)
8460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 for as_dir in $PATH
8462 do
8463   IFS=$as_save_IFS
8464   test -z "$as_dir" && as_dir=.
8465   for ac_exec_ext in '' $ac_executable_extensions; do
8466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8467     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8469     break 2
8470   fi
8471 done
8472 done
8473 IFS=$as_save_IFS
8474
8475   ;;
8476 esac
8477 fi
8478 OCAMLDEP=$ac_cv_path_OCAMLDEP
8479 if test -n "$OCAMLDEP"; then
8480   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8481 echo "${ECHO_T}$OCAMLDEP" >&6; }
8482 else
8483   { echo "$as_me:$LINENO: result: no" >&5
8484 echo "${ECHO_T}no" >&6; }
8485 fi
8486
8487
8488   test -n "$OCAMLDEP" && break
8489 done
8490
8491 for ac_prog in ocamldoc
8492 do
8493   # Extract the first word of "$ac_prog", so it can be a program name with args.
8494 set dummy $ac_prog; ac_word=$2
8495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8497 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   case $OCAMLDOC in
8501   [\\/]* | ?:[\\/]*)
8502   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8503   ;;
8504   *)
8505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510   for ac_exec_ext in '' $ac_executable_extensions; do
8511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8512     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520   ;;
8521 esac
8522 fi
8523 OCAMLDOC=$ac_cv_path_OCAMLDOC
8524 if test -n "$OCAMLDOC"; then
8525   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8526 echo "${ECHO_T}$OCAMLDOC" >&6; }
8527 else
8528   { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8530 fi
8531
8532
8533   test -n "$OCAMLDOC" && break
8534 done
8535
8536 for ac_prog in gas as
8537 do
8538   # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542 if test "${ac_cv_path_GAS+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   case $GAS in
8546   [\\/]* | ?:[\\/]*)
8547   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8548   ;;
8549   *)
8550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553   IFS=$as_save_IFS
8554   test -z "$as_dir" && as_dir=.
8555   for ac_exec_ext in '' $ac_executable_extensions; do
8556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8557     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559     break 2
8560   fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565   ;;
8566 esac
8567 fi
8568 GAS=$ac_cv_path_GAS
8569 if test -n "$GAS"; then
8570   { echo "$as_me:$LINENO: result: $GAS" >&5
8571 echo "${ECHO_T}$GAS" >&6; }
8572 else
8573   { echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6; }
8575 fi
8576
8577
8578   test -n "$GAS" && break
8579 done
8580
8581
8582 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8583 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8584 if test "${llvm_cv_link_use_r+set}" = set; then
8585   echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587    ac_ext=c
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8592
8593   oldcflags="$CFLAGS"
8594   CFLAGS="$CFLAGS -Wl,-R."
8595   cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605 int main() { return 0; }
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (ac_try="$ac_link"
8612 case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_link") 2>conftest.er1
8618   ac_status=$?
8619   grep -v '^ *+' conftest.er1 >conftest.err
8620   rm -f conftest.er1
8621   cat conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); } &&
8624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8625   { (case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_try") 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (case "(($ac_try" in
8636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637   *) ac_try_echo=$ac_try;;
8638 esac
8639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8640   (eval "$ac_try") 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; }; then
8644   llvm_cv_link_use_r=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649         llvm_cv_link_use_r=no
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext \
8653       conftest$ac_exeext conftest.$ac_ext
8654   CFLAGS="$oldcflags"
8655   ac_ext=c
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660
8661
8662 fi
8663 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8664 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8665 if test "$llvm_cv_link_use_r" = yes ; then
8666
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_LINK_R 1
8669 _ACEOF
8670
8671   fi
8672
8673
8674 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8675 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8676 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679    ac_ext=c
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8684
8685   oldcflags="$CFLAGS"
8686   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8687   cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 int
8695 main ()
8696 {
8697 int main() { return 0; }
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (ac_try="$ac_link"
8704 case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_link") 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8717   { (case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722   (eval "$ac_try") 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (case "(($ac_try" in
8728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729   *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732   (eval "$ac_try") 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   llvm_cv_link_use_export_dynamic=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741         llvm_cv_link_use_export_dynamic=no
8742 fi
8743
8744 rm -f core conftest.err conftest.$ac_objext \
8745       conftest$ac_exeext conftest.$ac_ext
8746   CFLAGS="$oldcflags"
8747   ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752
8753
8754 fi
8755 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8756 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8757 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8758
8759 cat >>confdefs.h <<\_ACEOF
8760 #define HAVE_LINK_EXPORT_DYNAMIC 1
8761 _ACEOF
8762
8763   fi
8764
8765
8766
8767
8768 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8769 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8770 if test "${ac_cv_c_const+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773   cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779
8780 int
8781 main ()
8782 {
8783 /* FIXME: Include the comments suggested by Paul. */
8784 #ifndef __cplusplus
8785   /* Ultrix mips cc rejects this.  */
8786   typedef int charset[2];
8787   const charset x;
8788   /* SunOS 4.1.1 cc rejects this.  */
8789   char const *const *ccp;
8790   char **p;
8791   /* NEC SVR4.0.2 mips cc rejects this.  */
8792   struct point {int x, y;};
8793   static struct point const zero = {0,0};
8794   /* AIX XL C 1.02.0.0 rejects this.
8795      It does not let you subtract one const X* pointer from another in
8796      an arm of an if-expression whose if-part is not a constant
8797      expression */
8798   const char *g = "string";
8799   ccp = &g + (g ? g-g : 0);
8800   /* HPUX 7.0 cc rejects these. */
8801   ++ccp;
8802   p = (char**) ccp;
8803   ccp = (char const *const *) p;
8804   { /* SCO 3.2v4 cc rejects this.  */
8805     char *t;
8806     char const *s = 0 ? (char *) 0 : (char const *) 0;
8807
8808     *t++ = 0;
8809     if (s) return 0;
8810   }
8811   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8812     int x[] = {25, 17};
8813     const int *foo = &x[0];
8814     ++foo;
8815   }
8816   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8817     typedef const int *iptr;
8818     iptr p = 0;
8819     ++p;
8820   }
8821   { /* AIX XL C 1.02.0.0 rejects this saying
8822        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8823     struct s { int j; const int *ap[3]; };
8824     struct s *b; b->j = 5;
8825   }
8826   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8827     const int foo = 10;
8828     if (!foo) return 0;
8829   }
8830   return !x[0] && !zero.x;
8831 #endif
8832
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_compile") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852   { (case "(($ac_try" in
8853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854   *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857   (eval "$ac_try") 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest.$ac_objext'
8862   { (case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_try") 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_c_const=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876         ac_cv_c_const=no
8877 fi
8878
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8882 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8883 if test $ac_cv_c_const = no; then
8884
8885 cat >>confdefs.h <<\_ACEOF
8886 #define const
8887 _ACEOF
8888
8889 fi
8890
8891
8892
8893
8894
8895
8896 ac_header_dirent=no
8897 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8898   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8899 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8900 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910 #include <sys/types.h>
8911 #include <$ac_hdr>
8912
8913 int
8914 main ()
8915 {
8916 if ((DIR *) 0)
8917 return 0;
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8924 case "(($ac_try" in
8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926   *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_compile") 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; } &&
8946          { ac_try='test -s conftest.$ac_objext'
8947   { (case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952   (eval "$ac_try") 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   eval "$as_ac_Header=yes"
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961         eval "$as_ac_Header=no"
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 ac_res=`eval echo '${'$as_ac_Header'}'`
8967                { echo "$as_me:$LINENO: result: $ac_res" >&5
8968 echo "${ECHO_T}$ac_res" >&6; }
8969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8970   cat >>confdefs.h <<_ACEOF
8971 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8972 _ACEOF
8973
8974 ac_header_dirent=$ac_hdr; break
8975 fi
8976
8977 done
8978 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8979 if test $ac_header_dirent = dirent.h; then
8980   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982 if test "${ac_cv_search_opendir+set}" = set; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   ac_func_search_save_LIBS=$LIBS
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992
8993 /* Override any GCC internal prototype to avoid an error.
8994    Use char because int might match the return type of a GCC
8995    builtin and then its argument prototype would still apply.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 char opendir ();
9000 int
9001 main ()
9002 {
9003 return opendir ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 for ac_lib in '' dir; do
9009   if test -z "$ac_lib"; then
9010     ac_res="none required"
9011   else
9012     ac_res=-l$ac_lib
9013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9014   fi
9015   rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (ac_try="$ac_link"
9017 case "(($ac_try" in
9018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019   *) ac_try_echo=$ac_try;;
9020 esac
9021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022   (eval "$ac_link") 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030   { (case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035   (eval "$ac_try") 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); }; } &&
9039          { ac_try='test -s conftest$ac_exeext'
9040   { (case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_try") 2>&5
9046   ac_status=$?
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); }; }; then
9049   ac_cv_search_opendir=$ac_res
9050 else
9051   echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
9055 fi
9056
9057 rm -f core conftest.err conftest.$ac_objext \
9058       conftest$ac_exeext
9059   if test "${ac_cv_search_opendir+set}" = set; then
9060   break
9061 fi
9062 done
9063 if test "${ac_cv_search_opendir+set}" = set; then
9064   :
9065 else
9066   ac_cv_search_opendir=no
9067 fi
9068 rm conftest.$ac_ext
9069 LIBS=$ac_func_search_save_LIBS
9070 fi
9071 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9073 ac_res=$ac_cv_search_opendir
9074 if test "$ac_res" != no; then
9075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077 fi
9078
9079 else
9080   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9081 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9082 if test "${ac_cv_search_opendir+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   ac_func_search_save_LIBS=$LIBS
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092
9093 /* Override any GCC internal prototype to avoid an error.
9094    Use char because int might match the return type of a GCC
9095    builtin and then its argument prototype would still apply.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 char opendir ();
9100 int
9101 main ()
9102 {
9103 return opendir ();
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 for ac_lib in '' x; do
9109   if test -z "$ac_lib"; then
9110     ac_res="none required"
9111   else
9112     ac_res=-l$ac_lib
9113     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9114   fi
9115   rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119   *) ac_try_echo=$ac_try;;
9120 esac
9121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122   (eval "$ac_link") 2>conftest.er1
9123   ac_status=$?
9124   grep -v '^ *+' conftest.er1 >conftest.err
9125   rm -f conftest.er1
9126   cat conftest.err >&5
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } &&
9129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9130   { (case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135   (eval "$ac_try") 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest$ac_exeext'
9140   { (case "(($ac_try" in
9141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142   *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145   (eval "$ac_try") 2>&5
9146   ac_status=$?
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); }; }; then
9149   ac_cv_search_opendir=$ac_res
9150 else
9151   echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154
9155 fi
9156
9157 rm -f core conftest.err conftest.$ac_objext \
9158       conftest$ac_exeext
9159   if test "${ac_cv_search_opendir+set}" = set; then
9160   break
9161 fi
9162 done
9163 if test "${ac_cv_search_opendir+set}" = set; then
9164   :
9165 else
9166   ac_cv_search_opendir=no
9167 fi
9168 rm conftest.$ac_ext
9169 LIBS=$ac_func_search_save_LIBS
9170 fi
9171 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9172 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9173 ac_res=$ac_cv_search_opendir
9174 if test "$ac_res" != no; then
9175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9176
9177 fi
9178
9179 fi
9180
9181
9182 for ac_header in dlfcn.h
9183 do
9184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9186   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 fi
9191 ac_res=`eval echo '${'$as_ac_Header'}'`
9192                { echo "$as_me:$LINENO: result: $ac_res" >&5
9193 echo "${ECHO_T}$ac_res" >&6; }
9194 else
9195   # Is the header compilable?
9196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9198 cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204 $ac_includes_default
9205 #include <$ac_header>
9206 _ACEOF
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9209 case "(($ac_try" in
9210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211   *) ac_try_echo=$ac_try;;
9212 esac
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214   (eval "$ac_compile") 2>conftest.er1
9215   ac_status=$?
9216   grep -v '^ *+' conftest.er1 >conftest.err
9217   rm -f conftest.er1
9218   cat conftest.err >&5
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); } &&
9221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9222   { (case "(($ac_try" in
9223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224   *) ac_try_echo=$ac_try;;
9225 esac
9226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9227   (eval "$ac_try") 2>&5
9228   ac_status=$?
9229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230   (exit $ac_status); }; } &&
9231          { ac_try='test -s conftest.$ac_objext'
9232   { (case "(($ac_try" in
9233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234   *) ac_try_echo=$ac_try;;
9235 esac
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237   (eval "$ac_try") 2>&5
9238   ac_status=$?
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); }; }; then
9241   ac_header_compiler=yes
9242 else
9243   echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246         ac_header_compiler=no
9247 fi
9248
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9251 echo "${ECHO_T}$ac_header_compiler" >&6; }
9252
9253 # Is the header present?
9254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 #include <$ac_header>
9263 _ACEOF
9264 if { (ac_try="$ac_cpp conftest.$ac_ext"
9265 case "(($ac_try" in
9266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267   *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } >/dev/null; then
9277   if test -s conftest.err; then
9278     ac_cpp_err=$ac_c_preproc_warn_flag
9279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9280   else
9281     ac_cpp_err=
9282   fi
9283 else
9284   ac_cpp_err=yes
9285 fi
9286 if test -z "$ac_cpp_err"; then
9287   ac_header_preproc=yes
9288 else
9289   echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9291
9292   ac_header_preproc=no
9293 fi
9294
9295 rm -f conftest.err conftest.$ac_ext
9296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9297 echo "${ECHO_T}$ac_header_preproc" >&6; }
9298
9299 # So?  What about this header?
9300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9301   yes:no: )
9302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9306     ac_header_preproc=yes
9307     ;;
9308   no:yes:* )
9309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9321     ( cat <<\_ASBOX
9322 ## ----------------------------------- ##
9323 ## Report this to llvmbugs@cs.uiuc.edu ##
9324 ## ----------------------------------- ##
9325 _ASBOX
9326      ) | sed "s/^/$as_me: WARNING:     /" >&2
9327     ;;
9328 esac
9329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   eval "$as_ac_Header=\$ac_header_preproc"
9335 fi
9336 ac_res=`eval echo '${'$as_ac_Header'}'`
9337                { echo "$as_me:$LINENO: result: $ac_res" >&5
9338 echo "${ECHO_T}$ac_res" >&6; }
9339
9340 fi
9341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9342   cat >>confdefs.h <<_ACEOF
9343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9344 _ACEOF
9345
9346 fi
9347
9348 done
9349
9350 # Check whether --enable-ltdl-install was given.
9351 if test "${enable_ltdl_install+set}" = set; then
9352   enableval=$enable_ltdl_install;
9353 fi
9354
9355
9356
9357
9358 if test x"${enable_ltdl_install-no}" != xno; then
9359   INSTALL_LTDL_TRUE=
9360   INSTALL_LTDL_FALSE='#'
9361 else
9362   INSTALL_LTDL_TRUE='#'
9363   INSTALL_LTDL_FALSE=
9364 fi
9365
9366
9367
9368 if test x"${enable_ltdl_convenience-no}" != xno; then
9369   CONVENIENCE_LTDL_TRUE=
9370   CONVENIENCE_LTDL_FALSE='#'
9371 else
9372   CONVENIENCE_LTDL_TRUE='#'
9373   CONVENIENCE_LTDL_FALSE=
9374 fi
9375
9376
9377 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9378 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9379 library_names_spec=
9380 libname_spec='lib$name'
9381 soname_spec=
9382 shrext_cmds=".so"
9383 postinstall_cmds=
9384 postuninstall_cmds=
9385 finish_cmds=
9386 finish_eval=
9387 shlibpath_var=
9388 shlibpath_overrides_runpath=unknown
9389 version_type=none
9390 dynamic_linker="$host_os ld.so"
9391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9392 if test "$GCC" = yes; then
9393   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9394   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9395     # if the path contains ";" then we assume it to be the separator
9396     # otherwise default to the standard path separator (i.e. ":") - it is
9397     # assumed that no part of a normal pathname contains ";" but that should
9398     # okay in the real world where ";" in dirpaths is itself problematic.
9399     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9400   else
9401     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9402   fi
9403 else
9404   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9405 fi
9406 need_lib_prefix=unknown
9407 hardcode_into_libs=no
9408
9409 # when you set need_version to no, make sure it does not cause -set_version
9410 # flags to be left without arguments
9411 need_version=unknown
9412
9413 case $host_os in
9414 aix3*)
9415   version_type=linux
9416   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417   shlibpath_var=LIBPATH
9418
9419   # AIX 3 has no versioning support, so we append a major version to the name.
9420   soname_spec='${libname}${release}${shared_ext}$major'
9421   ;;
9422
9423 aix4* | aix5*)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   hardcode_into_libs=yes
9428   if test "$host_cpu" = ia64; then
9429     # AIX 5 supports IA64
9430     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431     shlibpath_var=LD_LIBRARY_PATH
9432   else
9433     # With GCC up to 2.95.x, collect2 would create an import file
9434     # for dependence libraries.  The import file would start with
9435     # the line `#! .'.  This would cause the generated library to
9436     # depend on `.', always an invalid library.  This was fixed in
9437     # development snapshots of GCC prior to 3.0.
9438     case $host_os in
9439       aix4 | aix4.[01] | aix4.[01].*)
9440       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9441            echo ' yes '
9442            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9443         :
9444       else
9445         can_build_shared=no
9446       fi
9447       ;;
9448     esac
9449     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450     # soname into executable. Probably we can add versioning support to
9451     # collect2, so additional links can be useful in future.
9452     if test "$aix_use_runtimelinking" = yes; then
9453       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454       # instead of lib<name>.a to let people know that these are not
9455       # typical AIX shared libraries.
9456       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457     else
9458       # We preserve .a as extension for shared libraries through AIX4.2
9459       # and later when we are not doing run time linking.
9460       library_names_spec='${libname}${release}.a $libname.a'
9461       soname_spec='${libname}${release}${shared_ext}$major'
9462     fi
9463     shlibpath_var=LIBPATH
9464   fi
9465   ;;
9466
9467 amigaos*)
9468   library_names_spec='$libname.ixlibrary $libname.a'
9469   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9470   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'
9471   ;;
9472
9473 beos*)
9474   library_names_spec='${libname}${shared_ext}'
9475   dynamic_linker="$host_os ld.so"
9476   shlibpath_var=LIBRARY_PATH
9477   ;;
9478
9479 bsdi[45]*)
9480   version_type=linux
9481   need_version=no
9482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483   soname_spec='${libname}${release}${shared_ext}$major'
9484   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9488   # the default ld.so.conf also contains /usr/contrib/lib and
9489   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490   # libtool to hard-code these into programs
9491   ;;
9492
9493 cygwin* | mingw* | pw32*)
9494   version_type=windows
9495   shrext_cmds=".dll"
9496   need_version=no
9497   need_lib_prefix=no
9498
9499   case $GCC,$host_os in
9500   yes,cygwin* | yes,mingw* | yes,pw32*)
9501     library_names_spec='$libname.dll.a'
9502     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503     postinstall_cmds='base_file=`basename \${file}`~
9504       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9505       dldir=$destdir/`dirname \$dlpath`~
9506       test -d \$dldir || mkdir -p \$dldir~
9507       $install_prog $dir/$dlname \$dldir/$dlname~
9508       chmod a+x \$dldir/$dlname'
9509     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9510       dlpath=$dir/\$dldll~
9511        $rm \$dlpath'
9512     shlibpath_overrides_runpath=yes
9513
9514     case $host_os in
9515     cygwin*)
9516       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9517       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9518       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9519       ;;
9520     mingw*)
9521       # MinGW DLLs use traditional 'lib' prefix
9522       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9524       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9525         # It is most probably a Windows format PATH printed by
9526         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9527         # path with ; separators, and with drive letters. We can handle the
9528         # drive letters (cygwin fileutils understands them), so leave them,
9529         # especially as we might pass files found there to a mingw objdump,
9530         # which wouldn't understand a cygwinified path. Ahh.
9531         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9532       else
9533         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9534       fi
9535       ;;
9536     pw32*)
9537       # pw32 DLLs use 'pw' prefix rather than 'lib'
9538       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9539       ;;
9540     esac
9541     ;;
9542
9543   *)
9544     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9545     ;;
9546   esac
9547   dynamic_linker='Win32 ld.exe'
9548   # FIXME: first we should search . and the directory the executable is in
9549   shlibpath_var=PATH
9550   ;;
9551
9552 darwin* | rhapsody*)
9553   dynamic_linker="$host_os dyld"
9554   version_type=darwin
9555   need_lib_prefix=no
9556   need_version=no
9557   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9558   soname_spec='${libname}${release}${major}$shared_ext'
9559   shlibpath_overrides_runpath=yes
9560   shlibpath_var=DYLD_LIBRARY_PATH
9561   shrext_cmds='.dylib'
9562   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9563   if test "$GCC" = yes; then
9564     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"`
9565   else
9566     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9567   fi
9568   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9569   ;;
9570
9571 dgux*)
9572   version_type=linux
9573   need_lib_prefix=no
9574   need_version=no
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   shlibpath_var=LD_LIBRARY_PATH
9578   ;;
9579
9580 freebsd1*)
9581   dynamic_linker=no
9582   ;;
9583
9584 kfreebsd*-gnu)
9585   version_type=linux
9586   need_lib_prefix=no
9587   need_version=no
9588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9589   soname_spec='${libname}${release}${shared_ext}$major'
9590   shlibpath_var=LD_LIBRARY_PATH
9591   shlibpath_overrides_runpath=no
9592   hardcode_into_libs=yes
9593   dynamic_linker='GNU ld.so'
9594   ;;
9595
9596 freebsd* | dragonfly*)
9597   # DragonFly does not have aout.  When/if they implement a new
9598   # versioning mechanism, adjust this.
9599   if test -x /usr/bin/objformat; then
9600     objformat=`/usr/bin/objformat`
9601   else
9602     case $host_os in
9603     freebsd[123]*) objformat=aout ;;
9604     *) objformat=elf ;;
9605     esac
9606   fi
9607   version_type=freebsd-$objformat
9608   case $version_type in
9609     freebsd-elf*)
9610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9611       need_version=no
9612       need_lib_prefix=no
9613       ;;
9614     freebsd-*)
9615       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9616       need_version=yes
9617       ;;
9618   esac
9619   shlibpath_var=LD_LIBRARY_PATH
9620   case $host_os in
9621   freebsd2*)
9622     shlibpath_overrides_runpath=yes
9623     ;;
9624   freebsd3.[01]* | freebsdelf3.[01]*)
9625     shlibpath_overrides_runpath=yes
9626     hardcode_into_libs=yes
9627     ;;
9628   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9629   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9630     shlibpath_overrides_runpath=no
9631     hardcode_into_libs=yes
9632     ;;
9633   freebsd*) # from 4.6 on
9634     shlibpath_overrides_runpath=yes
9635     hardcode_into_libs=yes
9636     ;;
9637   esac
9638   ;;
9639
9640 gnu*)
9641   version_type=linux
9642   need_lib_prefix=no
9643   need_version=no
9644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   shlibpath_var=LD_LIBRARY_PATH
9647   hardcode_into_libs=yes
9648   ;;
9649
9650 hpux9* | hpux10* | hpux11*)
9651   # Give a soname corresponding to the major version so that dld.sl refuses to
9652   # link against other versions.
9653   version_type=sunos
9654   need_lib_prefix=no
9655   need_version=no
9656   case $host_cpu in
9657   ia64*)
9658     shrext_cmds='.so'
9659     hardcode_into_libs=yes
9660     dynamic_linker="$host_os dld.so"
9661     shlibpath_var=LD_LIBRARY_PATH
9662     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664     soname_spec='${libname}${release}${shared_ext}$major'
9665     if test "X$HPUX_IA64_MODE" = X32; then
9666       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9667     else
9668       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9669     fi
9670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9671     ;;
9672    hppa*64*)
9673      shrext_cmds='.sl'
9674      hardcode_into_libs=yes
9675      dynamic_linker="$host_os dld.sl"
9676      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9677      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9678      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679      soname_spec='${libname}${release}${shared_ext}$major'
9680      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9681      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9682      ;;
9683    *)
9684     shrext_cmds='.sl'
9685     dynamic_linker="$host_os dld.sl"
9686     shlibpath_var=SHLIB_PATH
9687     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689     soname_spec='${libname}${release}${shared_ext}$major'
9690     ;;
9691   esac
9692   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9693   postinstall_cmds='chmod 555 $lib'
9694   ;;
9695
9696 interix3*)
9697   version_type=linux
9698   need_lib_prefix=no
9699   need_version=no
9700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9701   soname_spec='${libname}${release}${shared_ext}$major'
9702   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9703   shlibpath_var=LD_LIBRARY_PATH
9704   shlibpath_overrides_runpath=no
9705   hardcode_into_libs=yes
9706   ;;
9707
9708 irix5* | irix6* | nonstopux*)
9709   case $host_os in
9710     nonstopux*) version_type=nonstopux ;;
9711     *)
9712         if test "$lt_cv_prog_gnu_ld" = yes; then
9713                 version_type=linux
9714         else
9715                 version_type=irix
9716         fi ;;
9717   esac
9718   need_lib_prefix=no
9719   need_version=no
9720   soname_spec='${libname}${release}${shared_ext}$major'
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9722   case $host_os in
9723   irix5* | nonstopux*)
9724     libsuff= shlibsuff=
9725     ;;
9726   *)
9727     case $LD in # libtool.m4 will add one of these switches to LD
9728     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9729       libsuff= shlibsuff= libmagic=32-bit;;
9730     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9731       libsuff=32 shlibsuff=N32 libmagic=N32;;
9732     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9733       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9734     *) libsuff= shlibsuff= libmagic=never-match;;
9735     esac
9736     ;;
9737   esac
9738   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9739   shlibpath_overrides_runpath=no
9740   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9741   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9742   hardcode_into_libs=yes
9743   ;;
9744
9745 # No shared lib support for Linux oldld, aout, or coff.
9746 linux*oldld* | linux*aout* | linux*coff*)
9747   dynamic_linker=no
9748   ;;
9749
9750 # This must be Linux ELF.
9751 linux*)
9752   version_type=linux
9753   need_lib_prefix=no
9754   need_version=no
9755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756   soname_spec='${libname}${release}${shared_ext}$major'
9757   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9758   shlibpath_var=LD_LIBRARY_PATH
9759   shlibpath_overrides_runpath=no
9760   # This implies no fast_install, which is unacceptable.
9761   # Some rework will be needed to allow for fast_install
9762   # before this can be enabled.
9763   hardcode_into_libs=yes
9764
9765   # Append ld.so.conf contents to the search path
9766   if test -f /etc/ld.so.conf; then
9767     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' ' '`
9768     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9769   fi
9770
9771   # We used to test for /lib/ld.so.1 and disable shared libraries on
9772   # powerpc, because MkLinux only supported shared libraries with the
9773   # GNU dynamic linker.  Since this was broken with cross compilers,
9774   # most powerpc-linux boxes support dynamic linking these days and
9775   # people can always --disable-shared, the test was removed, and we
9776   # assume the GNU/Linux dynamic linker is in use.
9777   dynamic_linker='GNU/Linux ld.so'
9778   ;;
9779
9780 knetbsd*-gnu)
9781   version_type=linux
9782   need_lib_prefix=no
9783   need_version=no
9784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   shlibpath_overrides_runpath=no
9788   hardcode_into_libs=yes
9789   dynamic_linker='GNU ld.so'
9790   ;;
9791
9792 netbsd*)
9793   version_type=sunos
9794   need_lib_prefix=no
9795   need_version=no
9796   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9798     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9799     dynamic_linker='NetBSD (a.out) ld.so'
9800   else
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     dynamic_linker='NetBSD ld.elf_so'
9804   fi
9805   shlibpath_var=LD_LIBRARY_PATH
9806   shlibpath_overrides_runpath=yes
9807   hardcode_into_libs=yes
9808   ;;
9809
9810 newsos6)
9811   version_type=linux
9812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813   shlibpath_var=LD_LIBRARY_PATH
9814   shlibpath_overrides_runpath=yes
9815   ;;
9816
9817 nto-qnx*)
9818   version_type=linux
9819   need_lib_prefix=no
9820   need_version=no
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   shlibpath_var=LD_LIBRARY_PATH
9824   shlibpath_overrides_runpath=yes
9825   ;;
9826
9827 openbsd*)
9828   version_type=sunos
9829   sys_lib_dlsearch_path_spec="/usr/lib"
9830   need_lib_prefix=no
9831   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9832   case $host_os in
9833     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9834     *)                         need_version=no  ;;
9835   esac
9836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9837   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9838   shlibpath_var=LD_LIBRARY_PATH
9839   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9840     case $host_os in
9841       openbsd2.[89] | openbsd2.[89].*)
9842         shlibpath_overrides_runpath=no
9843         ;;
9844       *)
9845         shlibpath_overrides_runpath=yes
9846         ;;
9847       esac
9848   else
9849     shlibpath_overrides_runpath=yes
9850   fi
9851   ;;
9852
9853 os2*)
9854   libname_spec='$name'
9855   shrext_cmds=".dll"
9856   need_lib_prefix=no
9857   library_names_spec='$libname${shared_ext} $libname.a'
9858   dynamic_linker='OS/2 ld.exe'
9859   shlibpath_var=LIBPATH
9860   ;;
9861
9862 osf3* | osf4* | osf5*)
9863   version_type=osf
9864   need_lib_prefix=no
9865   need_version=no
9866   soname_spec='${libname}${release}${shared_ext}$major'
9867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868   shlibpath_var=LD_LIBRARY_PATH
9869   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9870   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9871   ;;
9872
9873 solaris*)
9874   version_type=linux
9875   need_lib_prefix=no
9876   need_version=no
9877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878   soname_spec='${libname}${release}${shared_ext}$major'
9879   shlibpath_var=LD_LIBRARY_PATH
9880   shlibpath_overrides_runpath=yes
9881   hardcode_into_libs=yes
9882   # ldd complains unless libraries are executable
9883   postinstall_cmds='chmod +x $lib'
9884   ;;
9885
9886 sunos4*)
9887   version_type=sunos
9888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9889   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9890   shlibpath_var=LD_LIBRARY_PATH
9891   shlibpath_overrides_runpath=yes
9892   if test "$with_gnu_ld" = yes; then
9893     need_lib_prefix=no
9894   fi
9895   need_version=yes
9896   ;;
9897
9898 sysv4 | sysv4.3*)
9899   version_type=linux
9900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901   soname_spec='${libname}${release}${shared_ext}$major'
9902   shlibpath_var=LD_LIBRARY_PATH
9903   case $host_vendor in
9904     sni)
9905       shlibpath_overrides_runpath=no
9906       need_lib_prefix=no
9907       export_dynamic_flag_spec='${wl}-Blargedynsym'
9908       runpath_var=LD_RUN_PATH
9909       ;;
9910     siemens)
9911       need_lib_prefix=no
9912       ;;
9913     motorola)
9914       need_lib_prefix=no
9915       need_version=no
9916       shlibpath_overrides_runpath=no
9917       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9918       ;;
9919   esac
9920   ;;
9921
9922 sysv4*MP*)
9923   if test -d /usr/nec ;then
9924     version_type=linux
9925     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9926     soname_spec='$libname${shared_ext}.$major'
9927     shlibpath_var=LD_LIBRARY_PATH
9928   fi
9929   ;;
9930
9931 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9932   version_type=freebsd-elf
9933   need_lib_prefix=no
9934   need_version=no
9935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9936   soname_spec='${libname}${release}${shared_ext}$major'
9937   shlibpath_var=LD_LIBRARY_PATH
9938   hardcode_into_libs=yes
9939   if test "$with_gnu_ld" = yes; then
9940     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9941     shlibpath_overrides_runpath=no
9942   else
9943     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9944     shlibpath_overrides_runpath=yes
9945     case $host_os in
9946       sco3.2v5*)
9947         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9948         ;;
9949     esac
9950   fi
9951   sys_lib_dlsearch_path_spec='/usr/lib'
9952   ;;
9953
9954 uts4*)
9955   version_type=linux
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957   soname_spec='${libname}${release}${shared_ext}$major'
9958   shlibpath_var=LD_LIBRARY_PATH
9959   ;;
9960
9961 *)
9962   dynamic_linker=no
9963   ;;
9964 esac
9965 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9966 echo "${ECHO_T}$dynamic_linker" >&6; }
9967 test "$dynamic_linker" = no && can_build_shared=no
9968
9969 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9970 if test "$GCC" = yes; then
9971   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9972 fi
9973
9974
9975 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9976 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9977 if test "${libltdl_cv_shlibext+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980
9981 module=yes
9982 eval libltdl_cv_shlibext=$shrext_cmds
9983
9984 fi
9985 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9986 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9987 if test -n "$libltdl_cv_shlibext"; then
9988
9989 cat >>confdefs.h <<_ACEOF
9990 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9991 _ACEOF
9992
9993 fi
9994
9995
9996 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9997 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9998 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9999   echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001   libltdl_cv_shlibpath_var="$shlibpath_var"
10002 fi
10003 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10004 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10005 if test -n "$libltdl_cv_shlibpath_var"; then
10006
10007 cat >>confdefs.h <<_ACEOF
10008 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10009 _ACEOF
10010
10011 fi
10012
10013
10014 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10015 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10016 if test "${libltdl_cv_sys_search_path+set}" = set; then
10017   echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10020 fi
10021 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10022 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10023 if test -n "$libltdl_cv_sys_search_path"; then
10024   sys_search_path=
10025   for dir in $libltdl_cv_sys_search_path; do
10026     if test -z "$sys_search_path"; then
10027       sys_search_path="$dir"
10028     else
10029       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10030     fi
10031   done
10032
10033 cat >>confdefs.h <<_ACEOF
10034 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10035 _ACEOF
10036
10037 fi
10038
10039 { echo "$as_me:$LINENO: checking for objdir" >&5
10040 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10041 if test "${libltdl_cv_objdir+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044   libltdl_cv_objdir="$objdir"
10045   if test -n "$objdir"; then
10046     :
10047   else
10048     rm -f .libs 2>/dev/null
10049     mkdir .libs 2>/dev/null
10050     if test -d .libs; then
10051       libltdl_cv_objdir=.libs
10052     else
10053       # MS-DOS does not allow filenames that begin with a dot.
10054       libltdl_cv_objdir=_libs
10055     fi
10056   rmdir .libs 2>/dev/null
10057   fi
10058
10059 fi
10060 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10061 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10062
10063 cat >>confdefs.h <<_ACEOF
10064 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10065 _ACEOF
10066
10067
10068
10069
10070
10071
10072 # Check for command to grab the raw symbol name followed by C symbol from nm.
10073 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10074 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10075 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078
10079 # These are sane defaults that work on at least a few old systems.
10080 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10081
10082 # Character class describing NM global symbol codes.
10083 symcode='[BCDEGRST]'
10084
10085 # Regexp to match symbols that can be accessed directly from C.
10086 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10087
10088 # Transform an extracted symbol line into a proper C declaration
10089 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10090
10091 # Transform an extracted symbol line into symbol name and symbol address
10092 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'"
10093
10094 # Define system-specific variables.
10095 case $host_os in
10096 aix*)
10097   symcode='[BCDT]'
10098   ;;
10099 cygwin* | mingw* | pw32*)
10100   symcode='[ABCDGISTW]'
10101   ;;
10102 hpux*) # Its linker distinguishes data from code symbols
10103   if test "$host_cpu" = ia64; then
10104     symcode='[ABCDEGRST]'
10105   fi
10106   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10107   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'"
10108   ;;
10109 linux*)
10110   if test "$host_cpu" = ia64; then
10111     symcode='[ABCDGIRSTW]'
10112     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10113     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'"
10114   fi
10115   ;;
10116 irix* | nonstopux*)
10117   symcode='[BCDEGRST]'
10118   ;;
10119 osf*)
10120   symcode='[BCDEGQRST]'
10121   ;;
10122 solaris*)
10123   symcode='[BDRT]'
10124   ;;
10125 sco3.2v5*)
10126   symcode='[DT]'
10127   ;;
10128 sysv4.2uw2*)
10129   symcode='[DT]'
10130   ;;
10131 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10132   symcode='[ABDT]'
10133   ;;
10134 sysv4)
10135   symcode='[DFNSTU]'
10136   ;;
10137 esac
10138
10139 # Handle CRLF in mingw tool chain
10140 opt_cr=
10141 case $build_os in
10142 mingw*)
10143   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10144   ;;
10145 esac
10146
10147 # If we're using GNU nm, then use its standard symbol codes.
10148 case `$NM -V 2>&1` in
10149 *GNU* | *'with BFD'*)
10150   symcode='[ABCDGIRSTW]' ;;
10151 esac
10152
10153 # Try without a prefix undercore, then with it.
10154 for ac_symprfx in "" "_"; do
10155
10156   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10157   symxfrm="\\1 $ac_symprfx\\2 \\2"
10158
10159   # Write the raw and C identifiers.
10160   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10161
10162   # Check to see that the pipe works correctly.
10163   pipe_works=no
10164
10165   rm -f conftest*
10166   cat > conftest.$ac_ext <<EOF
10167 #ifdef __cplusplus
10168 extern "C" {
10169 #endif
10170 char nm_test_var;
10171 void nm_test_func(){}
10172 #ifdef __cplusplus
10173 }
10174 #endif
10175 int main(){nm_test_var='a';nm_test_func();return(0);}
10176 EOF
10177
10178   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179   (eval $ac_compile) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; then
10183     # Now try to grab the symbols.
10184     nlist=conftest.nm
10185     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10186   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } && test -s "$nlist"; then
10190       # Try sorting and uniquifying the output.
10191       if sort "$nlist" | uniq > "$nlist"T; then
10192         mv -f "$nlist"T "$nlist"
10193       else
10194         rm -f "$nlist"T
10195       fi
10196
10197       # Make sure that we snagged all the symbols we need.
10198       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10199         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10200           cat <<EOF > conftest.$ac_ext
10201 #ifdef __cplusplus
10202 extern "C" {
10203 #endif
10204
10205 EOF
10206           # Now generate the symbol file.
10207           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10208
10209           cat <<EOF >> conftest.$ac_ext
10210 #if defined (__STDC__) && __STDC__
10211 # define lt_ptr_t void *
10212 #else
10213 # define lt_ptr_t char *
10214 # define const
10215 #endif
10216
10217 /* The mapping between symbol names and symbols. */
10218 const struct {
10219   const char *name;
10220   lt_ptr_t address;
10221 }
10222 lt_preloaded_symbols[] =
10223 {
10224 EOF
10225           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10226           cat <<\EOF >> conftest.$ac_ext
10227   {0, (lt_ptr_t) 0}
10228 };
10229
10230 #ifdef __cplusplus
10231 }
10232 #endif
10233 EOF
10234           # Now try linking the two files.
10235           mv conftest.$ac_objext conftstm.$ac_objext
10236           lt_save_LIBS="$LIBS"
10237           lt_save_CFLAGS="$CFLAGS"
10238           LIBS="conftstm.$ac_objext"
10239           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10240           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241   (eval $ac_link) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10245             pipe_works=yes
10246           fi
10247           LIBS="$lt_save_LIBS"
10248           CFLAGS="$lt_save_CFLAGS"
10249         else
10250           echo "cannot find nm_test_func in $nlist" >&5
10251         fi
10252       else
10253         echo "cannot find nm_test_var in $nlist" >&5
10254       fi
10255     else
10256       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10257     fi
10258   else
10259     echo "$progname: failed program was:" >&5
10260     cat conftest.$ac_ext >&5
10261   fi
10262   rm -f conftest* conftst*
10263
10264   # Do not use the global_symbol_pipe unless it works.
10265   if test "$pipe_works" = yes; then
10266     break
10267   else
10268     lt_cv_sys_global_symbol_pipe=
10269   fi
10270 done
10271
10272 fi
10273
10274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10275   lt_cv_sys_global_symbol_to_cdecl=
10276 fi
10277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10278   { echo "$as_me:$LINENO: result: failed" >&5
10279 echo "${ECHO_T}failed" >&6; }
10280 else
10281   { echo "$as_me:$LINENO: result: ok" >&5
10282 echo "${ECHO_T}ok" >&6; }
10283 fi
10284
10285
10286 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10287 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10288 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10292     libltdl_cv_preloaded_symbols=yes
10293   else
10294     libltdl_cv_preloaded_symbols=no
10295   fi
10296
10297 fi
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10299 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10300 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10301
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_PRELOADED_SYMBOLS 1
10304 _ACEOF
10305
10306 fi
10307
10308 LIBADD_DL=
10309
10310 ac_ext=c
10311 ac_cpp='$CPP $CPPFLAGS'
10312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10315
10316
10317 { echo "$as_me:$LINENO: checking for shl_load" >&5
10318 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10319 if test "${ac_cv_func_shl_load+set}" = set; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10330 #define shl_load innocuous_shl_load
10331
10332 /* System header to define __stub macros and hopefully few prototypes,
10333     which can conflict with char shl_load (); below.
10334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335     <limits.h> exists even on freestanding compilers.  */
10336
10337 #ifdef __STDC__
10338 # include <limits.h>
10339 #else
10340 # include <assert.h>
10341 #endif
10342
10343 #undef shl_load
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346    Use char because int might match the return type of a GCC
10347    builtin and then its argument prototype would still apply.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char shl_load ();
10352 /* The GNU C library defines this for functions which it implements
10353     to always fail with ENOSYS.  Some functions are actually named
10354     something starting with __ and the normal name is an alias.  */
10355 #if defined __stub_shl_load || defined __stub___shl_load
10356 choke me
10357 #endif
10358
10359 int
10360 main ()
10361 {
10362 return shl_load ();
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_link") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382   { (case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387   (eval "$ac_try") 2>&5
10388   ac_status=$?
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); }; } &&
10391          { ac_try='test -s conftest$ac_exeext'
10392   { (case "(($ac_try" in
10393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394   *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397   (eval "$ac_try") 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); }; }; then
10401   ac_cv_func_shl_load=yes
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406         ac_cv_func_shl_load=no
10407 fi
10408
10409 rm -f core conftest.err conftest.$ac_objext \
10410       conftest$ac_exeext conftest.$ac_ext
10411 fi
10412 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10413 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10414 if test $ac_cv_func_shl_load = yes; then
10415
10416 cat >>confdefs.h <<\_ACEOF
10417 #define HAVE_SHL_LOAD 1
10418 _ACEOF
10419
10420 else
10421   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10422 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10423 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10424   echo $ECHO_N "(cached) $ECHO_C" >&6
10425 else
10426   ac_check_lib_save_LIBS=$LIBS
10427 LIBS="-ldld  $LIBS"
10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h.  */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
10433 /* end confdefs.h.  */
10434
10435 /* Override any GCC internal prototype to avoid an error.
10436    Use char because int might match the return type of a GCC
10437    builtin and then its argument prototype would still apply.  */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 char shl_load ();
10442 int
10443 main ()
10444 {
10445 return shl_load ();
10446   ;
10447   return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454   *) ac_try_echo=$ac_try;;
10455 esac
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457   (eval "$ac_link") 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465   { (case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470   (eval "$ac_try") 2>&5
10471   ac_status=$?
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); }; } &&
10474          { ac_try='test -s conftest$ac_exeext'
10475   { (case "(($ac_try" in
10476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477   *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480   (eval "$ac_try") 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_lib_dld_shl_load=yes
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489         ac_cv_lib_dld_shl_load=no
10490 fi
10491
10492 rm -f core conftest.err conftest.$ac_objext \
10493       conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10497 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10498 if test $ac_cv_lib_dld_shl_load = yes; then
10499
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_SHL_LOAD 1
10502 _ACEOF
10503
10504         LIBADD_DL="$LIBADD_DL -ldld"
10505 else
10506   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509   echo $ECHO_N "(cached) $ECHO_C" >&6
10510 else
10511   ac_check_lib_save_LIBS=$LIBS
10512 LIBS="-ldl  $LIBS"
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519
10520 /* Override any GCC internal prototype to avoid an error.
10521    Use char because int might match the return type of a GCC
10522    builtin and then its argument prototype would still apply.  */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char dlopen ();
10527 int
10528 main ()
10529 {
10530 return dlopen ();
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (ac_try="$ac_link"
10537 case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_link") 2>conftest.er1
10543   ac_status=$?
10544   grep -v '^ *+' conftest.er1 >conftest.err
10545   rm -f conftest.er1
10546   cat conftest.err >&5
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); } &&
10549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; } &&
10559          { ac_try='test -s conftest$ac_exeext'
10560   { (case "(($ac_try" in
10561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562   *) ac_try_echo=$ac_try;;
10563 esac
10564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565   (eval "$ac_try") 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; }; then
10569   ac_cv_lib_dl_dlopen=yes
10570 else
10571   echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10573
10574         ac_cv_lib_dl_dlopen=no
10575 fi
10576
10577 rm -f core conftest.err conftest.$ac_objext \
10578       conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10580 fi
10581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10583 if test $ac_cv_lib_dl_dlopen = yes; then
10584
10585 cat >>confdefs.h <<\_ACEOF
10586 #define HAVE_LIBDL 1
10587 _ACEOF
10588
10589                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10590 else
10591   cat >conftest.$ac_ext <<_ACEOF
10592 /* confdefs.h.  */
10593 _ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h.  */
10597 #if HAVE_DLFCN_H
10598 #  include <dlfcn.h>
10599 #endif
10600
10601 int
10602 main ()
10603 {
10604 dlopen(0, 0);
10605   ;
10606   return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613   *) ac_try_echo=$ac_try;;
10614 esac
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616   (eval "$ac_link") 2>conftest.er1
10617   ac_status=$?
10618   grep -v '^ *+' conftest.er1 >conftest.err
10619   rm -f conftest.er1
10620   cat conftest.err >&5
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); } &&
10623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10624   { (case "(($ac_try" in
10625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626   *) ac_try_echo=$ac_try;;
10627 esac
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629   (eval "$ac_try") 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; } &&
10633          { ac_try='test -s conftest$ac_exeext'
10634   { (case "(($ac_try" in
10635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636   *) ac_try_echo=$ac_try;;
10637 esac
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639   (eval "$ac_try") 2>&5
10640   ac_status=$?
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); }; }; then
10643
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_LIBDL 1
10646 _ACEOF
10647  libltdl_cv_func_dlopen="yes"
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10653 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10654 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lsvld  $LIBS"
10659 cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h.  */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h.  */
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667    Use char because int might match the return type of a GCC
10668    builtin and then its argument prototype would still apply.  */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char dlopen ();
10673 int
10674 main ()
10675 {
10676 return dlopen ();
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_link") 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696   { (case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_try") 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; } &&
10705          { ac_try='test -s conftest$ac_exeext'
10706   { (case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_try") 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   ac_cv_lib_svld_dlopen=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720         ac_cv_lib_svld_dlopen=no
10721 fi
10722
10723 rm -f core conftest.err conftest.$ac_objext \
10724       conftest$ac_exeext conftest.$ac_ext
10725 LIBS=$ac_check_lib_save_LIBS
10726 fi
10727 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10728 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10729 if test $ac_cv_lib_svld_dlopen = yes; then
10730
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_LIBDL 1
10733 _ACEOF
10734
10735                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10736 else
10737   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10738 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10739 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742   ac_check_lib_save_LIBS=$LIBS
10743 LIBS="-ldld  $LIBS"
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char dld_link ();
10758 int
10759 main ()
10760 {
10761 return dld_link ();
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (ac_try="$ac_link"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_link") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } &&
10780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10781   { (case "(($ac_try" in
10782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783   *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786   (eval "$ac_try") 2>&5
10787   ac_status=$?
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); }; } &&
10790          { ac_try='test -s conftest$ac_exeext'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   ac_cv_lib_dld_dld_link=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805         ac_cv_lib_dld_dld_link=no
10806 fi
10807
10808 rm -f core conftest.err conftest.$ac_objext \
10809       conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10811 fi
10812 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10813 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10814 if test $ac_cv_lib_dld_dld_link = yes; then
10815
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_DLD 1
10818 _ACEOF
10819
10820                 LIBADD_DL="$LIBADD_DL -ldld"
10821 else
10822   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10823 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10824 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10825   echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827   cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10835 #define _dyld_func_lookup innocuous__dyld_func_lookup
10836
10837 /* System header to define __stub macros and hopefully few prototypes,
10838     which can conflict with char _dyld_func_lookup (); below.
10839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840     <limits.h> exists even on freestanding compilers.  */
10841
10842 #ifdef __STDC__
10843 # include <limits.h>
10844 #else
10845 # include <assert.h>
10846 #endif
10847
10848 #undef _dyld_func_lookup
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851    Use char because int might match the return type of a GCC
10852    builtin and then its argument prototype would still apply.  */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char _dyld_func_lookup ();
10857 /* The GNU C library defines this for functions which it implements
10858     to always fail with ENOSYS.  Some functions are actually named
10859     something starting with __ and the normal name is an alias.  */
10860 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10861 choke me
10862 #endif
10863
10864 int
10865 main ()
10866 {
10867 return _dyld_func_lookup ();
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   ac_cv_func__dyld_func_lookup=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_cv_func__dyld_func_lookup=no
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext \
10915       conftest$ac_exeext conftest.$ac_ext
10916 fi
10917 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10918 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10919 if test $ac_cv_func__dyld_func_lookup = yes; then
10920
10921 cat >>confdefs.h <<\_ACEOF
10922 #define HAVE_DYLD 1
10923 _ACEOF
10924
10925 fi
10926
10927
10928 fi
10929
10930
10931 fi
10932
10933
10934 fi
10935
10936 rm -f core conftest.err conftest.$ac_objext \
10937       conftest$ac_exeext conftest.$ac_ext
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945 fi
10946
10947
10948 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10949 then
10950   lt_save_LIBS="$LIBS"
10951   LIBS="$LIBS $LIBADD_DL"
10952
10953 for ac_func in dlerror
10954 do
10955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10959   echo $ECHO_N "(cached) $ECHO_C" >&6
10960 else
10961   cat >conftest.$ac_ext <<_ACEOF
10962 /* confdefs.h.  */
10963 _ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h.  */
10967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10969 #define $ac_func innocuous_$ac_func
10970
10971 /* System header to define __stub macros and hopefully few prototypes,
10972     which can conflict with char $ac_func (); below.
10973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974     <limits.h> exists even on freestanding compilers.  */
10975
10976 #ifdef __STDC__
10977 # include <limits.h>
10978 #else
10979 # include <assert.h>
10980 #endif
10981
10982 #undef $ac_func
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char $ac_func ();
10991 /* The GNU C library defines this for functions which it implements
10992     to always fail with ENOSYS.  Some functions are actually named
10993     something starting with __ and the normal name is an alias.  */
10994 #if defined __stub_$ac_func || defined __stub___$ac_func
10995 choke me
10996 #endif
10997
10998 int
10999 main ()
11000 {
11001 return $ac_func ();
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013   (eval "$ac_link") 2>conftest.er1
11014   ac_status=$?
11015   grep -v '^ *+' conftest.er1 >conftest.err
11016   rm -f conftest.er1
11017   cat conftest.err >&5
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11021   { (case "(($ac_try" in
11022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023   *) ac_try_echo=$ac_try;;
11024 esac
11025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11026   (eval "$ac_try") 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; } &&
11030          { ac_try='test -s conftest$ac_exeext'
11031   { (case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_try") 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; }; then
11040   eval "$as_ac_var=yes"
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045         eval "$as_ac_var=no"
11046 fi
11047
11048 rm -f core conftest.err conftest.$ac_objext \
11049       conftest$ac_exeext conftest.$ac_ext
11050 fi
11051 ac_res=`eval echo '${'$as_ac_var'}'`
11052                { echo "$as_me:$LINENO: result: $ac_res" >&5
11053 echo "${ECHO_T}$ac_res" >&6; }
11054 if test `eval echo '${'$as_ac_var'}'` = yes; then
11055   cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 fi
11060 done
11061
11062   LIBS="$lt_save_LIBS"
11063 fi
11064 ac_ext=c
11065 ac_cpp='$CPP $CPPFLAGS'
11066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069
11070
11071
11072 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11073 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11074 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   ac_cv_sys_symbol_underscore=no
11078   cat > conftest.$ac_ext <<EOF
11079 void nm_test_func(){}
11080 int main(){nm_test_func;return 0;}
11081 EOF
11082   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083   (eval $ac_compile) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; then
11087     # Now try to grab the symbols.
11088     ac_nlist=conftest.nm
11089     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11090   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && test -s "$ac_nlist"; then
11094       # See whether the symbols have a leading underscore.
11095       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11096         ac_cv_sys_symbol_underscore=yes
11097       else
11098         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11099           :
11100         else
11101           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11102         fi
11103       fi
11104     else
11105       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11106     fi
11107   else
11108     echo "configure: failed program was:" >&5
11109     cat conftest.c >&5
11110   fi
11111   rm -rf conftest*
11112
11113 fi
11114 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11115 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11116
11117
11118 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11119   if test x"$libltdl_cv_func_dlopen" = xyes ||
11120      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11121         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11122 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11123 if test "${libltdl_cv_need_uscore+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   libltdl_cv_need_uscore=unknown
11127           save_LIBS="$LIBS"
11128           LIBS="$LIBS $LIBADD_DL"
11129           if test "$cross_compiling" = yes; then :
11130   libltdl_cv_need_uscore=cross
11131 else
11132   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11133   lt_status=$lt_dlunknown
11134   cat > conftest.$ac_ext <<EOF
11135 #line 11130 "configure"
11136 #include "confdefs.h"
11137
11138 #if HAVE_DLFCN_H
11139 #include <dlfcn.h>
11140 #endif
11141
11142 #include <stdio.h>
11143
11144 #ifdef RTLD_GLOBAL
11145 #  define LT_DLGLOBAL           RTLD_GLOBAL
11146 #else
11147 #  ifdef DL_GLOBAL
11148 #    define LT_DLGLOBAL         DL_GLOBAL
11149 #  else
11150 #    define LT_DLGLOBAL         0
11151 #  endif
11152 #endif
11153
11154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11155    find out it does not work in some platform. */
11156 #ifndef LT_DLLAZY_OR_NOW
11157 #  ifdef RTLD_LAZY
11158 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11159 #  else
11160 #    ifdef DL_LAZY
11161 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11162 #    else
11163 #      ifdef RTLD_NOW
11164 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11165 #      else
11166 #        ifdef DL_NOW
11167 #          define LT_DLLAZY_OR_NOW      DL_NOW
11168 #        else
11169 #          define LT_DLLAZY_OR_NOW      0
11170 #        endif
11171 #      endif
11172 #    endif
11173 #  endif
11174 #endif
11175
11176 #ifdef __cplusplus
11177 extern "C" void exit (int);
11178 #endif
11179
11180 void fnord() { int i=42;}
11181 int main ()
11182 {
11183   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184   int status = $lt_dlunknown;
11185
11186   if (self)
11187     {
11188       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11189       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11190       /* dlclose (self); */
11191     }
11192   else
11193     puts (dlerror ());
11194
11195     exit (status);
11196 }
11197 EOF
11198   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11203     (./conftest; exit; ) >&5 2>/dev/null
11204     lt_status=$?
11205     case x$lt_status in
11206       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11207       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11208       x$lt_dlunknown|x*)  ;;
11209     esac
11210   else :
11211     # compilation failed
11212
11213   fi
11214 fi
11215 rm -fr conftest*
11216
11217           LIBS="$save_LIBS"
11218
11219 fi
11220 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11221 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11222   fi
11223 fi
11224
11225 if test x"$libltdl_cv_need_uscore" = xyes; then
11226
11227 cat >>confdefs.h <<\_ACEOF
11228 #define NEED_USCORE 1
11229 _ACEOF
11230
11231 fi
11232
11233
11234 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11235 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11236 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   # PORTME does your system automatically load deplibs for dlopen?
11240   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11241   # For now, we just catch OSes we know something about -- in the
11242   # future, we'll try test this programmatically.
11243   libltdl_cv_sys_dlopen_deplibs=unknown
11244   case "$host_os" in
11245   aix3*|aix4.1.*|aix4.2.*)
11246     # Unknown whether this is true for these versions of AIX, but
11247     # we want this `case' here to explicitly catch those versions.
11248     libltdl_cv_sys_dlopen_deplibs=unknown
11249     ;;
11250   aix[45]*)
11251     libltdl_cv_sys_dlopen_deplibs=yes
11252     ;;
11253   darwin*)
11254     # Assuming the user has installed a libdl from somewhere, this is true
11255     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11256     libltdl_cv_sys_dlopen_deplibs=yes
11257     ;;
11258   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11259     # GNU and its variants, using gnu ld.so (Glibc)
11260     libltdl_cv_sys_dlopen_deplibs=yes
11261     ;;
11262   hpux10*|hpux11*)
11263     libltdl_cv_sys_dlopen_deplibs=yes
11264     ;;
11265   interix*)
11266     libltdl_cv_sys_dlopen_deplibs=yes
11267     ;;
11268   irix[12345]*|irix6.[01]*)
11269     # Catch all versions of IRIX before 6.2, and indicate that we don't
11270     # know how it worked for any of those versions.
11271     libltdl_cv_sys_dlopen_deplibs=unknown
11272     ;;
11273   irix*)
11274     # The case above catches anything before 6.2, and it's known that
11275     # at 6.2 and later dlopen does load deplibs.
11276     libltdl_cv_sys_dlopen_deplibs=yes
11277     ;;
11278   netbsd*)
11279     libltdl_cv_sys_dlopen_deplibs=yes
11280     ;;
11281   openbsd*)
11282     libltdl_cv_sys_dlopen_deplibs=yes
11283     ;;
11284   osf[1234]*)
11285     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11286     # it did *not* use an RPATH in a shared library to find objects the
11287     # library depends on, so we explictly say `no'.
11288     libltdl_cv_sys_dlopen_deplibs=no
11289     ;;
11290   osf5.0|osf5.0a|osf5.1)
11291     # dlopen *does* load deplibs and with the right loader patch applied
11292     # it even uses RPATH in a shared library to search for shared objects
11293     # that the library depends on, but there's no easy way to know if that
11294     # patch is installed.  Since this is the case, all we can really
11295     # say is unknown -- it depends on the patch being installed.  If
11296     # it is, this changes to `yes'.  Without it, it would be `no'.
11297     libltdl_cv_sys_dlopen_deplibs=unknown
11298     ;;
11299   osf*)
11300     # the two cases above should catch all versions of osf <= 5.1.  Read
11301     # the comments above for what we know about them.
11302     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11303     # is used to find them so we can finally say `yes'.
11304     libltdl_cv_sys_dlopen_deplibs=yes
11305     ;;
11306   solaris*)
11307     libltdl_cv_sys_dlopen_deplibs=yes
11308     ;;
11309   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11310     libltdl_cv_sys_dlopen_deplibs=yes
11311     ;;
11312   esac
11313
11314 fi
11315 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11316 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11317 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define LTDL_DLOPEN_DEPLIBS 1
11321 _ACEOF
11322
11323 fi
11324
11325
11326 for ac_header in argz.h
11327 do
11328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11330   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11333   echo $ECHO_N "(cached) $ECHO_C" >&6
11334 fi
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336                { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11338 else
11339   # Is the header compilable?
11340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h.  */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h.  */
11348 $ac_includes_default
11349 #include <$ac_header>
11350 _ACEOF
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355   *) ac_try_echo=$ac_try;;
11356 esac
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358   (eval "$ac_compile") 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } &&
11365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11366   { (case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_try") 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; } &&
11375          { ac_try='test -s conftest.$ac_objext'
11376   { (case "(($ac_try" in
11377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378   *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381   (eval "$ac_try") 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   ac_header_compiler=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390         ac_header_compiler=no
11391 fi
11392
11393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11395 echo "${ECHO_T}$ac_header_compiler" >&6; }
11396
11397 # Is the header present?
11398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 #include <$ac_header>
11407 _ACEOF
11408 if { (ac_try="$ac_cpp conftest.$ac_ext"
11409 case "(($ac_try" in
11410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411   *) ac_try_echo=$ac_try;;
11412 esac
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11415   ac_status=$?
11416   grep -v '^ *+' conftest.er1 >conftest.err
11417   rm -f conftest.er1
11418   cat conftest.err >&5
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } >/dev/null; then
11421   if test -s conftest.err; then
11422     ac_cpp_err=$ac_c_preproc_warn_flag
11423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11424   else
11425     ac_cpp_err=
11426   fi
11427 else
11428   ac_cpp_err=yes
11429 fi
11430 if test -z "$ac_cpp_err"; then
11431   ac_header_preproc=yes
11432 else
11433   echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436   ac_header_preproc=no
11437 fi
11438
11439 rm -f conftest.err conftest.$ac_ext
11440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11441 echo "${ECHO_T}$ac_header_preproc" >&6; }
11442
11443 # So?  What about this header?
11444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11445   yes:no: )
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11450     ac_header_preproc=yes
11451     ;;
11452   no:yes:* )
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11465     ( cat <<\_ASBOX
11466 ## ----------------------------------- ##
11467 ## Report this to llvmbugs@cs.uiuc.edu ##
11468 ## ----------------------------------- ##
11469 _ASBOX
11470      ) | sed "s/^/$as_me: WARNING:     /" >&2
11471     ;;
11472 esac
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476   echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478   eval "$as_ac_Header=\$ac_header_preproc"
11479 fi
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481                { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483
11484 fi
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486   cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11488 _ACEOF
11489
11490 fi
11491
11492 done
11493
11494
11495 { echo "$as_me:$LINENO: checking for error_t" >&5
11496 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11497 if test "${ac_cv_type_error_t+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h.  */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h.  */
11506 #if HAVE_ARGZ_H
11507 #  include <argz.h>
11508 #endif
11509
11510 typedef error_t ac__type_new_;
11511 int
11512 main ()
11513 {
11514 if ((ac__type_new_ *) 0)
11515   return 0;
11516 if (sizeof (ac__type_new_))
11517   return 0;
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529   (eval "$ac_compile") 2>conftest.er1
11530   ac_status=$?
11531   grep -v '^ *+' conftest.er1 >conftest.err
11532   rm -f conftest.er1
11533   cat conftest.err >&5
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } &&
11536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537   { (case "(($ac_try" in
11538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539   *) ac_try_echo=$ac_try;;
11540 esac
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542   (eval "$ac_try") 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; } &&
11546          { ac_try='test -s conftest.$ac_objext'
11547   { (case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_try") 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); }; }; then
11556   ac_cv_type_error_t=yes
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561         ac_cv_type_error_t=no
11562 fi
11563
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 fi
11566 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11567 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11568 if test $ac_cv_type_error_t = yes; then
11569
11570 cat >>confdefs.h <<_ACEOF
11571 #define HAVE_ERROR_T 1
11572 _ACEOF
11573
11574
11575 else
11576
11577 cat >>confdefs.h <<\_ACEOF
11578 #define error_t int
11579 _ACEOF
11580
11581 fi
11582
11583
11584
11585
11586
11587
11588
11589 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11590 do
11591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11605 #define $ac_func innocuous_$ac_func
11606
11607 /* System header to define __stub macros and hopefully few prototypes,
11608     which can conflict with char $ac_func (); below.
11609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11610     <limits.h> exists even on freestanding compilers.  */
11611
11612 #ifdef __STDC__
11613 # include <limits.h>
11614 #else
11615 # include <assert.h>
11616 #endif
11617
11618 #undef $ac_func
11619
11620 /* Override any GCC internal prototype to avoid an error.
11621    Use char because int might match the return type of a GCC
11622    builtin and then its argument prototype would still apply.  */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char $ac_func ();
11627 /* The GNU C library defines this for functions which it implements
11628     to always fail with ENOSYS.  Some functions are actually named
11629     something starting with __ and the normal name is an alias.  */
11630 #if defined __stub_$ac_func || defined __stub___$ac_func
11631 choke me
11632 #endif
11633
11634 int
11635 main ()
11636 {
11637 return $ac_func ();
11638   ;
11639   return 0;
11640 }
11641 _ACEOF
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (ac_try="$ac_link"
11644 case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_link") 2>conftest.er1
11650   ac_status=$?
11651   grep -v '^ *+' conftest.er1 >conftest.err
11652   rm -f conftest.er1
11653   cat conftest.err >&5
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11657   { (case "(($ac_try" in
11658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659   *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662   (eval "$ac_try") 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; } &&
11666          { ac_try='test -s conftest$ac_exeext'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; }; then
11676   eval "$as_ac_var=yes"
11677 else
11678   echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11680
11681         eval "$as_ac_var=no"
11682 fi
11683
11684 rm -f core conftest.err conftest.$ac_objext \
11685       conftest$ac_exeext conftest.$ac_ext
11686 fi
11687 ac_res=`eval echo '${'$as_ac_var'}'`
11688                { echo "$as_me:$LINENO: result: $ac_res" >&5
11689 echo "${ECHO_T}$ac_res" >&6; }
11690 if test `eval echo '${'$as_ac_var'}'` = yes; then
11691   cat >>confdefs.h <<_ACEOF
11692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11693 _ACEOF
11694
11695 fi
11696 done
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11726                   stdio.h unistd.h
11727 do
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 fi
11735 ac_res=`eval echo '${'$as_ac_Header'}'`
11736                { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11738 else
11739   # Is the header compilable?
11740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11742 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h.  */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h.  */
11748 $ac_includes_default
11749 #include <$ac_header>
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755   *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758   (eval "$ac_compile") 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } &&
11765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11766   { (case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_try") 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; } &&
11775          { ac_try='test -s conftest.$ac_objext'
11776   { (case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_try") 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_header_compiler=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790         ac_header_compiler=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11796
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <$ac_header>
11807 _ACEOF
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811   *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11815   ac_status=$?
11816   grep -v '^ *+' conftest.er1 >conftest.err
11817   rm -f conftest.er1
11818   cat conftest.err >&5
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); } >/dev/null; then
11821   if test -s conftest.err; then
11822     ac_cpp_err=$ac_c_preproc_warn_flag
11823     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11824   else
11825     ac_cpp_err=
11826   fi
11827 else
11828   ac_cpp_err=yes
11829 fi
11830 if test -z "$ac_cpp_err"; then
11831   ac_header_preproc=yes
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836   ac_header_preproc=no
11837 fi
11838
11839 rm -f conftest.err conftest.$ac_ext
11840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6; }
11842
11843 # So?  What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845   yes:no: )
11846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11850     ac_header_preproc=yes
11851     ;;
11852   no:yes:* )
11853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865     ( cat <<\_ASBOX
11866 ## ----------------------------------- ##
11867 ## Report this to llvmbugs@cs.uiuc.edu ##
11868 ## ----------------------------------- ##
11869 _ASBOX
11870      ) | sed "s/^/$as_me: WARNING:     /" >&2
11871     ;;
11872 esac
11873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11876   echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878   eval "$as_ac_Header=\$ac_header_preproc"
11879 fi
11880 ac_res=`eval echo '${'$as_ac_Header'}'`
11881                { echo "$as_me:$LINENO: result: $ac_res" >&5
11882 echo "${ECHO_T}$ac_res" >&6; }
11883
11884 fi
11885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11886   cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888 _ACEOF
11889
11890 fi
11891
11892 done
11893
11894
11895
11896
11897
11898 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11899 do
11900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905   echo $ECHO_N "(cached) $ECHO_C" >&6
11906 fi
11907 ac_res=`eval echo '${'$as_ac_Header'}'`
11908                { echo "$as_me:$LINENO: result: $ac_res" >&5
11909 echo "${ECHO_T}$ac_res" >&6; }
11910 else
11911   # Is the header compilable?
11912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 $ac_includes_default
11921 #include <$ac_header>
11922 _ACEOF
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_compile") 2>conftest.er1
11931   ac_status=$?
11932   grep -v '^ *+' conftest.er1 >conftest.err
11933   rm -f conftest.er1
11934   cat conftest.err >&5
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); } &&
11937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11938   { (case "(($ac_try" in
11939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940   *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943   (eval "$ac_try") 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; } &&
11947          { ac_try='test -s conftest.$ac_objext'
11948   { (case "(($ac_try" in
11949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950   *) ac_try_echo=$ac_try;;
11951 esac
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953   (eval "$ac_try") 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; }; then
11957   ac_header_compiler=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962         ac_header_compiler=no
11963 fi
11964
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11967 echo "${ECHO_T}$ac_header_compiler" >&6; }
11968
11969 # Is the header present?
11970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11972 cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978 #include <$ac_header>
11979 _ACEOF
11980 if { (ac_try="$ac_cpp conftest.$ac_ext"
11981 case "(($ac_try" in
11982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983   *) ac_try_echo=$ac_try;;
11984 esac
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11987   ac_status=$?
11988   grep -v '^ *+' conftest.er1 >conftest.err
11989   rm -f conftest.er1
11990   cat conftest.err >&5
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); } >/dev/null; then
11993   if test -s conftest.err; then
11994     ac_cpp_err=$ac_c_preproc_warn_flag
11995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11996   else
11997     ac_cpp_err=
11998   fi
11999 else
12000   ac_cpp_err=yes
12001 fi
12002 if test -z "$ac_cpp_err"; then
12003   ac_header_preproc=yes
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008   ac_header_preproc=no
12009 fi
12010
12011 rm -f conftest.err conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12013 echo "${ECHO_T}$ac_header_preproc" >&6; }
12014
12015 # So?  What about this header?
12016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12017   yes:no: )
12018     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12022     ac_header_preproc=yes
12023     ;;
12024   no:yes:* )
12025     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12027     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12028 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12029     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12031     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12032 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12035     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12037     ( cat <<\_ASBOX
12038 ## ----------------------------------- ##
12039 ## Report this to llvmbugs@cs.uiuc.edu ##
12040 ## ----------------------------------- ##
12041 _ASBOX
12042      ) | sed "s/^/$as_me: WARNING:     /" >&2
12043     ;;
12044 esac
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   eval "$as_ac_Header=\$ac_header_preproc"
12051 fi
12052 ac_res=`eval echo '${'$as_ac_Header'}'`
12053                { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12055
12056 fi
12057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12058   cat >>confdefs.h <<_ACEOF
12059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12060 _ACEOF
12061
12062 fi
12063
12064 done
12065
12066
12067
12068 for ac_header in string.h strings.h
12069 do
12070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 fi
12077 ac_res=`eval echo '${'$as_ac_Header'}'`
12078                { echo "$as_me:$LINENO: result: $ac_res" >&5
12079 echo "${ECHO_T}$ac_res" >&6; }
12080 else
12081   # Is the header compilable?
12082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 $ac_includes_default
12091 #include <$ac_header>
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12101   ac_status=$?
12102   grep -v '^ *+' conftest.er1 >conftest.err
12103   rm -f conftest.er1
12104   cat conftest.err >&5
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } &&
12107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12108   { (case "(($ac_try" in
12109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110   *) ac_try_echo=$ac_try;;
12111 esac
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113   (eval "$ac_try") 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; } &&
12117          { ac_try='test -s conftest.$ac_objext'
12118   { (case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123   (eval "$ac_try") 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; }; then
12127   ac_header_compiler=yes
12128 else
12129   echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12131
12132         ac_header_compiler=no
12133 fi
12134
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12137 echo "${ECHO_T}$ac_header_compiler" >&6; }
12138
12139 # Is the header present?
12140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 #include <$ac_header>
12149 _ACEOF
12150 if { (ac_try="$ac_cpp conftest.$ac_ext"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } >/dev/null; then
12163   if test -s conftest.err; then
12164     ac_cpp_err=$ac_c_preproc_warn_flag
12165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12166   else
12167     ac_cpp_err=
12168   fi
12169 else
12170   ac_cpp_err=yes
12171 fi
12172 if test -z "$ac_cpp_err"; then
12173   ac_header_preproc=yes
12174 else
12175   echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178   ac_header_preproc=no
12179 fi
12180
12181 rm -f conftest.err conftest.$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12183 echo "${ECHO_T}$ac_header_preproc" >&6; }
12184
12185 # So?  What about this header?
12186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12187   yes:no: )
12188     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12192     ac_header_preproc=yes
12193     ;;
12194   no:yes:* )
12195     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12198 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12199     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12202 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12205     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12207     ( cat <<\_ASBOX
12208 ## ----------------------------------- ##
12209 ## Report this to llvmbugs@cs.uiuc.edu ##
12210 ## ----------------------------------- ##
12211 _ASBOX
12212      ) | sed "s/^/$as_me: WARNING:     /" >&2
12213     ;;
12214 esac
12215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   eval "$as_ac_Header=\$ac_header_preproc"
12221 fi
12222 ac_res=`eval echo '${'$as_ac_Header'}'`
12223                { echo "$as_me:$LINENO: result: $ac_res" >&5
12224 echo "${ECHO_T}$ac_res" >&6; }
12225
12226 fi
12227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12228   cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12230 _ACEOF
12231  break
12232 fi
12233
12234 done
12235
12236
12237
12238
12239 for ac_func in strchr index
12240 do
12241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12245   echo $ECHO_N "(cached) $ECHO_C" >&6
12246 else
12247   cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12255 #define $ac_func innocuous_$ac_func
12256
12257 /* System header to define __stub macros and hopefully few prototypes,
12258     which can conflict with char $ac_func (); below.
12259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260     <limits.h> exists even on freestanding compilers.  */
12261
12262 #ifdef __STDC__
12263 # include <limits.h>
12264 #else
12265 # include <assert.h>
12266 #endif
12267
12268 #undef $ac_func
12269
12270 /* Override any GCC internal prototype to avoid an error.
12271    Use char because int might match the return type of a GCC
12272    builtin and then its argument prototype would still apply.  */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char $ac_func ();
12277 /* The GNU C library defines this for functions which it implements
12278     to always fail with ENOSYS.  Some functions are actually named
12279     something starting with __ and the normal name is an alias.  */
12280 #if defined __stub_$ac_func || defined __stub___$ac_func
12281 choke me
12282 #endif
12283
12284 int
12285 main ()
12286 {
12287 return $ac_func ();
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext conftest$ac_exeext
12293 if { (ac_try="$ac_link"
12294 case "(($ac_try" in
12295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296   *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299   (eval "$ac_link") 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } &&
12306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307   { (case "(($ac_try" in
12308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309   *) ac_try_echo=$ac_try;;
12310 esac
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312   (eval "$ac_try") 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; } &&
12316          { ac_try='test -s conftest$ac_exeext'
12317   { (case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_try") 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   eval "$as_ac_var=yes"
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331         eval "$as_ac_var=no"
12332 fi
12333
12334 rm -f core conftest.err conftest.$ac_objext \
12335       conftest$ac_exeext conftest.$ac_ext
12336 fi
12337 ac_res=`eval echo '${'$as_ac_var'}'`
12338                { echo "$as_me:$LINENO: result: $ac_res" >&5
12339 echo "${ECHO_T}$ac_res" >&6; }
12340 if test `eval echo '${'$as_ac_var'}'` = yes; then
12341   cat >>confdefs.h <<_ACEOF
12342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12343 _ACEOF
12344  break
12345 fi
12346 done
12347
12348
12349
12350 for ac_func in strrchr rindex
12351 do
12352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12353 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12366 #define $ac_func innocuous_$ac_func
12367
12368 /* System header to define __stub macros and hopefully few prototypes,
12369     which can conflict with char $ac_func (); below.
12370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371     <limits.h> exists even on freestanding compilers.  */
12372
12373 #ifdef __STDC__
12374 # include <limits.h>
12375 #else
12376 # include <assert.h>
12377 #endif
12378
12379 #undef $ac_func
12380
12381 /* Override any GCC internal prototype to avoid an error.
12382    Use char because int might match the return type of a GCC
12383    builtin and then its argument prototype would still apply.  */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 char $ac_func ();
12388 /* The GNU C library defines this for functions which it implements
12389     to always fail with ENOSYS.  Some functions are actually named
12390     something starting with __ and the normal name is an alias.  */
12391 #if defined __stub_$ac_func || defined __stub___$ac_func
12392 choke me
12393 #endif
12394
12395 int
12396 main ()
12397 {
12398 return $ac_func ();
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_link") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest$ac_exeext'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   eval "$as_ac_var=yes"
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         eval "$as_ac_var=no"
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext \
12446       conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 ac_res=`eval echo '${'$as_ac_var'}'`
12449                { echo "$as_me:$LINENO: result: $ac_res" >&5
12450 echo "${ECHO_T}$ac_res" >&6; }
12451 if test `eval echo '${'$as_ac_var'}'` = yes; then
12452   cat >>confdefs.h <<_ACEOF
12453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12454 _ACEOF
12455  break
12456 fi
12457 done
12458
12459
12460
12461 for ac_func in memcpy bcopy
12462 do
12463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12467   echo $ECHO_N "(cached) $ECHO_C" >&6
12468 else
12469   cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h.  */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h.  */
12475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12477 #define $ac_func innocuous_$ac_func
12478
12479 /* System header to define __stub macros and hopefully few prototypes,
12480     which can conflict with char $ac_func (); below.
12481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12482     <limits.h> exists even on freestanding compilers.  */
12483
12484 #ifdef __STDC__
12485 # include <limits.h>
12486 #else
12487 # include <assert.h>
12488 #endif
12489
12490 #undef $ac_func
12491
12492 /* Override any GCC internal prototype to avoid an error.
12493    Use char because int might match the return type of a GCC
12494    builtin and then its argument prototype would still apply.  */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char $ac_func ();
12499 /* The GNU C library defines this for functions which it implements
12500     to always fail with ENOSYS.  Some functions are actually named
12501     something starting with __ and the normal name is an alias.  */
12502 #if defined __stub_$ac_func || defined __stub___$ac_func
12503 choke me
12504 #endif
12505
12506 int
12507 main ()
12508 {
12509 return $ac_func ();
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_link") 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529   { (case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; } &&
12538          { ac_try='test -s conftest$ac_exeext'
12539   { (case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_try") 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   eval "$as_ac_var=yes"
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553         eval "$as_ac_var=no"
12554 fi
12555
12556 rm -f core conftest.err conftest.$ac_objext \
12557       conftest$ac_exeext conftest.$ac_ext
12558 fi
12559 ac_res=`eval echo '${'$as_ac_var'}'`
12560                { echo "$as_me:$LINENO: result: $ac_res" >&5
12561 echo "${ECHO_T}$ac_res" >&6; }
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563   cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12565 _ACEOF
12566  break
12567 fi
12568 done
12569
12570
12571
12572 for ac_func in memmove strcmp
12573 do
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12588 #define $ac_func innocuous_$ac_func
12589
12590 /* System header to define __stub macros and hopefully few prototypes,
12591     which can conflict with char $ac_func (); below.
12592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593     <limits.h> exists even on freestanding compilers.  */
12594
12595 #ifdef __STDC__
12596 # include <limits.h>
12597 #else
12598 # include <assert.h>
12599 #endif
12600
12601 #undef $ac_func
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char $ac_func ();
12610 /* The GNU C library defines this for functions which it implements
12611     to always fail with ENOSYS.  Some functions are actually named
12612     something starting with __ and the normal name is an alias.  */
12613 #if defined __stub_$ac_func || defined __stub___$ac_func
12614 choke me
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 return $ac_func ();
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   eval "$as_ac_var=yes"
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664         eval "$as_ac_var=no"
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 ac_res=`eval echo '${'$as_ac_var'}'`
12671                { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674   cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 _ACEOF
12677
12678 fi
12679 done
12680
12681
12682
12683
12684 for ac_func in closedir opendir readdir
12685 do
12686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h.  */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h.  */
12698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12700 #define $ac_func innocuous_$ac_func
12701
12702 /* System header to define __stub macros and hopefully few prototypes,
12703     which can conflict with char $ac_func (); below.
12704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12705     <limits.h> exists even on freestanding compilers.  */
12706
12707 #ifdef __STDC__
12708 # include <limits.h>
12709 #else
12710 # include <assert.h>
12711 #endif
12712
12713 #undef $ac_func
12714
12715 /* Override any GCC internal prototype to avoid an error.
12716    Use char because int might match the return type of a GCC
12717    builtin and then its argument prototype would still apply.  */
12718 #ifdef __cplusplus
12719 extern "C"
12720 #endif
12721 char $ac_func ();
12722 /* The GNU C library defines this for functions which it implements
12723     to always fail with ENOSYS.  Some functions are actually named
12724     something starting with __ and the normal name is an alias.  */
12725 #if defined __stub_$ac_func || defined __stub___$ac_func
12726 choke me
12727 #endif
12728
12729 int
12730 main ()
12731 {
12732 return $ac_func ();
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_link") 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } &&
12751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752   { (case "(($ac_try" in
12753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754   *) ac_try_echo=$ac_try;;
12755 esac
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757   (eval "$ac_try") 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; } &&
12761          { ac_try='test -s conftest$ac_exeext'
12762   { (case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767   (eval "$ac_try") 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); }; }; then
12771   eval "$as_ac_var=yes"
12772 else
12773   echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776         eval "$as_ac_var=no"
12777 fi
12778
12779 rm -f core conftest.err conftest.$ac_objext \
12780       conftest$ac_exeext conftest.$ac_ext
12781 fi
12782 ac_res=`eval echo '${'$as_ac_var'}'`
12783                { echo "$as_me:$LINENO: result: $ac_res" >&5
12784 echo "${ECHO_T}$ac_res" >&6; }
12785 if test `eval echo '${'$as_ac_var'}'` = yes; then
12786   cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12788 _ACEOF
12789
12790 fi
12791 done
12792
12793
12794
12795 if test "$WITH_LLVMGCCDIR" = "default" ; then
12796   LLVMGCC="llvm-gcc${EXEEXT}"
12797   LLVMGXX="llvm-g++${EXEEXT}"
12798   LLVMGCCCOMMAND="$LLVMGCC"
12799   LLVMGXXCOMMAND="$LLVMGXX"
12800   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12801
12802   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12803
12804   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12805 set dummy $LLVMGCC; ac_word=$2
12806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12808 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12809   echo $ECHO_N "(cached) $ECHO_C" >&6
12810 else
12811   case $LLVMGCC in
12812   [\\/]* | ?:[\\/]*)
12813   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12814   ;;
12815   *)
12816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12818 do
12819   IFS=$as_save_IFS
12820   test -z "$as_dir" && as_dir=.
12821   for ac_exec_ext in '' $ac_executable_extensions; do
12822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12823     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12825     break 2
12826   fi
12827 done
12828 done
12829 IFS=$as_save_IFS
12830
12831   ;;
12832 esac
12833 fi
12834 LLVMGCC=$ac_cv_path_LLVMGCC
12835 if test -n "$LLVMGCC"; then
12836   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12837 echo "${ECHO_T}$LLVMGCC" >&6; }
12838 else
12839   { echo "$as_me:$LINENO: result: no" >&5
12840 echo "${ECHO_T}no" >&6; }
12841 fi
12842
12843
12844   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12845 set dummy $LLVMGXX; ac_word=$2
12846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12848 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   case $LLVMGXX in
12852   [\\/]* | ?:[\\/]*)
12853   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12854   ;;
12855   *)
12856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12858 do
12859   IFS=$as_save_IFS
12860   test -z "$as_dir" && as_dir=.
12861   for ac_exec_ext in '' $ac_executable_extensions; do
12862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12863     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865     break 2
12866   fi
12867 done
12868 done
12869 IFS=$as_save_IFS
12870
12871   ;;
12872 esac
12873 fi
12874 LLVMGXX=$ac_cv_path_LLVMGXX
12875 if test -n "$LLVMGXX"; then
12876   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12877 echo "${ECHO_T}$LLVMGXX" >&6; }
12878 else
12879   { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12881 fi
12882
12883
12884 else
12885   if test -z "$LLVMGCC"; then
12886     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12887     LLVMGCCCOMMAND="$LLVMGCC"
12888   fi
12889   if test -z "$LLVMGXX"; then
12890     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12891     LLVMGXXCOMMAND="$LLVMGXX"
12892   fi
12893
12894   LLVMGCC=$LLVMGCC
12895
12896   LLVMGXX=$LLVMGXX
12897
12898   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12899
12900   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12901
12902 fi
12903
12904
12905 # Check whether --with-llvmcc was given.
12906 if test "${with_llvmcc+set}" = set; then
12907   withval=$with_llvmcc;
12908 else
12909   with_llvmcc=check
12910 fi
12911
12912 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12913 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12914 if test "$with_llvmcc" != "check"; then
12915    if (test "$with_llvmcc" != "llvm-gcc" &&
12916        test "$with_llvmcc" != "clang" &&
12917        test "$with_llvmcc" != "none"); then
12918       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12919 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12920    { (exit 1); exit 1; }; }
12921    fi
12922    WITH_LLVMCC="$with_llvmcc"
12923 elif test -n "$LLVMGCC"; then
12924    WITH_LLVMCC=llvm-gcc
12925 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12926    WITH_LLVMCC=clang
12927 else
12928    WITH_LLVMCC=none
12929 fi
12930 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12931 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12932 LLVMCC_OPTION=$WITH_LLVMCC
12933
12934
12935 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12936 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12937
12938 ICC=no
12939 IXX=no
12940 case $CC in
12941   icc*|icpc*)
12942     ICC=yes
12943     IXX=yes
12944     ;;
12945    *)
12946     ;;
12947 esac
12948
12949 if test "$GCC" != "yes" && test "$ICC" != "yes"
12950 then
12951   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12952 echo "$as_me: error: gcc|icc required but not found" >&2;}
12953    { (exit 1); exit 1; }; }
12954 fi
12955
12956 if test "$GXX" != "yes" && test "$IXX" != "yes"
12957 then
12958   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12959 echo "$as_me: error: g++|icc required but not found" >&2;}
12960    { (exit 1); exit 1; }; }
12961 fi
12962
12963 if test "$GCC" = "yes"
12964 then
12965   cat >conftest.$ac_ext <<_ACEOF
12966 #if !defined(__GNUC__) || __GNUC__ < 3
12967 #error Unsupported GCC version
12968 #endif
12969
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975   *) ac_try_echo=$ac_try;;
12976 esac
12977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12978   (eval "$ac_compile") 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12986   { (case "(($ac_try" in
12987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988   *) ac_try_echo=$ac_try;;
12989 esac
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991   (eval "$ac_try") 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; } &&
12995          { ac_try='test -s conftest.$ac_objext'
12996   { (case "(($ac_try" in
12997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998   *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001   (eval "$ac_try") 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   :
13006 else
13007   echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13011 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13012    { (exit 1); exit 1; }; }
13013 fi
13014
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 fi
13017
13018 if test -z "$llvm_cv_gnu_make_command"
13019 then
13020   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13021 echo "$as_me: error: GNU Make required but not found" >&2;}
13022    { (exit 1); exit 1; }; }
13023 fi
13024
13025 { echo "$as_me:$LINENO: result: ok" >&5
13026 echo "${ECHO_T}ok" >&6; }
13027
13028 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13029 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13030 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13031
13032 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13033
13034 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13035 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13036
13037
13038
13039 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13040 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13041 if test "${ac_cv_lib_m_sin+set}" = set; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   ac_check_lib_save_LIBS=$LIBS
13045 LIBS="-lm  $LIBS"
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052
13053 /* Override any GCC internal prototype to avoid an error.
13054    Use char because int might match the return type of a GCC
13055    builtin and then its argument prototype would still apply.  */
13056 #ifdef __cplusplus
13057 extern "C"
13058 #endif
13059 char sin ();
13060 int
13061 main ()
13062 {
13063 return sin ();
13064   ;
13065   return 0;
13066 }
13067 _ACEOF
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (ac_try="$ac_link"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_link") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } &&
13082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13083   { (case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088   (eval "$ac_try") 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); }; } &&
13092          { ac_try='test -s conftest$ac_exeext'
13093   { (case "(($ac_try" in
13094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095   *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098   (eval "$ac_try") 2>&5
13099   ac_status=$?
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); }; }; then
13102   ac_cv_lib_m_sin=yes
13103 else
13104   echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13106
13107         ac_cv_lib_m_sin=no
13108 fi
13109
13110 rm -f core conftest.err conftest.$ac_objext \
13111       conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13113 fi
13114 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13115 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13116 if test $ac_cv_lib_m_sin = yes; then
13117   cat >>confdefs.h <<_ACEOF
13118 #define HAVE_LIBM 1
13119 _ACEOF
13120
13121   LIBS="-lm $LIBS"
13122
13123 fi
13124
13125 if test "$llvm_cv_os_type" = "MingW" ; then
13126
13127 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13128 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13129 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-limagehlp  $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140
13141
13142 int
13143 main ()
13144 {
13145 return main ();
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 rm -f conftest.$ac_objext conftest$ac_exeext
13151 if { (ac_try="$ac_link"
13152 case "(($ac_try" in
13153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154   *) ac_try_echo=$ac_try;;
13155 esac
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157   (eval "$ac_link") 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13165   { (case "(($ac_try" in
13166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167   *) ac_try_echo=$ac_try;;
13168 esac
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170   (eval "$ac_try") 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; } &&
13174          { ac_try='test -s conftest$ac_exeext'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_cv_lib_imagehlp_main=yes
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189         ac_cv_lib_imagehlp_main=no
13190 fi
13191
13192 rm -f core conftest.err conftest.$ac_objext \
13193       conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13195 fi
13196 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13197 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13198 if test $ac_cv_lib_imagehlp_main = yes; then
13199   cat >>confdefs.h <<_ACEOF
13200 #define HAVE_LIBIMAGEHLP 1
13201 _ACEOF
13202
13203   LIBS="-limagehlp $LIBS"
13204
13205 fi
13206
13207
13208 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13209 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13210 if test "${ac_cv_lib_psapi_main+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213   ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lpsapi  $LIBS"
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221
13222
13223 int
13224 main ()
13225 {
13226 return main ();
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (ac_try="$ac_link"
13233 case "(($ac_try" in
13234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235   *) ac_try_echo=$ac_try;;
13236 esac
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238   (eval "$ac_link") 2>conftest.er1
13239   ac_status=$?
13240   grep -v '^ *+' conftest.er1 >conftest.err
13241   rm -f conftest.er1
13242   cat conftest.err >&5
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); } &&
13245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246   { (case "(($ac_try" in
13247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248   *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251   (eval "$ac_try") 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest$ac_exeext'
13256   { (case "(($ac_try" in
13257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258   *) ac_try_echo=$ac_try;;
13259 esac
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261   (eval "$ac_try") 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); }; }; then
13265   ac_cv_lib_psapi_main=yes
13266 else
13267   echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270         ac_cv_lib_psapi_main=no
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext \
13274       conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13276 fi
13277 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13278 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13279 if test $ac_cv_lib_psapi_main = yes; then
13280   cat >>confdefs.h <<_ACEOF
13281 #define HAVE_LIBPSAPI 1
13282 _ACEOF
13283
13284   LIBS="-lpsapi $LIBS"
13285
13286 fi
13287
13288 fi
13289
13290 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13291 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13292 if test "${ac_cv_search_dlopen+set}" = set; then
13293   echo $ECHO_N "(cached) $ECHO_C" >&6
13294 else
13295   ac_func_search_save_LIBS=$LIBS
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302
13303 /* Override any GCC internal prototype to avoid an error.
13304    Use char because int might match the return type of a GCC
13305    builtin and then its argument prototype would still apply.  */
13306 #ifdef __cplusplus
13307 extern "C"
13308 #endif
13309 char dlopen ();
13310 int
13311 main ()
13312 {
13313 return dlopen ();
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 for ac_lib in '' dl; do
13319   if test -z "$ac_lib"; then
13320     ac_res="none required"
13321   else
13322     ac_res=-l$ac_lib
13323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13324   fi
13325   rm -f conftest.$ac_objext conftest$ac_exeext
13326 if { (ac_try="$ac_link"
13327 case "(($ac_try" in
13328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329   *) ac_try_echo=$ac_try;;
13330 esac
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332   (eval "$ac_link") 2>conftest.er1
13333   ac_status=$?
13334   grep -v '^ *+' conftest.er1 >conftest.err
13335   rm -f conftest.er1
13336   cat conftest.err >&5
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); } &&
13339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340   { (case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345   (eval "$ac_try") 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); }; } &&
13349          { ac_try='test -s conftest$ac_exeext'
13350   { (case "(($ac_try" in
13351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352   *) ac_try_echo=$ac_try;;
13353 esac
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355   (eval "$ac_try") 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); }; }; then
13359   ac_cv_search_dlopen=$ac_res
13360 else
13361   echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364
13365 fi
13366
13367 rm -f core conftest.err conftest.$ac_objext \
13368       conftest$ac_exeext
13369   if test "${ac_cv_search_dlopen+set}" = set; then
13370   break
13371 fi
13372 done
13373 if test "${ac_cv_search_dlopen+set}" = set; then
13374   :
13375 else
13376   ac_cv_search_dlopen=no
13377 fi
13378 rm conftest.$ac_ext
13379 LIBS=$ac_func_search_save_LIBS
13380 fi
13381 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13382 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13383 ac_res=$ac_cv_search_dlopen
13384 if test "$ac_res" != no; then
13385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13386
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_DLOPEN 1
13389 _ACEOF
13390
13391 else
13392   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13393 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13394 fi
13395
13396
13397 if test "$llvm_cv_enable_libffi" = "yes" ; then
13398   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13399 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13400 if test "${ac_cv_search_ffi_call+set}" = set; then
13401   echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403   ac_func_search_save_LIBS=$LIBS
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410
13411 /* Override any GCC internal prototype to avoid an error.
13412    Use char because int might match the return type of a GCC
13413    builtin and then its argument prototype would still apply.  */
13414 #ifdef __cplusplus
13415 extern "C"
13416 #endif
13417 char ffi_call ();
13418 int
13419 main ()
13420 {
13421 return ffi_call ();
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 for ac_lib in '' ffi; do
13427   if test -z "$ac_lib"; then
13428     ac_res="none required"
13429   else
13430     ac_res=-l$ac_lib
13431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13432   fi
13433   rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_link") 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448   { (case "(($ac_try" in
13449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450   *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453   (eval "$ac_try") 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest$ac_exeext'
13458   { (case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_try") 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   ac_cv_search_ffi_call=$ac_res
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472
13473 fi
13474
13475 rm -f core conftest.err conftest.$ac_objext \
13476       conftest$ac_exeext
13477   if test "${ac_cv_search_ffi_call+set}" = set; then
13478   break
13479 fi
13480 done
13481 if test "${ac_cv_search_ffi_call+set}" = set; then
13482   :
13483 else
13484   ac_cv_search_ffi_call=no
13485 fi
13486 rm conftest.$ac_ext
13487 LIBS=$ac_func_search_save_LIBS
13488 fi
13489 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13490 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13491 ac_res=$ac_cv_search_ffi_call
13492 if test "$ac_res" != no; then
13493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13494
13495 cat >>confdefs.h <<\_ACEOF
13496 #define HAVE_FFI_CALL 1
13497 _ACEOF
13498
13499 else
13500   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13501 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13502    { (exit 1); exit 1; }; }
13503 fi
13504
13505 fi
13506
13507 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13508 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13509 if test "${ac_cv_search_mallinfo+set}" = set; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512   ac_func_search_save_LIBS=$LIBS
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519
13520 /* Override any GCC internal prototype to avoid an error.
13521    Use char because int might match the return type of a GCC
13522    builtin and then its argument prototype would still apply.  */
13523 #ifdef __cplusplus
13524 extern "C"
13525 #endif
13526 char mallinfo ();
13527 int
13528 main ()
13529 {
13530 return mallinfo ();
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 for ac_lib in '' malloc; do
13536   if test -z "$ac_lib"; then
13537     ac_res="none required"
13538   else
13539     ac_res=-l$ac_lib
13540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13541   fi
13542   rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546   *) ac_try_echo=$ac_try;;
13547 esac
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549   (eval "$ac_link") 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13557   { (case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562   (eval "$ac_try") 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; } &&
13566          { ac_try='test -s conftest$ac_exeext'
13567   { (case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572   (eval "$ac_try") 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_cv_search_mallinfo=$ac_res
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext \
13585       conftest$ac_exeext
13586   if test "${ac_cv_search_mallinfo+set}" = set; then
13587   break
13588 fi
13589 done
13590 if test "${ac_cv_search_mallinfo+set}" = set; then
13591   :
13592 else
13593   ac_cv_search_mallinfo=no
13594 fi
13595 rm conftest.$ac_ext
13596 LIBS=$ac_func_search_save_LIBS
13597 fi
13598 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13599 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13600 ac_res=$ac_cv_search_mallinfo
13601 if test "$ac_res" != no; then
13602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13603
13604 cat >>confdefs.h <<\_ACEOF
13605 #define HAVE_MALLINFO 1
13606 _ACEOF
13607
13608 fi
13609
13610
13611 if test "$ENABLE_THREADS" -eq 1 ; then
13612
13613 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13614 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13615 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   ac_check_lib_save_LIBS=$LIBS
13619 LIBS="-lpthread  $LIBS"
13620 cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626
13627 /* Override any GCC internal prototype to avoid an error.
13628    Use char because int might match the return type of a GCC
13629    builtin and then its argument prototype would still apply.  */
13630 #ifdef __cplusplus
13631 extern "C"
13632 #endif
13633 char pthread_mutex_init ();
13634 int
13635 main ()
13636 {
13637 return pthread_mutex_init ();
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext conftest$ac_exeext
13643 if { (ac_try="$ac_link"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_link") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } &&
13656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657   { (case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_try") 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; } &&
13666          { ac_try='test -s conftest$ac_exeext'
13667   { (case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_try") 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   ac_cv_lib_pthread_pthread_mutex_init=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681         ac_cv_lib_pthread_pthread_mutex_init=no
13682 fi
13683
13684 rm -f core conftest.err conftest.$ac_objext \
13685       conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13687 fi
13688 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13689 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13690 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13691   cat >>confdefs.h <<_ACEOF
13692 #define HAVE_LIBPTHREAD 1
13693 _ACEOF
13694
13695   LIBS="-lpthread $LIBS"
13696
13697 fi
13698
13699   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13700 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13701 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 else
13704   ac_func_search_save_LIBS=$LIBS
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h.  */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h.  */
13711
13712 /* Override any GCC internal prototype to avoid an error.
13713    Use char because int might match the return type of a GCC
13714    builtin and then its argument prototype would still apply.  */
13715 #ifdef __cplusplus
13716 extern "C"
13717 #endif
13718 char pthread_mutex_lock ();
13719 int
13720 main ()
13721 {
13722 return pthread_mutex_lock ();
13723   ;
13724   return 0;
13725 }
13726 _ACEOF
13727 for ac_lib in '' pthread; do
13728   if test -z "$ac_lib"; then
13729     ac_res="none required"
13730   else
13731     ac_res=-l$ac_lib
13732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13733   fi
13734   rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (ac_try="$ac_link"
13736 case "(($ac_try" in
13737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738   *) ac_try_echo=$ac_try;;
13739 esac
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741   (eval "$ac_link") 2>conftest.er1
13742   ac_status=$?
13743   grep -v '^ *+' conftest.er1 >conftest.err
13744   rm -f conftest.er1
13745   cat conftest.err >&5
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); } &&
13748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13749   { (case "(($ac_try" in
13750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751   *) ac_try_echo=$ac_try;;
13752 esac
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754   (eval "$ac_try") 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; } &&
13758          { ac_try='test -s conftest$ac_exeext'
13759   { (case "(($ac_try" in
13760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761   *) ac_try_echo=$ac_try;;
13762 esac
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764   (eval "$ac_try") 2>&5
13765   ac_status=$?
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); }; }; then
13768   ac_cv_search_pthread_mutex_lock=$ac_res
13769 else
13770   echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773
13774 fi
13775
13776 rm -f core conftest.err conftest.$ac_objext \
13777       conftest$ac_exeext
13778   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13779   break
13780 fi
13781 done
13782 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13783   :
13784 else
13785   ac_cv_search_pthread_mutex_lock=no
13786 fi
13787 rm conftest.$ac_ext
13788 LIBS=$ac_func_search_save_LIBS
13789 fi
13790 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13791 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13792 ac_res=$ac_cv_search_pthread_mutex_lock
13793 if test "$ac_res" != no; then
13794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_PTHREAD_MUTEX_LOCK 1
13798 _ACEOF
13799
13800 fi
13801
13802   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13803 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13804 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   ac_func_search_save_LIBS=$LIBS
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814
13815 /* Override any GCC internal prototype to avoid an error.
13816    Use char because int might match the return type of a GCC
13817    builtin and then its argument prototype would still apply.  */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char pthread_rwlock_init ();
13822 int
13823 main ()
13824 {
13825 return pthread_rwlock_init ();
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 for ac_lib in '' pthread; do
13831   if test -z "$ac_lib"; then
13832     ac_res="none required"
13833   else
13834     ac_res=-l$ac_lib
13835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13836   fi
13837   rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (ac_try="$ac_link"
13839 case "(($ac_try" in
13840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841   *) ac_try_echo=$ac_try;;
13842 esac
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844   (eval "$ac_link") 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852   { (case "(($ac_try" in
13853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854   *) ac_try_echo=$ac_try;;
13855 esac
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857   (eval "$ac_try") 2>&5
13858   ac_status=$?
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); }; } &&
13861          { ac_try='test -s conftest$ac_exeext'
13862   { (case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_try") 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871   ac_cv_search_pthread_rwlock_init=$ac_res
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext \
13880       conftest$ac_exeext
13881   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13882   break
13883 fi
13884 done
13885 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13886   :
13887 else
13888   ac_cv_search_pthread_rwlock_init=no
13889 fi
13890 rm conftest.$ac_ext
13891 LIBS=$ac_func_search_save_LIBS
13892 fi
13893 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13894 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13895 ac_res=$ac_cv_search_pthread_rwlock_init
13896 if test "$ac_res" != no; then
13897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13898
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_PTHREAD_RWLOCK_INIT 1
13901 _ACEOF
13902
13903 fi
13904
13905   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13906 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13907 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   ac_func_search_save_LIBS=$LIBS
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h.  */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h.  */
13917
13918 /* Override any GCC internal prototype to avoid an error.
13919    Use char because int might match the return type of a GCC
13920    builtin and then its argument prototype would still apply.  */
13921 #ifdef __cplusplus
13922 extern "C"
13923 #endif
13924 char pthread_getspecific ();
13925 int
13926 main ()
13927 {
13928 return pthread_getspecific ();
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 for ac_lib in '' pthread; do
13934   if test -z "$ac_lib"; then
13935     ac_res="none required"
13936   else
13937     ac_res=-l$ac_lib
13938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13939   fi
13940   rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (ac_try="$ac_link"
13942 case "(($ac_try" in
13943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13944   *) ac_try_echo=$ac_try;;
13945 esac
13946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13947   (eval "$ac_link") 2>conftest.er1
13948   ac_status=$?
13949   grep -v '^ *+' conftest.er1 >conftest.err
13950   rm -f conftest.er1
13951   cat conftest.err >&5
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } &&
13954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13955   { (case "(($ac_try" in
13956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957   *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960   (eval "$ac_try") 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; } &&
13964          { ac_try='test -s conftest$ac_exeext'
13965   { (case "(($ac_try" in
13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967   *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970   (eval "$ac_try") 2>&5
13971   ac_status=$?
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); }; }; then
13974   ac_cv_search_pthread_getspecific=$ac_res
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979
13980 fi
13981
13982 rm -f core conftest.err conftest.$ac_objext \
13983       conftest$ac_exeext
13984   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13985   break
13986 fi
13987 done
13988 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13989   :
13990 else
13991   ac_cv_search_pthread_getspecific=no
13992 fi
13993 rm conftest.$ac_ext
13994 LIBS=$ac_func_search_save_LIBS
13995 fi
13996 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13997 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13998 ac_res=$ac_cv_search_pthread_getspecific
13999 if test "$ac_res" != no; then
14000   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14001
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_PTHREAD_GETSPECIFIC 1
14004 _ACEOF
14005
14006 fi
14007
14008 fi
14009
14010
14011 # Check whether --with-udis86 was given.
14012 if test "${with_udis86+set}" = set; then
14013   withval=$with_udis86;
14014       USE_UDIS86=1
14015
14016       case "$withval" in
14017         /usr/lib|yes) ;;
14018         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14019       esac
14020
14021 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14022 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14024   echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026   ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-ludis86  $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034
14035 /* Override any GCC internal prototype to avoid an error.
14036    Use char because int might match the return type of a GCC
14037    builtin and then its argument prototype would still apply.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char ud_init ();
14042 int
14043 main ()
14044 {
14045 return ud_init ();
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_link") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } &&
14064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14065   { (case "(($ac_try" in
14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067   *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070   (eval "$ac_try") 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; } &&
14074          { ac_try='test -s conftest$ac_exeext'
14075   { (case "(($ac_try" in
14076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077   *) ac_try_echo=$ac_try;;
14078 esac
14079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080   (eval "$ac_try") 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); }; }; then
14084   ac_cv_lib_udis86_ud_init=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089         ac_cv_lib_udis86_ud_init=no
14090 fi
14091
14092 rm -f core conftest.err conftest.$ac_objext \
14093       conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14095 fi
14096 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14097 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14098 if test $ac_cv_lib_udis86_ud_init = yes; then
14099   cat >>confdefs.h <<_ACEOF
14100 #define HAVE_LIBUDIS86 1
14101 _ACEOF
14102
14103   LIBS="-ludis86 $LIBS"
14104
14105 else
14106
14107         echo "Error! You need to have libudis86 around."
14108         exit -1
14109
14110 fi
14111
14112
14113 else
14114   USE_UDIS86=0
14115
14116 fi
14117
14118
14119 cat >>confdefs.h <<_ACEOF
14120 #define USE_UDIS86 $USE_UDIS86
14121 _ACEOF
14122
14123
14124
14125 # Check whether --with-oprofile was given.
14126 if test "${with_oprofile+set}" = set; then
14127   withval=$with_oprofile;
14128       USE_OPROFILE=1
14129
14130       case "$withval" in
14131         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14132         no) llvm_cv_oppath=
14133             USE_OPROFILE=0
14134  ;;
14135         *) llvm_cv_oppath="${withval}/lib/oprofile"
14136            CPPFLAGS="-I${withval}/include";;
14137       esac
14138       if test -n "$llvm_cv_oppath" ; then
14139         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14140                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14141 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14142 if test "${ac_cv_search_bfd_init+set}" = set; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   ac_func_search_save_LIBS=$LIBS
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152
14153 /* Override any GCC internal prototype to avoid an error.
14154    Use char because int might match the return type of a GCC
14155    builtin and then its argument prototype would still apply.  */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 char bfd_init ();
14160 int
14161 main ()
14162 {
14163 return bfd_init ();
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 for ac_lib in '' bfd; do
14169   if test -z "$ac_lib"; then
14170     ac_res="none required"
14171   else
14172     ac_res=-l$ac_lib
14173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14174   fi
14175   rm -f conftest.$ac_objext conftest$ac_exeext
14176 if { (ac_try="$ac_link"
14177 case "(($ac_try" in
14178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14179   *) ac_try_echo=$ac_try;;
14180 esac
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182   (eval "$ac_link") 2>conftest.er1
14183   ac_status=$?
14184   grep -v '^ *+' conftest.er1 >conftest.err
14185   rm -f conftest.er1
14186   cat conftest.err >&5
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); } &&
14189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14190   { (case "(($ac_try" in
14191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192   *) ac_try_echo=$ac_try;;
14193 esac
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195   (eval "$ac_try") 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }; } &&
14199          { ac_try='test -s conftest$ac_exeext'
14200   { (case "(($ac_try" in
14201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202   *) ac_try_echo=$ac_try;;
14203 esac
14204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14205   (eval "$ac_try") 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; }; then
14209   ac_cv_search_bfd_init=$ac_res
14210 else
14211   echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214
14215 fi
14216
14217 rm -f core conftest.err conftest.$ac_objext \
14218       conftest$ac_exeext
14219   if test "${ac_cv_search_bfd_init+set}" = set; then
14220   break
14221 fi
14222 done
14223 if test "${ac_cv_search_bfd_init+set}" = set; then
14224   :
14225 else
14226   ac_cv_search_bfd_init=no
14227 fi
14228 rm conftest.$ac_ext
14229 LIBS=$ac_func_search_save_LIBS
14230 fi
14231 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14232 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14233 ac_res=$ac_cv_search_bfd_init
14234 if test "$ac_res" != no; then
14235   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14236
14237 fi
14238
14239         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14240 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14241 if test "${ac_cv_search_op_open_agent+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   ac_func_search_save_LIBS=$LIBS
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251
14252 /* Override any GCC internal prototype to avoid an error.
14253    Use char because int might match the return type of a GCC
14254    builtin and then its argument prototype would still apply.  */
14255 #ifdef __cplusplus
14256 extern "C"
14257 #endif
14258 char op_open_agent ();
14259 int
14260 main ()
14261 {
14262 return op_open_agent ();
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 for ac_lib in '' opagent; do
14268   if test -z "$ac_lib"; then
14269     ac_res="none required"
14270   else
14271     ac_res=-l$ac_lib
14272     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14273   fi
14274   rm -f conftest.$ac_objext conftest$ac_exeext
14275 if { (ac_try="$ac_link"
14276 case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_link") 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } &&
14288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14289   { (case "(($ac_try" in
14290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291   *) ac_try_echo=$ac_try;;
14292 esac
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294   (eval "$ac_try") 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; } &&
14298          { ac_try='test -s conftest$ac_exeext'
14299   { (case "(($ac_try" in
14300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301   *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304   (eval "$ac_try") 2>&5
14305   ac_status=$?
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); }; }; then
14308   ac_cv_search_op_open_agent=$ac_res
14309 else
14310   echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14312
14313
14314 fi
14315
14316 rm -f core conftest.err conftest.$ac_objext \
14317       conftest$ac_exeext
14318   if test "${ac_cv_search_op_open_agent+set}" = set; then
14319   break
14320 fi
14321 done
14322 if test "${ac_cv_search_op_open_agent+set}" = set; then
14323   :
14324 else
14325   ac_cv_search_op_open_agent=no
14326 fi
14327 rm conftest.$ac_ext
14328 LIBS=$ac_func_search_save_LIBS
14329 fi
14330 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14331 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14332 ac_res=$ac_cv_search_op_open_agent
14333 if test "$ac_res" != no; then
14334   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14335
14336 else
14337
14338           echo "Error! You need to have libopagent around."
14339           exit -1
14340
14341 fi
14342
14343         if test "${ac_cv_header_opagent_h+set}" = set; then
14344   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14345 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14346 if test "${ac_cv_header_opagent_h+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 fi
14349 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14350 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14351 else
14352   # Is the header compilable?
14353 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14354 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 $ac_includes_default
14362 #include <opagent.h>
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_compile") 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379   { (case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_try") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; } &&
14388          { ac_try='test -s conftest.$ac_objext'
14389   { (case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_try") 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_header_compiler=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403         ac_header_compiler=no
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408 echo "${ECHO_T}$ac_header_compiler" >&6; }
14409
14410 # Is the header present?
14411 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14412 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14413 cat >conftest.$ac_ext <<_ACEOF
14414 /* confdefs.h.  */
14415 _ACEOF
14416 cat confdefs.h >>conftest.$ac_ext
14417 cat >>conftest.$ac_ext <<_ACEOF
14418 /* end confdefs.h.  */
14419 #include <opagent.h>
14420 _ACEOF
14421 if { (ac_try="$ac_cpp conftest.$ac_ext"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } >/dev/null; then
14434   if test -s conftest.err; then
14435     ac_cpp_err=$ac_c_preproc_warn_flag
14436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14437   else
14438     ac_cpp_err=
14439   fi
14440 else
14441   ac_cpp_err=yes
14442 fi
14443 if test -z "$ac_cpp_err"; then
14444   ac_header_preproc=yes
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449   ac_header_preproc=no
14450 fi
14451
14452 rm -f conftest.err conftest.$ac_ext
14453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14454 echo "${ECHO_T}$ac_header_preproc" >&6; }
14455
14456 # So?  What about this header?
14457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14458   yes:no: )
14459     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14460 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14461     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14462 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14463     ac_header_preproc=yes
14464     ;;
14465   no:yes:* )
14466     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14467 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14468     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14469 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14470     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14471 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14472     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14473 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14474     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14475 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14476     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14477 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14478     ( cat <<\_ASBOX
14479 ## ----------------------------------- ##
14480 ## Report this to llvmbugs@cs.uiuc.edu ##
14481 ## ----------------------------------- ##
14482 _ASBOX
14483      ) | sed "s/^/$as_me: WARNING:     /" >&2
14484     ;;
14485 esac
14486 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14487 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_opagent_h+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   ac_cv_header_opagent_h=$ac_header_preproc
14492 fi
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14495
14496 fi
14497 if test $ac_cv_header_opagent_h = yes; then
14498   :
14499 else
14500
14501           echo "Error! You need to have opagent.h around."
14502           exit -1
14503
14504 fi
14505
14506
14507       fi
14508
14509 else
14510
14511       USE_OPROFILE=0
14512
14513
14514 fi
14515
14516
14517 cat >>confdefs.h <<_ACEOF
14518 #define USE_OPROFILE $USE_OPROFILE
14519 _ACEOF
14520
14521
14522
14523
14524
14525
14526
14527
14528 ac_header_dirent=no
14529 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14530   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14531 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14532 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542 #include <sys/types.h>
14543 #include <$ac_hdr>
14544
14545 int
14546 main ()
14547 {
14548 if ((DIR *) 0)
14549 return 0;
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561   (eval "$ac_compile") 2>conftest.er1
14562   ac_status=$?
14563   grep -v '^ *+' conftest.er1 >conftest.err
14564   rm -f conftest.er1
14565   cat conftest.err >&5
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); } &&
14568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14569   { (case "(($ac_try" in
14570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571   *) ac_try_echo=$ac_try;;
14572 esac
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574   (eval "$ac_try") 2>&5
14575   ac_status=$?
14576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577   (exit $ac_status); }; } &&
14578          { ac_try='test -s conftest.$ac_objext'
14579   { (case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_try") 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }; then
14588   eval "$as_ac_Header=yes"
14589 else
14590   echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14592
14593         eval "$as_ac_Header=no"
14594 fi
14595
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 ac_res=`eval echo '${'$as_ac_Header'}'`
14599                { echo "$as_me:$LINENO: result: $ac_res" >&5
14600 echo "${ECHO_T}$ac_res" >&6; }
14601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14602   cat >>confdefs.h <<_ACEOF
14603 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14604 _ACEOF
14605
14606 ac_header_dirent=$ac_hdr; break
14607 fi
14608
14609 done
14610 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14611 if test $ac_header_dirent = dirent.h; then
14612   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14613 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14614 if test "${ac_cv_search_opendir+set}" = set; then
14615   echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617   ac_func_search_save_LIBS=$LIBS
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h.  */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h.  */
14624
14625 /* Override any GCC internal prototype to avoid an error.
14626    Use char because int might match the return type of a GCC
14627    builtin and then its argument prototype would still apply.  */
14628 #ifdef __cplusplus
14629 extern "C"
14630 #endif
14631 char opendir ();
14632 int
14633 main ()
14634 {
14635 return opendir ();
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 for ac_lib in '' dir; do
14641   if test -z "$ac_lib"; then
14642     ac_res="none required"
14643   else
14644     ac_res=-l$ac_lib
14645     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14646   fi
14647   rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_link") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } &&
14661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14662   { (case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667   (eval "$ac_try") 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; } &&
14671          { ac_try='test -s conftest$ac_exeext'
14672   { (case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_try") 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   ac_cv_search_opendir=$ac_res
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext \
14690       conftest$ac_exeext
14691   if test "${ac_cv_search_opendir+set}" = set; then
14692   break
14693 fi
14694 done
14695 if test "${ac_cv_search_opendir+set}" = set; then
14696   :
14697 else
14698   ac_cv_search_opendir=no
14699 fi
14700 rm conftest.$ac_ext
14701 LIBS=$ac_func_search_save_LIBS
14702 fi
14703 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14704 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14705 ac_res=$ac_cv_search_opendir
14706 if test "$ac_res" != no; then
14707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14708
14709 fi
14710
14711 else
14712   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14714 if test "${ac_cv_search_opendir+set}" = set; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   ac_func_search_save_LIBS=$LIBS
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724
14725 /* Override any GCC internal prototype to avoid an error.
14726    Use char because int might match the return type of a GCC
14727    builtin and then its argument prototype would still apply.  */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 char opendir ();
14732 int
14733 main ()
14734 {
14735 return opendir ();
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 for ac_lib in '' x; do
14741   if test -z "$ac_lib"; then
14742     ac_res="none required"
14743   else
14744     ac_res=-l$ac_lib
14745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14746   fi
14747   rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_link") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762   { (case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767   (eval "$ac_try") 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest$ac_exeext'
14772   { (case "(($ac_try" in
14773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774   *) ac_try_echo=$ac_try;;
14775 esac
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777   (eval "$ac_try") 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   ac_cv_search_opendir=$ac_res
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786
14787 fi
14788
14789 rm -f core conftest.err conftest.$ac_objext \
14790       conftest$ac_exeext
14791   if test "${ac_cv_search_opendir+set}" = set; then
14792   break
14793 fi
14794 done
14795 if test "${ac_cv_search_opendir+set}" = set; then
14796   :
14797 else
14798   ac_cv_search_opendir=no
14799 fi
14800 rm conftest.$ac_ext
14801 LIBS=$ac_func_search_save_LIBS
14802 fi
14803 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14804 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14805 ac_res=$ac_cv_search_opendir
14806 if test "$ac_res" != no; then
14807   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14808
14809 fi
14810
14811 fi
14812
14813 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14814 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14815 if test "${ac_cv_header_mmap_anon+set}" = set; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818    ac_ext=c
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14823
14824   cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h.  */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h.  */
14830 #include <sys/mman.h>
14831 #include <unistd.h>
14832 #include <fcntl.h>
14833 int
14834 main ()
14835 {
14836 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14837   ;
14838   return 0;
14839 }
14840 _ACEOF
14841 rm -f conftest.$ac_objext
14842 if { (ac_try="$ac_compile"
14843 case "(($ac_try" in
14844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845   *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848   (eval "$ac_compile") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } &&
14855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14856   { (case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_try") 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; } &&
14865          { ac_try='test -s conftest.$ac_objext'
14866   { (case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_try") 2>&5
14872   ac_status=$?
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); }; }; then
14875   ac_cv_header_mmap_anon=yes
14876 else
14877   echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14879
14880         ac_cv_header_mmap_anon=no
14881 fi
14882
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884   ac_ext=c
14885 ac_cpp='$CPP $CPPFLAGS'
14886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14889
14890
14891 fi
14892 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14893 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14894 if test "$ac_cv_header_mmap_anon" = yes; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_MMAP_ANONYMOUS 1
14898 _ACEOF
14899
14900 fi
14901
14902 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14903 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14904 if test "${ac_cv_header_stat_broken+set}" = set; then
14905   echo $ECHO_N "(cached) $ECHO_C" >&6
14906 else
14907   cat >conftest.$ac_ext <<_ACEOF
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 #include <sys/types.h>
14914 #include <sys/stat.h>
14915
14916 #if defined S_ISBLK && defined S_IFDIR
14917 # if S_ISBLK (S_IFDIR)
14918 You lose.
14919 # endif
14920 #endif
14921
14922 #if defined S_ISBLK && defined S_IFCHR
14923 # if S_ISBLK (S_IFCHR)
14924 You lose.
14925 # endif
14926 #endif
14927
14928 #if defined S_ISLNK && defined S_IFREG
14929 # if S_ISLNK (S_IFREG)
14930 You lose.
14931 # endif
14932 #endif
14933
14934 #if defined S_ISSOCK && defined S_IFREG
14935 # if S_ISSOCK (S_IFREG)
14936 You lose.
14937 # endif
14938 #endif
14939
14940 _ACEOF
14941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942   $EGREP "You lose" >/dev/null 2>&1; then
14943   ac_cv_header_stat_broken=yes
14944 else
14945   ac_cv_header_stat_broken=no
14946 fi
14947 rm -f conftest*
14948
14949 fi
14950 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14951 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14952 if test $ac_cv_header_stat_broken = yes; then
14953
14954 cat >>confdefs.h <<\_ACEOF
14955 #define STAT_MACROS_BROKEN 1
14956 _ACEOF
14957
14958 fi
14959
14960 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14961 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14962 if test "${ac_cv_header_stdc+set}" = set; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 #include <stdlib.h>
14972 #include <stdarg.h>
14973 #include <string.h>
14974 #include <float.h>
14975
14976 int
14977 main ()
14978 {
14979
14980   ;
14981   return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988   *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991   (eval "$ac_compile") 2>conftest.er1
14992   ac_status=$?
14993   grep -v '^ *+' conftest.er1 >conftest.err
14994   rm -f conftest.er1
14995   cat conftest.err >&5
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); } &&
14998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14999   { (case "(($ac_try" in
15000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001   *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004   (eval "$ac_try") 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; } &&
15008          { ac_try='test -s conftest.$ac_objext'
15009   { (case "(($ac_try" in
15010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011   *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014   (eval "$ac_try") 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; }; then
15018   ac_cv_header_stdc=yes
15019 else
15020   echo "$as_me: failed program was:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15022
15023         ac_cv_header_stdc=no
15024 fi
15025
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027
15028 if test $ac_cv_header_stdc = yes; then
15029   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15030   cat >conftest.$ac_ext <<_ACEOF
15031 /* confdefs.h.  */
15032 _ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h.  */
15036 #include <string.h>
15037
15038 _ACEOF
15039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15040   $EGREP "memchr" >/dev/null 2>&1; then
15041   :
15042 else
15043   ac_cv_header_stdc=no
15044 fi
15045 rm -f conftest*
15046
15047 fi
15048
15049 if test $ac_cv_header_stdc = yes; then
15050   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15051   cat >conftest.$ac_ext <<_ACEOF
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 #include <stdlib.h>
15058
15059 _ACEOF
15060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15061   $EGREP "free" >/dev/null 2>&1; then
15062   :
15063 else
15064   ac_cv_header_stdc=no
15065 fi
15066 rm -f conftest*
15067
15068 fi
15069
15070 if test $ac_cv_header_stdc = yes; then
15071   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15072   if test "$cross_compiling" = yes; then
15073   :
15074 else
15075   cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 #include <ctype.h>
15082 #include <stdlib.h>
15083 #if ((' ' & 0x0FF) == 0x020)
15084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15086 #else
15087 # define ISLOWER(c) \
15088                    (('a' <= (c) && (c) <= 'i') \
15089                      || ('j' <= (c) && (c) <= 'r') \
15090                      || ('s' <= (c) && (c) <= 'z'))
15091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15092 #endif
15093
15094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15095 int
15096 main ()
15097 {
15098   int i;
15099   for (i = 0; i < 256; i++)
15100     if (XOR (islower (i), ISLOWER (i))
15101         || toupper (i) != TOUPPER (i))
15102       return 2;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest$ac_exeext
15107 if { (ac_try="$ac_link"
15108 case "(($ac_try" in
15109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110   *) ac_try_echo=$ac_try;;
15111 esac
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113   (eval "$ac_link") 2>&5
15114   ac_status=$?
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15117   { (case "(($ac_try" in
15118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119   *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122   (eval "$ac_try") 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; }; then
15126   :
15127 else
15128   echo "$as_me: program exited with status $ac_status" >&5
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15131
15132 ( exit $ac_status )
15133 ac_cv_header_stdc=no
15134 fi
15135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15136 fi
15137
15138
15139 fi
15140 fi
15141 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15142 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15143 if test $ac_cv_header_stdc = yes; then
15144
15145 cat >>confdefs.h <<\_ACEOF
15146 #define STDC_HEADERS 1
15147 _ACEOF
15148
15149 fi
15150
15151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15154   echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156   cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162 #include <sys/types.h>
15163 #include <sys/wait.h>
15164 #ifndef WEXITSTATUS
15165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15166 #endif
15167 #ifndef WIFEXITED
15168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15169 #endif
15170
15171 int
15172 main ()
15173 {
15174   int s;
15175   wait (&s);
15176   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext
15182 if { (ac_try="$ac_compile"
15183 case "(($ac_try" in
15184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15185   *) ac_try_echo=$ac_try;;
15186 esac
15187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15188   (eval "$ac_compile") 2>conftest.er1
15189   ac_status=$?
15190   grep -v '^ *+' conftest.er1 >conftest.err
15191   rm -f conftest.er1
15192   cat conftest.err >&5
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196   { (case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_try") 2>&5
15202   ac_status=$?
15203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204   (exit $ac_status); }; } &&
15205          { ac_try='test -s conftest.$ac_objext'
15206   { (case "(($ac_try" in
15207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208   *) ac_try_echo=$ac_try;;
15209 esac
15210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211   (eval "$ac_try") 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; }; then
15215   ac_cv_header_sys_wait_h=yes
15216 else
15217   echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220         ac_cv_header_sys_wait_h=no
15221 fi
15222
15223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 fi
15225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15226 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15227 if test $ac_cv_header_sys_wait_h = yes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_SYS_WAIT_H 1
15231 _ACEOF
15232
15233 fi
15234
15235 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15236 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15237 if test "${ac_cv_header_time+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246 #include <sys/types.h>
15247 #include <sys/time.h>
15248 #include <time.h>
15249
15250 int
15251 main ()
15252 {
15253 if ((struct tm *) 0)
15254 return 0;
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263   *) ac_try_echo=$ac_try;;
15264 esac
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266   (eval "$ac_compile") 2>conftest.er1
15267   ac_status=$?
15268   grep -v '^ *+' conftest.er1 >conftest.err
15269   rm -f conftest.er1
15270   cat conftest.err >&5
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); } &&
15273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274   { (case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279   (eval "$ac_try") 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); }; } &&
15283          { ac_try='test -s conftest.$ac_objext'
15284   { (case "(($ac_try" in
15285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286   *) ac_try_echo=$ac_try;;
15287 esac
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289   (eval "$ac_try") 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); }; }; then
15293   ac_cv_header_time=yes
15294 else
15295   echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298         ac_cv_header_time=no
15299 fi
15300
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 fi
15303 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15304 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15305 if test $ac_cv_header_time = yes; then
15306
15307 cat >>confdefs.h <<\_ACEOF
15308 #define TIME_WITH_SYS_TIME 1
15309 _ACEOF
15310
15311 fi
15312
15313
15314
15315
15316
15317
15318
15319
15320 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15321 do
15322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15327   echo $ECHO_N "(cached) $ECHO_C" >&6
15328 fi
15329 ac_res=`eval echo '${'$as_ac_Header'}'`
15330                { echo "$as_me:$LINENO: result: $ac_res" >&5
15331 echo "${ECHO_T}$ac_res" >&6; }
15332 else
15333   # Is the header compilable?
15334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15336 cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342 $ac_includes_default
15343 #include <$ac_header>
15344 _ACEOF
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_compile") 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } &&
15359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15360   { (case "(($ac_try" in
15361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362   *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365   (eval "$ac_try") 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; } &&
15369          { ac_try='test -s conftest.$ac_objext'
15370   { (case "(($ac_try" in
15371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372   *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375   (eval "$ac_try") 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; }; then
15379   ac_header_compiler=yes
15380 else
15381   echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384         ac_header_compiler=no
15385 fi
15386
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6; }
15390
15391 # Is the header present?
15392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 <$ac_header>
15401 _ACEOF
15402 if { (ac_try="$ac_cpp conftest.$ac_ext"
15403 case "(($ac_try" in
15404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405   *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } >/dev/null; then
15415   if test -s conftest.err; then
15416     ac_cpp_err=$ac_c_preproc_warn_flag
15417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15418   else
15419     ac_cpp_err=
15420   fi
15421 else
15422   ac_cpp_err=yes
15423 fi
15424 if test -z "$ac_cpp_err"; then
15425   ac_header_preproc=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430   ac_header_preproc=no
15431 fi
15432
15433 rm -f conftest.err conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15435 echo "${ECHO_T}$ac_header_preproc" >&6; }
15436
15437 # So?  What about this header?
15438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15439   yes:no: )
15440     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15444     ac_header_preproc=yes
15445     ;;
15446   no:yes:* )
15447     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15449     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15450 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15451     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15453     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15454 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15457     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15459     ( cat <<\_ASBOX
15460 ## ----------------------------------- ##
15461 ## Report this to llvmbugs@cs.uiuc.edu ##
15462 ## ----------------------------------- ##
15463 _ASBOX
15464      ) | sed "s/^/$as_me: WARNING:     /" >&2
15465     ;;
15466 esac
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470   echo $ECHO_N "(cached) $ECHO_C" >&6
15471 else
15472   eval "$as_ac_Header=\$ac_header_preproc"
15473 fi
15474 ac_res=`eval echo '${'$as_ac_Header'}'`
15475                { echo "$as_me:$LINENO: result: $ac_res" >&5
15476 echo "${ECHO_T}$ac_res" >&6; }
15477
15478 fi
15479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15480   cat >>confdefs.h <<_ACEOF
15481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482 _ACEOF
15483
15484 fi
15485
15486 done
15487
15488
15489
15490
15491
15492
15493
15494 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15495 do
15496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501   echo $ECHO_N "(cached) $ECHO_C" >&6
15502 fi
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504                { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15506 else
15507   # Is the header compilable?
15508 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516 $ac_includes_default
15517 #include <$ac_header>
15518 _ACEOF
15519 rm -f conftest.$ac_objext
15520 if { (ac_try="$ac_compile"
15521 case "(($ac_try" in
15522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523   *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526   (eval "$ac_compile") 2>conftest.er1
15527   ac_status=$?
15528   grep -v '^ *+' conftest.er1 >conftest.err
15529   rm -f conftest.er1
15530   cat conftest.err >&5
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534   { (case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_try") 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest.$ac_objext'
15544   { (case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549   (eval "$ac_try") 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; }; then
15553   ac_header_compiler=yes
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558         ac_header_compiler=no
15559 fi
15560
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15563 echo "${ECHO_T}$ac_header_compiler" >&6; }
15564
15565 # Is the header present?
15566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15568 cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h.  */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h.  */
15574 #include <$ac_header>
15575 _ACEOF
15576 if { (ac_try="$ac_cpp conftest.$ac_ext"
15577 case "(($ac_try" in
15578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579   *) ac_try_echo=$ac_try;;
15580 esac
15581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15583   ac_status=$?
15584   grep -v '^ *+' conftest.er1 >conftest.err
15585   rm -f conftest.er1
15586   cat conftest.err >&5
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); } >/dev/null; then
15589   if test -s conftest.err; then
15590     ac_cpp_err=$ac_c_preproc_warn_flag
15591     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15592   else
15593     ac_cpp_err=
15594   fi
15595 else
15596   ac_cpp_err=yes
15597 fi
15598 if test -z "$ac_cpp_err"; then
15599   ac_header_preproc=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604   ac_header_preproc=no
15605 fi
15606
15607 rm -f conftest.err conftest.$ac_ext
15608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15609 echo "${ECHO_T}$ac_header_preproc" >&6; }
15610
15611 # So?  What about this header?
15612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15613   yes:no: )
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15618     ac_header_preproc=yes
15619     ;;
15620   no:yes:* )
15621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15633     ( cat <<\_ASBOX
15634 ## ----------------------------------- ##
15635 ## Report this to llvmbugs@cs.uiuc.edu ##
15636 ## ----------------------------------- ##
15637 _ASBOX
15638      ) | sed "s/^/$as_me: WARNING:     /" >&2
15639     ;;
15640 esac
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644   echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646   eval "$as_ac_Header=\$ac_header_preproc"
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
15652 fi
15653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15654   cat >>confdefs.h <<_ACEOF
15655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15656 _ACEOF
15657
15658 fi
15659
15660 done
15661
15662
15663
15664 for ac_header in utime.h windows.h
15665 do
15666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671   echo $ECHO_N "(cached) $ECHO_C" >&6
15672 fi
15673 ac_res=`eval echo '${'$as_ac_Header'}'`
15674                { echo "$as_me:$LINENO: result: $ac_res" >&5
15675 echo "${ECHO_T}$ac_res" >&6; }
15676 else
15677   # Is the header compilable?
15678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h.  */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h.  */
15686 $ac_includes_default
15687 #include <$ac_header>
15688 _ACEOF
15689 rm -f conftest.$ac_objext
15690 if { (ac_try="$ac_compile"
15691 case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_compile") 2>conftest.er1
15697   ac_status=$?
15698   grep -v '^ *+' conftest.er1 >conftest.err
15699   rm -f conftest.er1
15700   cat conftest.err >&5
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); } &&
15703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15704   { (case "(($ac_try" in
15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706   *) ac_try_echo=$ac_try;;
15707 esac
15708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709   (eval "$ac_try") 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; } &&
15713          { ac_try='test -s conftest.$ac_objext'
15714   { (case "(($ac_try" in
15715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716   *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719   (eval "$ac_try") 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; }; then
15723   ac_header_compiler=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728         ac_header_compiler=no
15729 fi
15730
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15733 echo "${ECHO_T}$ac_header_compiler" >&6; }
15734
15735 # Is the header present?
15736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15738 cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744 #include <$ac_header>
15745 _ACEOF
15746 if { (ac_try="$ac_cpp conftest.$ac_ext"
15747 case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15753   ac_status=$?
15754   grep -v '^ *+' conftest.er1 >conftest.err
15755   rm -f conftest.er1
15756   cat conftest.err >&5
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } >/dev/null; then
15759   if test -s conftest.err; then
15760     ac_cpp_err=$ac_c_preproc_warn_flag
15761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15762   else
15763     ac_cpp_err=
15764   fi
15765 else
15766   ac_cpp_err=yes
15767 fi
15768 if test -z "$ac_cpp_err"; then
15769   ac_header_preproc=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774   ac_header_preproc=no
15775 fi
15776
15777 rm -f conftest.err conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15779 echo "${ECHO_T}$ac_header_preproc" >&6; }
15780
15781 # So?  What about this header?
15782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15783   yes:no: )
15784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15788     ac_header_preproc=yes
15789     ;;
15790   no:yes:* )
15791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15803     ( cat <<\_ASBOX
15804 ## ----------------------------------- ##
15805 ## Report this to llvmbugs@cs.uiuc.edu ##
15806 ## ----------------------------------- ##
15807 _ASBOX
15808      ) | sed "s/^/$as_me: WARNING:     /" >&2
15809     ;;
15810 esac
15811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816   eval "$as_ac_Header=\$ac_header_preproc"
15817 fi
15818 ac_res=`eval echo '${'$as_ac_Header'}'`
15819                { echo "$as_me:$LINENO: result: $ac_res" >&5
15820 echo "${ECHO_T}$ac_res" >&6; }
15821
15822 fi
15823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15824   cat >>confdefs.h <<_ACEOF
15825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15826 _ACEOF
15827
15828 fi
15829
15830 done
15831
15832
15833
15834
15835
15836 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15837 do
15838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15843   echo $ECHO_N "(cached) $ECHO_C" >&6
15844 fi
15845 ac_res=`eval echo '${'$as_ac_Header'}'`
15846                { echo "$as_me:$LINENO: result: $ac_res" >&5
15847 echo "${ECHO_T}$ac_res" >&6; }
15848 else
15849   # Is the header compilable?
15850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 $ac_includes_default
15859 #include <$ac_header>
15860 _ACEOF
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15869   ac_status=$?
15870   grep -v '^ *+' conftest.er1 >conftest.err
15871   rm -f conftest.er1
15872   cat conftest.err >&5
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15876   { (case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_try") 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; } &&
15885          { ac_try='test -s conftest.$ac_objext'
15886   { (case "(($ac_try" in
15887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888   *) ac_try_echo=$ac_try;;
15889 esac
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891   (eval "$ac_try") 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_header_compiler=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         ac_header_compiler=no
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15905 echo "${ECHO_T}$ac_header_compiler" >&6; }
15906
15907 # Is the header present?
15908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916 #include <$ac_header>
15917 _ACEOF
15918 if { (ac_try="$ac_cpp conftest.$ac_ext"
15919 case "(($ac_try" in
15920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921   *) ac_try_echo=$ac_try;;
15922 esac
15923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } >/dev/null; then
15931   if test -s conftest.err; then
15932     ac_cpp_err=$ac_c_preproc_warn_flag
15933     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15934   else
15935     ac_cpp_err=
15936   fi
15937 else
15938   ac_cpp_err=yes
15939 fi
15940 if test -z "$ac_cpp_err"; then
15941   ac_header_preproc=yes
15942 else
15943   echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946   ac_header_preproc=no
15947 fi
15948
15949 rm -f conftest.err conftest.$ac_ext
15950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6; }
15952
15953 # So?  What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15955   yes:no: )
15956     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15960     ac_header_preproc=yes
15961     ;;
15962   no:yes:* )
15963     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15965     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15967     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15969     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15973     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15975     ( cat <<\_ASBOX
15976 ## ----------------------------------- ##
15977 ## Report this to llvmbugs@cs.uiuc.edu ##
15978 ## ----------------------------------- ##
15979 _ASBOX
15980      ) | sed "s/^/$as_me: WARNING:     /" >&2
15981     ;;
15982 esac
15983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986   echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988   eval "$as_ac_Header=\$ac_header_preproc"
15989 fi
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991                { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15993
15994 fi
15995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15996   cat >>confdefs.h <<_ACEOF
15997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15998 _ACEOF
15999
16000 fi
16001
16002 done
16003
16004
16005
16006
16007
16008 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16009 do
16010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16012   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16015   echo $ECHO_N "(cached) $ECHO_C" >&6
16016 fi
16017 ac_res=`eval echo '${'$as_ac_Header'}'`
16018                { echo "$as_me:$LINENO: result: $ac_res" >&5
16019 echo "${ECHO_T}$ac_res" >&6; }
16020 else
16021   # Is the header compilable?
16022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 $ac_includes_default
16031 #include <$ac_header>
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } &&
16047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048   { (case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_try") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest.$ac_objext'
16058   { (case "(($ac_try" in
16059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060   *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063   (eval "$ac_try") 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_header_compiler=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072         ac_header_compiler=no
16073 fi
16074
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6; }
16078
16079 # Is the header present?
16080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h.  */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h.  */
16088 #include <$ac_header>
16089 _ACEOF
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } >/dev/null; then
16103   if test -s conftest.err; then
16104     ac_cpp_err=$ac_c_preproc_warn_flag
16105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16106   else
16107     ac_cpp_err=
16108   fi
16109 else
16110   ac_cpp_err=yes
16111 fi
16112 if test -z "$ac_cpp_err"; then
16113   ac_header_preproc=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118   ac_header_preproc=no
16119 fi
16120
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16124
16125 # So?  What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127   yes:no: )
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132     ac_header_preproc=yes
16133     ;;
16134   no:yes:* )
16135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147     ( cat <<\_ASBOX
16148 ## ----------------------------------- ##
16149 ## Report this to llvmbugs@cs.uiuc.edu ##
16150 ## ----------------------------------- ##
16151 _ASBOX
16152      ) | sed "s/^/$as_me: WARNING:     /" >&2
16153     ;;
16154 esac
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   eval "$as_ac_Header=\$ac_header_preproc"
16161 fi
16162 ac_res=`eval echo '${'$as_ac_Header'}'`
16163                { echo "$as_me:$LINENO: result: $ac_res" >&5
16164 echo "${ECHO_T}$ac_res" >&6; }
16165
16166 fi
16167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16168   cat >>confdefs.h <<_ACEOF
16169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16170 _ACEOF
16171
16172 fi
16173
16174 done
16175
16176 if test "$ENABLE_THREADS" -eq 1 ; then
16177
16178 for ac_header in pthread.h
16179 do
16180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16182   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185   echo $ECHO_N "(cached) $ECHO_C" >&6
16186 fi
16187 ac_res=`eval echo '${'$as_ac_Header'}'`
16188                { echo "$as_me:$LINENO: result: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 else
16191   # Is the header compilable?
16192 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200 $ac_includes_default
16201 #include <$ac_header>
16202 _ACEOF
16203 rm -f conftest.$ac_objext
16204 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16211   ac_status=$?
16212   grep -v '^ *+' conftest.er1 >conftest.err
16213   rm -f conftest.er1
16214   cat conftest.err >&5
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } &&
16217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16218   { (case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223   (eval "$ac_try") 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; } &&
16227          { ac_try='test -s conftest.$ac_objext'
16228   { (case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233   (eval "$ac_try") 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ac_header_compiler=yes
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242         ac_header_compiler=no
16243 fi
16244
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16248
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258 #include <$ac_header>
16259 _ACEOF
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } >/dev/null; then
16273   if test -s conftest.err; then
16274     ac_cpp_err=$ac_c_preproc_warn_flag
16275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16276   else
16277     ac_cpp_err=
16278   fi
16279 else
16280   ac_cpp_err=yes
16281 fi
16282 if test -z "$ac_cpp_err"; then
16283   ac_header_preproc=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288   ac_header_preproc=no
16289 fi
16290
16291 rm -f conftest.err conftest.$ac_ext
16292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16293 echo "${ECHO_T}$ac_header_preproc" >&6; }
16294
16295 # So?  What about this header?
16296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16297   yes:no: )
16298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16302     ac_header_preproc=yes
16303     ;;
16304   no:yes:* )
16305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16317     ( cat <<\_ASBOX
16318 ## ----------------------------------- ##
16319 ## Report this to llvmbugs@cs.uiuc.edu ##
16320 ## ----------------------------------- ##
16321 _ASBOX
16322      ) | sed "s/^/$as_me: WARNING:     /" >&2
16323     ;;
16324 esac
16325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16328   echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330   eval "$as_ac_Header=\$ac_header_preproc"
16331 fi
16332 ac_res=`eval echo '${'$as_ac_Header'}'`
16333                { echo "$as_me:$LINENO: result: $ac_res" >&5
16334 echo "${ECHO_T}$ac_res" >&6; }
16335
16336 fi
16337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16338   cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16340 _ACEOF
16341  HAVE_PTHREAD=1
16342
16343 else
16344   HAVE_PTHREAD=0
16345
16346 fi
16347
16348 done
16349
16350 else
16351   HAVE_PTHREAD=0
16352
16353 fi
16354
16355 if test "$llvm_cv_enable_libffi" = "yes" ; then
16356
16357
16358 for ac_header in ffi.h ffi/ffi.h
16359 do
16360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16365   echo $ECHO_N "(cached) $ECHO_C" >&6
16366 fi
16367 ac_res=`eval echo '${'$as_ac_Header'}'`
16368                { echo "$as_me:$LINENO: result: $ac_res" >&5
16369 echo "${ECHO_T}$ac_res" >&6; }
16370 else
16371   # Is the header compilable?
16372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380 $ac_includes_default
16381 #include <$ac_header>
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_compile") 2>conftest.er1
16391   ac_status=$?
16392   grep -v '^ *+' conftest.er1 >conftest.err
16393   rm -f conftest.er1
16394   cat conftest.err >&5
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398   { (case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_try") 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; } &&
16407          { ac_try='test -s conftest.$ac_objext'
16408   { (case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_try") 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); }; }; then
16417   ac_header_compiler=yes
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422         ac_header_compiler=no
16423 fi
16424
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16427 echo "${ECHO_T}$ac_header_compiler" >&6; }
16428
16429 # Is the header present?
16430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438 #include <$ac_header>
16439 _ACEOF
16440 if { (ac_try="$ac_cpp conftest.$ac_ext"
16441 case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } >/dev/null; then
16453   if test -s conftest.err; then
16454     ac_cpp_err=$ac_c_preproc_warn_flag
16455     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16456   else
16457     ac_cpp_err=
16458   fi
16459 else
16460   ac_cpp_err=yes
16461 fi
16462 if test -z "$ac_cpp_err"; then
16463   ac_header_preproc=yes
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468   ac_header_preproc=no
16469 fi
16470
16471 rm -f conftest.err conftest.$ac_ext
16472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16473 echo "${ECHO_T}$ac_header_preproc" >&6; }
16474
16475 # So?  What about this header?
16476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16477   yes:no: )
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16482     ac_header_preproc=yes
16483     ;;
16484   no:yes:* )
16485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16497     ( cat <<\_ASBOX
16498 ## ----------------------------------- ##
16499 ## Report this to llvmbugs@cs.uiuc.edu ##
16500 ## ----------------------------------- ##
16501 _ASBOX
16502      ) | sed "s/^/$as_me: WARNING:     /" >&2
16503     ;;
16504 esac
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   eval "$as_ac_Header=\$ac_header_preproc"
16511 fi
16512 ac_res=`eval echo '${'$as_ac_Header'}'`
16513                { echo "$as_me:$LINENO: result: $ac_res" >&5
16514 echo "${ECHO_T}$ac_res" >&6; }
16515
16516 fi
16517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16518   cat >>confdefs.h <<_ACEOF
16519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16520 _ACEOF
16521
16522 fi
16523
16524 done
16525
16526 fi
16527
16528
16529
16530
16531   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16532 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16533 if test "${ac_cv_huge_val_sanity+set}" = set; then
16534   echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536
16537     ac_ext=cpp
16538 ac_cpp='$CXXCPP $CPPFLAGS'
16539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16542
16543     CXXFLAGS=-pedantic
16544     if test "$cross_compiling" = yes; then
16545   ac_cv_huge_val_sanity=yes
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 #include <math.h>
16554 int
16555 main ()
16556 {
16557 double x = HUGE_VAL; return x != x;
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 rm -f conftest$ac_exeext
16563 if { (ac_try="$ac_link"
16564 case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_link") 2>&5
16570   ac_status=$?
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16573   { (case "(($ac_try" in
16574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575   *) ac_try_echo=$ac_try;;
16576 esac
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578   (eval "$ac_try") 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); }; }; then
16582   ac_cv_huge_val_sanity=yes
16583 else
16584   echo "$as_me: program exited with status $ac_status" >&5
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ( exit $ac_status )
16589 ac_cv_huge_val_sanity=no
16590 fi
16591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16592 fi
16593
16594
16595     ac_ext=c
16596 ac_cpp='$CPP $CPPFLAGS'
16597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16600
16601
16602 fi
16603 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16604 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16605   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16606
16607
16608 { echo "$as_me:$LINENO: checking for pid_t" >&5
16609 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16610 if test "${ac_cv_type_pid_t+set}" = set; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   cat >conftest.$ac_ext <<_ACEOF
16614 /* confdefs.h.  */
16615 _ACEOF
16616 cat confdefs.h >>conftest.$ac_ext
16617 cat >>conftest.$ac_ext <<_ACEOF
16618 /* end confdefs.h.  */
16619 $ac_includes_default
16620 typedef pid_t ac__type_new_;
16621 int
16622 main ()
16623 {
16624 if ((ac__type_new_ *) 0)
16625   return 0;
16626 if (sizeof (ac__type_new_))
16627   return 0;
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext
16633 if { (ac_try="$ac_compile"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_compile") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } &&
16646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16647   { (case "(($ac_try" in
16648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649   *) ac_try_echo=$ac_try;;
16650 esac
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652   (eval "$ac_try") 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; } &&
16656          { ac_try='test -s conftest.$ac_objext'
16657   { (case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_try") 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }; }; then
16666   ac_cv_type_pid_t=yes
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671         ac_cv_type_pid_t=no
16672 fi
16673
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 fi
16676 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16678 if test $ac_cv_type_pid_t = yes; then
16679   :
16680 else
16681
16682 cat >>confdefs.h <<_ACEOF
16683 #define pid_t int
16684 _ACEOF
16685
16686 fi
16687
16688 { echo "$as_me:$LINENO: checking for size_t" >&5
16689 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16690 if test "${ac_cv_type_size_t+set}" = set; then
16691   echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693   cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699 $ac_includes_default
16700 typedef size_t ac__type_new_;
16701 int
16702 main ()
16703 {
16704 if ((ac__type_new_ *) 0)
16705   return 0;
16706 if (sizeof (ac__type_new_))
16707   return 0;
16708   ;
16709   return 0;
16710 }
16711 _ACEOF
16712 rm -f conftest.$ac_objext
16713 if { (ac_try="$ac_compile"
16714 case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_compile") 2>conftest.er1
16720   ac_status=$?
16721   grep -v '^ *+' conftest.er1 >conftest.err
16722   rm -f conftest.er1
16723   cat conftest.err >&5
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); } &&
16726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727   { (case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_try") 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; } &&
16736          { ac_try='test -s conftest.$ac_objext'
16737   { (case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_try") 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; }; then
16746   ac_cv_type_size_t=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751         ac_cv_type_size_t=no
16752 fi
16753
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16757 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16758 if test $ac_cv_type_size_t = yes; then
16759   :
16760 else
16761
16762 cat >>confdefs.h <<_ACEOF
16763 #define size_t unsigned int
16764 _ACEOF
16765
16766 fi
16767
16768
16769 cat >>confdefs.h <<_ACEOF
16770 #define RETSIGTYPE void
16771 _ACEOF
16772
16773 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16774 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16775 if test "${ac_cv_struct_tm+set}" = set; then
16776   echo $ECHO_N "(cached) $ECHO_C" >&6
16777 else
16778   cat >conftest.$ac_ext <<_ACEOF
16779 /* confdefs.h.  */
16780 _ACEOF
16781 cat confdefs.h >>conftest.$ac_ext
16782 cat >>conftest.$ac_ext <<_ACEOF
16783 /* end confdefs.h.  */
16784 #include <sys/types.h>
16785 #include <time.h>
16786
16787 int
16788 main ()
16789 {
16790 struct tm *tp; tp->tm_sec;
16791   ;
16792   return 0;
16793 }
16794 _ACEOF
16795 rm -f conftest.$ac_objext
16796 if { (ac_try="$ac_compile"
16797 case "(($ac_try" in
16798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799   *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802   (eval "$ac_compile") 2>conftest.er1
16803   ac_status=$?
16804   grep -v '^ *+' conftest.er1 >conftest.err
16805   rm -f conftest.er1
16806   cat conftest.err >&5
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); } &&
16809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810   { (case "(($ac_try" in
16811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812   *) ac_try_echo=$ac_try;;
16813 esac
16814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815   (eval "$ac_try") 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; } &&
16819          { ac_try='test -s conftest.$ac_objext'
16820   { (case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_try") 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; }; then
16829   ac_cv_struct_tm=time.h
16830 else
16831   echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834         ac_cv_struct_tm=sys/time.h
16835 fi
16836
16837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 fi
16839 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16840 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16841 if test $ac_cv_struct_tm = sys/time.h; then
16842
16843 cat >>confdefs.h <<\_ACEOF
16844 #define TM_IN_SYS_TIME 1
16845 _ACEOF
16846
16847 fi
16848
16849 { echo "$as_me:$LINENO: checking for int64_t" >&5
16850 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16851 if test "${ac_cv_type_int64_t+set}" = set; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854   cat >conftest.$ac_ext <<_ACEOF
16855 /* confdefs.h.  */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h.  */
16860 $ac_includes_default
16861 typedef int64_t ac__type_new_;
16862 int
16863 main ()
16864 {
16865 if ((ac__type_new_ *) 0)
16866   return 0;
16867 if (sizeof (ac__type_new_))
16868   return 0;
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest.$ac_objext
16874 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16881   ac_status=$?
16882   grep -v '^ *+' conftest.er1 >conftest.err
16883   rm -f conftest.er1
16884   cat conftest.err >&5
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); } &&
16887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16888   { (case "(($ac_try" in
16889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890   *) ac_try_echo=$ac_try;;
16891 esac
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893   (eval "$ac_try") 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest.$ac_objext'
16898   { (case "(($ac_try" in
16899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900   *) ac_try_echo=$ac_try;;
16901 esac
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903   (eval "$ac_try") 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); }; }; then
16907   ac_cv_type_int64_t=yes
16908 else
16909   echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16911
16912         ac_cv_type_int64_t=no
16913 fi
16914
16915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16916 fi
16917 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16918 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16919 if test $ac_cv_type_int64_t = yes; then
16920
16921 cat >>confdefs.h <<_ACEOF
16922 #define HAVE_INT64_T 1
16923 _ACEOF
16924
16925
16926 else
16927   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16928 echo "$as_me: error: Type int64_t required but not found" >&2;}
16929    { (exit 1); exit 1; }; }
16930 fi
16931
16932 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16933 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16934 if test "${ac_cv_type_uint64_t+set}" = set; then
16935   echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937   cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943 $ac_includes_default
16944 typedef uint64_t ac__type_new_;
16945 int
16946 main ()
16947 {
16948 if ((ac__type_new_ *) 0)
16949   return 0;
16950 if (sizeof (ac__type_new_))
16951   return 0;
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext
16957 if { (ac_try="$ac_compile"
16958 case "(($ac_try" in
16959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960   *) ac_try_echo=$ac_try;;
16961 esac
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963   (eval "$ac_compile") 2>conftest.er1
16964   ac_status=$?
16965   grep -v '^ *+' conftest.er1 >conftest.err
16966   rm -f conftest.er1
16967   cat conftest.err >&5
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } &&
16970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; } &&
16980          { ac_try='test -s conftest.$ac_objext'
16981   { (case "(($ac_try" in
16982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983   *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986   (eval "$ac_try") 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_cv_type_uint64_t=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995         ac_cv_type_uint64_t=no
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 fi
17000 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17001 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17002 if test $ac_cv_type_uint64_t = yes; then
17003
17004 cat >>confdefs.h <<_ACEOF
17005 #define HAVE_UINT64_T 1
17006 _ACEOF
17007
17008
17009 else
17010   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17011 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17012 if test "${ac_cv_type_u_int64_t+set}" = set; then
17013   echo $ECHO_N "(cached) $ECHO_C" >&6
17014 else
17015   cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021 $ac_includes_default
17022 typedef u_int64_t ac__type_new_;
17023 int
17024 main ()
17025 {
17026 if ((ac__type_new_ *) 0)
17027   return 0;
17028 if (sizeof (ac__type_new_))
17029   return 0;
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext
17035 if { (ac_try="$ac_compile"
17036 case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041   (eval "$ac_compile") 2>conftest.er1
17042   ac_status=$?
17043   grep -v '^ *+' conftest.er1 >conftest.err
17044   rm -f conftest.er1
17045   cat conftest.err >&5
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); } &&
17048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049   { (case "(($ac_try" in
17050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051   *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054   (eval "$ac_try") 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; } &&
17058          { ac_try='test -s conftest.$ac_objext'
17059   { (case "(($ac_try" in
17060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061   *) ac_try_echo=$ac_try;;
17062 esac
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064   (eval "$ac_try") 2>&5
17065   ac_status=$?
17066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067   (exit $ac_status); }; }; then
17068   ac_cv_type_u_int64_t=yes
17069 else
17070   echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17072
17073         ac_cv_type_u_int64_t=no
17074 fi
17075
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 fi
17078 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17079 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17080 if test $ac_cv_type_u_int64_t = yes; then
17081
17082 cat >>confdefs.h <<_ACEOF
17083 #define HAVE_U_INT64_T 1
17084 _ACEOF
17085
17086
17087 else
17088   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17089 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17090    { (exit 1); exit 1; }; }
17091 fi
17092
17093 fi
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17105 do
17106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17107 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17120 #define $ac_func innocuous_$ac_func
17121
17122 /* System header to define __stub macros and hopefully few prototypes,
17123     which can conflict with char $ac_func (); below.
17124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17125     <limits.h> exists even on freestanding compilers.  */
17126
17127 #ifdef __STDC__
17128 # include <limits.h>
17129 #else
17130 # include <assert.h>
17131 #endif
17132
17133 #undef $ac_func
17134
17135 /* Override any GCC internal prototype to avoid an error.
17136    Use char because int might match the return type of a GCC
17137    builtin and then its argument prototype would still apply.  */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char $ac_func ();
17142 /* The GNU C library defines this for functions which it implements
17143     to always fail with ENOSYS.  Some functions are actually named
17144     something starting with __ and the normal name is an alias.  */
17145 #if defined __stub_$ac_func || defined __stub___$ac_func
17146 choke me
17147 #endif
17148
17149 int
17150 main ()
17151 {
17152 return $ac_func ();
17153   ;
17154   return 0;
17155 }
17156 _ACEOF
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_link") 2>conftest.er1
17165   ac_status=$?
17166   grep -v '^ *+' conftest.er1 >conftest.err
17167   rm -f conftest.er1
17168   cat conftest.err >&5
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); } &&
17171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17172   { (case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_try") 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; } &&
17181          { ac_try='test -s conftest$ac_exeext'
17182   { (case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_try") 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); }; }; then
17191   eval "$as_ac_var=yes"
17192 else
17193   echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196         eval "$as_ac_var=no"
17197 fi
17198
17199 rm -f core conftest.err conftest.$ac_objext \
17200       conftest$ac_exeext conftest.$ac_ext
17201 fi
17202 ac_res=`eval echo '${'$as_ac_var'}'`
17203                { echo "$as_me:$LINENO: result: $ac_res" >&5
17204 echo "${ECHO_T}$ac_res" >&6; }
17205 if test `eval echo '${'$as_ac_var'}'` = yes; then
17206   cat >>confdefs.h <<_ACEOF
17207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17208 _ACEOF
17209
17210 fi
17211 done
17212
17213
17214
17215
17216
17217 for ac_func in powf fmodf strtof round
17218 do
17219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17233 #define $ac_func innocuous_$ac_func
17234
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func (); below.
17237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238     <limits.h> exists even on freestanding compilers.  */
17239
17240 #ifdef __STDC__
17241 # include <limits.h>
17242 #else
17243 # include <assert.h>
17244 #endif
17245
17246 #undef $ac_func
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249    Use char because int might match the return type of a GCC
17250    builtin and then its argument prototype would still apply.  */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char $ac_func ();
17255 /* The GNU C library defines this for functions which it implements
17256     to always fail with ENOSYS.  Some functions are actually named
17257     something starting with __ and the normal name is an alias.  */
17258 #if defined __stub_$ac_func || defined __stub___$ac_func
17259 choke me
17260 #endif
17261
17262 int
17263 main ()
17264 {
17265 return $ac_func ();
17266   ;
17267   return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext conftest$ac_exeext
17271 if { (ac_try="$ac_link"
17272 case "(($ac_try" in
17273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274   *) ac_try_echo=$ac_try;;
17275 esac
17276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277   (eval "$ac_link") 2>conftest.er1
17278   ac_status=$?
17279   grep -v '^ *+' conftest.er1 >conftest.err
17280   rm -f conftest.er1
17281   cat conftest.err >&5
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } &&
17284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17285   { (case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_try") 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); }; } &&
17294          { ac_try='test -s conftest$ac_exeext'
17295   { (case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   eval "$as_ac_var=yes"
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309         eval "$as_ac_var=no"
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext \
17313       conftest$ac_exeext conftest.$ac_ext
17314 fi
17315 ac_res=`eval echo '${'$as_ac_var'}'`
17316                { echo "$as_me:$LINENO: result: $ac_res" >&5
17317 echo "${ECHO_T}$ac_res" >&6; }
17318 if test `eval echo '${'$as_ac_var'}'` = yes; then
17319   cat >>confdefs.h <<_ACEOF
17320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17321 _ACEOF
17322
17323 fi
17324 done
17325
17326
17327
17328
17329
17330
17331 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17347 #define $ac_func innocuous_$ac_func
17348
17349 /* System header to define __stub macros and hopefully few prototypes,
17350     which can conflict with char $ac_func (); below.
17351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352     <limits.h> exists even on freestanding compilers.  */
17353
17354 #ifdef __STDC__
17355 # include <limits.h>
17356 #else
17357 # include <assert.h>
17358 #endif
17359
17360 #undef $ac_func
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363    Use char because int might match the return type of a GCC
17364    builtin and then its argument prototype would still apply.  */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char $ac_func ();
17369 /* The GNU C library defines this for functions which it implements
17370     to always fail with ENOSYS.  Some functions are actually named
17371     something starting with __ and the normal name is an alias.  */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17373 choke me
17374 #endif
17375
17376 int
17377 main ()
17378 {
17379 return $ac_func ();
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_link") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } &&
17398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399   { (case "(($ac_try" in
17400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401   *) ac_try_echo=$ac_try;;
17402 esac
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404   (eval "$ac_try") 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; } &&
17408          { ac_try='test -s conftest$ac_exeext'
17409   { (case "(($ac_try" in
17410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411   *) ac_try_echo=$ac_try;;
17412 esac
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414   (eval "$ac_try") 2>&5
17415   ac_status=$?
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); }; }; then
17418   eval "$as_ac_var=yes"
17419 else
17420   echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423         eval "$as_ac_var=no"
17424 fi
17425
17426 rm -f core conftest.err conftest.$ac_objext \
17427       conftest$ac_exeext conftest.$ac_ext
17428 fi
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430                { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433   cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17435 _ACEOF
17436
17437 fi
17438 done
17439
17440
17441
17442
17443 for ac_func in isatty mkdtemp mkstemp
17444 do
17445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17449   echo $ECHO_N "(cached) $ECHO_C" >&6
17450 else
17451   cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h.  */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h.  */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17459 #define $ac_func innocuous_$ac_func
17460
17461 /* System header to define __stub macros and hopefully few prototypes,
17462     which can conflict with char $ac_func (); below.
17463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464     <limits.h> exists even on freestanding compilers.  */
17465
17466 #ifdef __STDC__
17467 # include <limits.h>
17468 #else
17469 # include <assert.h>
17470 #endif
17471
17472 #undef $ac_func
17473
17474 /* Override any GCC internal prototype to avoid an error.
17475    Use char because int might match the return type of a GCC
17476    builtin and then its argument prototype would still apply.  */
17477 #ifdef __cplusplus
17478 extern "C"
17479 #endif
17480 char $ac_func ();
17481 /* The GNU C library defines this for functions which it implements
17482     to always fail with ENOSYS.  Some functions are actually named
17483     something starting with __ and the normal name is an alias.  */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17485 choke me
17486 #endif
17487
17488 int
17489 main ()
17490 {
17491 return $ac_func ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_link") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } &&
17510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511   { (case "(($ac_try" in
17512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17513   *) ac_try_echo=$ac_try;;
17514 esac
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516   (eval "$ac_try") 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; } &&
17520          { ac_try='test -s conftest$ac_exeext'
17521   { (case "(($ac_try" in
17522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523   *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526   (eval "$ac_try") 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; }; then
17530   eval "$as_ac_var=yes"
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535         eval "$as_ac_var=no"
17536 fi
17537
17538 rm -f core conftest.err conftest.$ac_objext \
17539       conftest$ac_exeext conftest.$ac_ext
17540 fi
17541 ac_res=`eval echo '${'$as_ac_var'}'`
17542                { echo "$as_me:$LINENO: result: $ac_res" >&5
17543 echo "${ECHO_T}$ac_res" >&6; }
17544 if test `eval echo '${'$as_ac_var'}'` = yes; then
17545   cat >>confdefs.h <<_ACEOF
17546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17547 _ACEOF
17548
17549 fi
17550 done
17551
17552
17553
17554
17555
17556
17557 for ac_func in mktemp realpath sbrk setrlimit strdup
17558 do
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563   echo $ECHO_N "(cached) $ECHO_C" >&6
17564 else
17565   cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h.  */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h.  */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17573 #define $ac_func innocuous_$ac_func
17574
17575 /* System header to define __stub macros and hopefully few prototypes,
17576     which can conflict with char $ac_func (); below.
17577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578     <limits.h> exists even on freestanding compilers.  */
17579
17580 #ifdef __STDC__
17581 # include <limits.h>
17582 #else
17583 # include <assert.h>
17584 #endif
17585
17586 #undef $ac_func
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589    Use char because int might match the return type of a GCC
17590    builtin and then its argument prototype would still apply.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char $ac_func ();
17595 /* The GNU C library defines this for functions which it implements
17596     to always fail with ENOSYS.  Some functions are actually named
17597     something starting with __ and the normal name is an alias.  */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17599 choke me
17600 #endif
17601
17602 int
17603 main ()
17604 {
17605 return $ac_func ();
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614   *) ac_try_echo=$ac_try;;
17615 esac
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617   (eval "$ac_link") 2>conftest.er1
17618   ac_status=$?
17619   grep -v '^ *+' conftest.er1 >conftest.err
17620   rm -f conftest.er1
17621   cat conftest.err >&5
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); } &&
17624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625   { (case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_try") 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest$ac_exeext'
17635   { (case "(($ac_try" in
17636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637   *) ac_try_echo=$ac_try;;
17638 esac
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640   (eval "$ac_try") 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); }; }; then
17644   eval "$as_ac_var=yes"
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         eval "$as_ac_var=no"
17650 fi
17651
17652 rm -f core conftest.err conftest.$ac_objext \
17653       conftest$ac_exeext conftest.$ac_ext
17654 fi
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656                { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659   cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17661 _ACEOF
17662
17663 fi
17664 done
17665
17666
17667
17668
17669
17670 for ac_func in strerror strerror_r strerror_s setenv
17671 do
17672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17686 #define $ac_func innocuous_$ac_func
17687
17688 /* System header to define __stub macros and hopefully few prototypes,
17689     which can conflict with char $ac_func (); below.
17690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691     <limits.h> exists even on freestanding compilers.  */
17692
17693 #ifdef __STDC__
17694 # include <limits.h>
17695 #else
17696 # include <assert.h>
17697 #endif
17698
17699 #undef $ac_func
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702    Use char because int might match the return type of a GCC
17703    builtin and then its argument prototype would still apply.  */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 char $ac_func ();
17708 /* The GNU C library defines this for functions which it implements
17709     to always fail with ENOSYS.  Some functions are actually named
17710     something starting with __ and the normal name is an alias.  */
17711 #if defined __stub_$ac_func || defined __stub___$ac_func
17712 choke me
17713 #endif
17714
17715 int
17716 main ()
17717 {
17718 return $ac_func ();
17719   ;
17720   return 0;
17721 }
17722 _ACEOF
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_link") 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; } &&
17747          { ac_try='test -s conftest$ac_exeext'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; }; then
17757   eval "$as_ac_var=yes"
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762         eval "$as_ac_var=no"
17763 fi
17764
17765 rm -f core conftest.err conftest.$ac_objext \
17766       conftest$ac_exeext conftest.$ac_ext
17767 fi
17768 ac_res=`eval echo '${'$as_ac_var'}'`
17769                { echo "$as_me:$LINENO: result: $ac_res" >&5
17770 echo "${ECHO_T}$ac_res" >&6; }
17771 if test `eval echo '${'$as_ac_var'}'` = yes; then
17772   cat >>confdefs.h <<_ACEOF
17773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17774 _ACEOF
17775
17776 fi
17777 done
17778
17779
17780
17781
17782
17783 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17784 do
17785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   cat >conftest.$ac_ext <<_ACEOF
17792 /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17798    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17799 #define $ac_func innocuous_$ac_func
17800
17801 /* System header to define __stub macros and hopefully few prototypes,
17802     which can conflict with char $ac_func (); below.
17803     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17804     <limits.h> exists even on freestanding compilers.  */
17805
17806 #ifdef __STDC__
17807 # include <limits.h>
17808 #else
17809 # include <assert.h>
17810 #endif
17811
17812 #undef $ac_func
17813
17814 /* Override any GCC internal prototype to avoid an error.
17815    Use char because int might match the return type of a GCC
17816    builtin and then its argument prototype would still apply.  */
17817 #ifdef __cplusplus
17818 extern "C"
17819 #endif
17820 char $ac_func ();
17821 /* The GNU C library defines this for functions which it implements
17822     to always fail with ENOSYS.  Some functions are actually named
17823     something starting with __ and the normal name is an alias.  */
17824 #if defined __stub_$ac_func || defined __stub___$ac_func
17825 choke me
17826 #endif
17827
17828 int
17829 main ()
17830 {
17831 return $ac_func ();
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (ac_try="$ac_link"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_link") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } &&
17850          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17851   { (case "(($ac_try" in
17852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853   *) ac_try_echo=$ac_try;;
17854 esac
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856   (eval "$ac_try") 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest$ac_exeext'
17861   { (case "(($ac_try" in
17862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863   *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866   (eval "$ac_try") 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; }; then
17870   eval "$as_ac_var=yes"
17871 else
17872   echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875         eval "$as_ac_var=no"
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext \
17879       conftest$ac_exeext conftest.$ac_ext
17880 fi
17881 ac_res=`eval echo '${'$as_ac_var'}'`
17882                { echo "$as_me:$LINENO: result: $ac_res" >&5
17883 echo "${ECHO_T}$ac_res" >&6; }
17884 if test `eval echo '${'$as_ac_var'}'` = yes; then
17885   cat >>confdefs.h <<_ACEOF
17886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17887 _ACEOF
17888
17889 fi
17890 done
17891
17892
17893
17894
17895
17896 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17897 do
17898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17902   echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904   cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h.  */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h.  */
17910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17912 #define $ac_func innocuous_$ac_func
17913
17914 /* System header to define __stub macros and hopefully few prototypes,
17915     which can conflict with char $ac_func (); below.
17916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917     <limits.h> exists even on freestanding compilers.  */
17918
17919 #ifdef __STDC__
17920 # include <limits.h>
17921 #else
17922 # include <assert.h>
17923 #endif
17924
17925 #undef $ac_func
17926
17927 /* Override any GCC internal prototype to avoid an error.
17928    Use char because int might match the return type of a GCC
17929    builtin and then its argument prototype would still apply.  */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 char $ac_func ();
17934 /* The GNU C library defines this for functions which it implements
17935     to always fail with ENOSYS.  Some functions are actually named
17936     something starting with __ and the normal name is an alias.  */
17937 #if defined __stub_$ac_func || defined __stub___$ac_func
17938 choke me
17939 #endif
17940
17941 int
17942 main ()
17943 {
17944 return $ac_func ();
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_link") 2>conftest.er1
17957   ac_status=$?
17958   grep -v '^ *+' conftest.er1 >conftest.err
17959   rm -f conftest.er1
17960   cat conftest.err >&5
17961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); } &&
17963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17964   { (case "(($ac_try" in
17965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966   *) ac_try_echo=$ac_try;;
17967 esac
17968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17969   (eval "$ac_try") 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; } &&
17973          { ac_try='test -s conftest$ac_exeext'
17974   { (case "(($ac_try" in
17975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17976   *) ac_try_echo=$ac_try;;
17977 esac
17978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17979   (eval "$ac_try") 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   eval "$as_ac_var=yes"
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988         eval "$as_ac_var=no"
17989 fi
17990
17991 rm -f core conftest.err conftest.$ac_objext \
17992       conftest$ac_exeext conftest.$ac_ext
17993 fi
17994 ac_res=`eval echo '${'$as_ac_var'}'`
17995                { echo "$as_me:$LINENO: result: $ac_res" >&5
17996 echo "${ECHO_T}$ac_res" >&6; }
17997 if test `eval echo '${'$as_ac_var'}'` = yes; then
17998   cat >>confdefs.h <<_ACEOF
17999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18000 _ACEOF
18001
18002 fi
18003 done
18004
18005 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18006 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18007 if test "${llvm_cv_c_printf_a+set}" = set; then
18008   echo $ECHO_N "(cached) $ECHO_C" >&6
18009 else
18010   ac_ext=c
18011 ac_cpp='$CPP $CPPFLAGS'
18012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18015
18016  if test "$cross_compiling" = yes; then
18017   llvmac_cv_c_printf_a=no
18018 else
18019   cat >conftest.$ac_ext <<_ACEOF
18020
18021   /* confdefs.h.  */
18022 _ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h.  */
18026
18027 #include <stdio.h>
18028 #include <stdlib.h>
18029
18030 int
18031 main ()
18032 {
18033
18034 volatile double A, B;
18035 char Buffer[100];
18036 A = 1;
18037 A /= 10.0;
18038 sprintf(Buffer, "%a", A);
18039 B = atof(Buffer);
18040 if (A != B)
18041   return (1);
18042 if (A != 0x1.999999999999ap-4)
18043   return (1);
18044 return (0);
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_link") 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18060   { (case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_try") 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   llvm_cv_c_printf_a=yes
18070 else
18071   echo "$as_me: program exited with status $ac_status" >&5
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 ( exit $ac_status )
18076 llvmac_cv_c_printf_a=no
18077 fi
18078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18079 fi
18080
18081
18082  ac_ext=c
18083 ac_cpp='$CPP $CPPFLAGS'
18084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18087
18088 fi
18089 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18090 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18091  if test "$llvm_cv_c_printf_a" = "yes"; then
18092
18093 cat >>confdefs.h <<\_ACEOF
18094 #define HAVE_PRINTF_A 1
18095 _ACEOF
18096
18097  fi
18098
18099
18100 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18101 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18102 if test "${ac_cv_func_rand48+set}" = set; then
18103   echo $ECHO_N "(cached) $ECHO_C" >&6
18104 else
18105   ac_ext=cpp
18106 ac_cpp='$CXXCPP $CPPFLAGS'
18107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110
18111    cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h.  */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h.  */
18117 #include <stdlib.h>
18118 int
18119 main ()
18120 {
18121 srand48(0);lrand48();drand48();
18122   ;
18123   return 0;
18124 }
18125 _ACEOF
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130   *) ac_try_echo=$ac_try;;
18131 esac
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133   (eval "$ac_compile") 2>conftest.er1
18134   ac_status=$?
18135   grep -v '^ *+' conftest.er1 >conftest.err
18136   rm -f conftest.er1
18137   cat conftest.err >&5
18138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139   (exit $ac_status); } &&
18140          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18141   { (case "(($ac_try" in
18142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143   *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146   (eval "$ac_try") 2>&5
18147   ac_status=$?
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); }; } &&
18150          { ac_try='test -s conftest.$ac_objext'
18151   { (case "(($ac_try" in
18152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153   *) ac_try_echo=$ac_try;;
18154 esac
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156   (eval "$ac_try") 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; }; then
18160   ac_cv_func_rand48=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165         ac_cv_func_rand48=no
18166 fi
18167
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169   ac_ext=c
18170 ac_cpp='$CPP $CPPFLAGS'
18171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18174
18175 fi
18176 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18177 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18178
18179 if test "$ac_cv_func_rand48" = "yes" ; then
18180
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_RAND48 1
18183 _ACEOF
18184
18185 fi
18186
18187
18188
18189 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18190 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18191 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18192   echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194   ac_ext=cpp
18195 ac_cpp='$CXXCPP $CPPFLAGS'
18196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18199
18200    cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 #include <math.h>
18207 int
18208 main ()
18209 {
18210 float f; isnan(f);
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_compile") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } &&
18229          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18230   { (case "(($ac_try" in
18231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232   *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235   (eval "$ac_try") 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; } &&
18239          { ac_try='test -s conftest.$ac_objext'
18240   { (case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_try") 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; }; then
18249   ac_cv_func_isnan_in_math_h=yes
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254         ac_cv_func_isnan_in_math_h=no
18255 fi
18256
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258   ac_ext=c
18259 ac_cpp='$CPP $CPPFLAGS'
18260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18263
18264 fi
18265 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18266 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18267
18268
18269 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18270
18271 cat >>confdefs.h <<\_ACEOF
18272 #define HAVE_ISNAN_IN_MATH_H 1
18273 _ACEOF
18274
18275 fi
18276
18277 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18278 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18279 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   ac_ext=cpp
18283 ac_cpp='$CXXCPP $CPPFLAGS'
18284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18287
18288    cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294 #include <cmath>
18295 int
18296 main ()
18297 {
18298 float f; isnan(f);
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 rm -f conftest.$ac_objext
18304 if { (ac_try="$ac_compile"
18305 case "(($ac_try" in
18306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307   *) ac_try_echo=$ac_try;;
18308 esac
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310   (eval "$ac_compile") 2>conftest.er1
18311   ac_status=$?
18312   grep -v '^ *+' conftest.er1 >conftest.err
18313   rm -f conftest.er1
18314   cat conftest.err >&5
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); } &&
18317          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18318   { (case "(($ac_try" in
18319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320   *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323   (eval "$ac_try") 2>&5
18324   ac_status=$?
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); }; } &&
18327          { ac_try='test -s conftest.$ac_objext'
18328   { (case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_try") 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); }; }; then
18337   ac_cv_func_isnan_in_cmath=yes
18338 else
18339   echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18341
18342         ac_cv_func_isnan_in_cmath=no
18343 fi
18344
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18346   ac_ext=c
18347 ac_cpp='$CPP $CPPFLAGS'
18348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18351
18352 fi
18353 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18354 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18355
18356 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18357
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE_ISNAN_IN_CMATH 1
18360 _ACEOF
18361
18362 fi
18363
18364 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18365 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18366 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_ext=cpp
18370 ac_cpp='$CXXCPP $CPPFLAGS'
18371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18374
18375    cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h.  */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h.  */
18381 #include <cmath>
18382 int
18383 main ()
18384 {
18385 float f; std::isnan(f);
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 rm -f conftest.$ac_objext
18391 if { (ac_try="$ac_compile"
18392 case "(($ac_try" in
18393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394   *) ac_try_echo=$ac_try;;
18395 esac
18396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397   (eval "$ac_compile") 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405   { (case "(($ac_try" in
18406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407   *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410   (eval "$ac_try") 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); }; } &&
18414          { ac_try='test -s conftest.$ac_objext'
18415   { (case "(($ac_try" in
18416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417   *) ac_try_echo=$ac_try;;
18418 esac
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420   (eval "$ac_try") 2>&5
18421   ac_status=$?
18422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423   (exit $ac_status); }; }; then
18424   ac_cv_func_std_isnan_in_cmath=yes
18425 else
18426   echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429         ac_cv_func_std_isnan_in_cmath=no
18430 fi
18431
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433   ac_ext=c
18434 ac_cpp='$CPP $CPPFLAGS'
18435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439 fi
18440 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18441 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18442
18443 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18444
18445 cat >>confdefs.h <<\_ACEOF
18446 #define HAVE_STD_ISNAN_IN_CMATH 1
18447 _ACEOF
18448
18449 fi
18450
18451
18452 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18453 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18454 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18455   echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457   ac_ext=cpp
18458 ac_cpp='$CXXCPP $CPPFLAGS'
18459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
18463    cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h.  */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h.  */
18469 #include <math.h>
18470 int
18471 main ()
18472 {
18473 float f; isinf(f);
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext
18479 if { (ac_try="$ac_compile"
18480 case "(($ac_try" in
18481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482   *) ac_try_echo=$ac_try;;
18483 esac
18484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485   (eval "$ac_compile") 2>conftest.er1
18486   ac_status=$?
18487   grep -v '^ *+' conftest.er1 >conftest.err
18488   rm -f conftest.er1
18489   cat conftest.err >&5
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); } &&
18492          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18493   { (case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498   (eval "$ac_try") 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; } &&
18502          { ac_try='test -s conftest.$ac_objext'
18503   { (case "(($ac_try" in
18504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505   *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508   (eval "$ac_try") 2>&5
18509   ac_status=$?
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); }; }; then
18512   ac_cv_func_isinf_in_math_h=yes
18513 else
18514   echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.$ac_ext >&5
18516
18517         ac_cv_func_isinf_in_math_h=no
18518 fi
18519
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521   ac_ext=c
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527 fi
18528 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18529 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18530
18531 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18532
18533 cat >>confdefs.h <<\_ACEOF
18534 #define HAVE_ISINF_IN_MATH_H 1
18535 _ACEOF
18536
18537 fi
18538
18539 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18540 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18541 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   ac_ext=cpp
18545 ac_cpp='$CXXCPP $CPPFLAGS'
18546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18549
18550    cat >conftest.$ac_ext <<_ACEOF
18551 /* confdefs.h.  */
18552 _ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h.  */
18556 #include <cmath>
18557 int
18558 main ()
18559 {
18560 float f; isinf(f);
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext
18566 if { (ac_try="$ac_compile"
18567 case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_compile") 2>conftest.er1
18573   ac_status=$?
18574   grep -v '^ *+' conftest.er1 >conftest.err
18575   rm -f conftest.er1
18576   cat conftest.err >&5
18577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578   (exit $ac_status); } &&
18579          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18580   { (case "(($ac_try" in
18581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582   *) ac_try_echo=$ac_try;;
18583 esac
18584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585   (eval "$ac_try") 2>&5
18586   ac_status=$?
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); }; } &&
18589          { ac_try='test -s conftest.$ac_objext'
18590   { (case "(($ac_try" in
18591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592   *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595   (eval "$ac_try") 2>&5
18596   ac_status=$?
18597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598   (exit $ac_status); }; }; then
18599   ac_cv_func_isinf_in_cmath=yes
18600 else
18601   echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604         ac_cv_func_isinf_in_cmath=no
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608   ac_ext=c
18609 ac_cpp='$CPP $CPPFLAGS'
18610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613
18614 fi
18615 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18616 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18617
18618 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18619
18620 cat >>confdefs.h <<\_ACEOF
18621 #define HAVE_ISINF_IN_CMATH 1
18622 _ACEOF
18623
18624 fi
18625
18626 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18627 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18628 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18629   echo $ECHO_N "(cached) $ECHO_C" >&6
18630 else
18631   ac_ext=cpp
18632 ac_cpp='$CXXCPP $CPPFLAGS'
18633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18636
18637    cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643 #include <cmath>
18644 int
18645 main ()
18646 {
18647 float f; std::isinf(f)}
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext
18653 if { (ac_try="$ac_compile"
18654 case "(($ac_try" in
18655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656   *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659   (eval "$ac_compile") 2>conftest.er1
18660   ac_status=$?
18661   grep -v '^ *+' conftest.er1 >conftest.err
18662   rm -f conftest.er1
18663   cat conftest.err >&5
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } &&
18666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18667   { (case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_try") 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; } &&
18676          { ac_try='test -s conftest.$ac_objext'
18677   { (case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_try") 2>&5
18683   ac_status=$?
18684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); }; }; then
18686   ac_cv_func_std_isinf_in_cmath=yes
18687 else
18688   echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18690
18691         ac_cv_func_std_isinf_in_cmath=no
18692 fi
18693
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695   ac_ext=c
18696 ac_cpp='$CPP $CPPFLAGS'
18697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18700
18701 fi
18702 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18703 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18704
18705 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18706
18707 cat >>confdefs.h <<\_ACEOF
18708 #define HAVE_STD_ISINF_IN_CMATH 1
18709 _ACEOF
18710
18711 fi
18712
18713 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18714 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18715 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18716   echo $ECHO_N "(cached) $ECHO_C" >&6
18717 else
18718   ac_ext=cpp
18719 ac_cpp='$CXXCPP $CPPFLAGS'
18720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18723
18724    cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 #include <ieeefp.h>
18731 int
18732 main ()
18733 {
18734 float f; finite(f);
18735   ;
18736   return 0;
18737 }
18738 _ACEOF
18739 rm -f conftest.$ac_objext
18740 if { (ac_try="$ac_compile"
18741 case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_compile") 2>conftest.er1
18747   ac_status=$?
18748   grep -v '^ *+' conftest.er1 >conftest.err
18749   rm -f conftest.er1
18750   cat conftest.err >&5
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); } &&
18753          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18754   { (case "(($ac_try" in
18755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756   *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759   (eval "$ac_try") 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; } &&
18763          { ac_try='test -s conftest.$ac_objext'
18764   { (case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_try") 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); }; }; then
18773   ac_cv_func_finite_in_ieeefp_h=yes
18774 else
18775   echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778         ac_cv_func_finite_in_ieeefp_h=no
18779 fi
18780
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18782   ac_ext=c
18783 ac_cpp='$CPP $CPPFLAGS'
18784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18787
18788 fi
18789 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18790 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18791
18792 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define HAVE_FINITE_IN_IEEEFP_H 1
18796 _ACEOF
18797
18798 fi
18799
18800
18801
18802 if test "$llvm_cv_platform_type" = "Unix" ; then
18803
18804
18805 for ac_header in stdlib.h unistd.h
18806 do
18807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18812   echo $ECHO_N "(cached) $ECHO_C" >&6
18813 fi
18814 ac_res=`eval echo '${'$as_ac_Header'}'`
18815                { echo "$as_me:$LINENO: result: $ac_res" >&5
18816 echo "${ECHO_T}$ac_res" >&6; }
18817 else
18818   # Is the header compilable?
18819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827 $ac_includes_default
18828 #include <$ac_header>
18829 _ACEOF
18830 rm -f conftest.$ac_objext
18831 if { (ac_try="$ac_compile"
18832 case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_compile") 2>conftest.er1
18838   ac_status=$?
18839   grep -v '^ *+' conftest.er1 >conftest.err
18840   rm -f conftest.er1
18841   cat conftest.err >&5
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); } &&
18844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18845   { (case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850   (eval "$ac_try") 2>&5
18851   ac_status=$?
18852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853   (exit $ac_status); }; } &&
18854          { ac_try='test -s conftest.$ac_objext'
18855   { (case "(($ac_try" in
18856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857   *) ac_try_echo=$ac_try;;
18858 esac
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860   (eval "$ac_try") 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; }; then
18864   ac_header_compiler=yes
18865 else
18866   echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869         ac_header_compiler=no
18870 fi
18871
18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18874 echo "${ECHO_T}$ac_header_compiler" >&6; }
18875
18876 # Is the header present?
18877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18879 cat >conftest.$ac_ext <<_ACEOF
18880 /* confdefs.h.  */
18881 _ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h.  */
18885 #include <$ac_header>
18886 _ACEOF
18887 if { (ac_try="$ac_cpp conftest.$ac_ext"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } >/dev/null; then
18900   if test -s conftest.err; then
18901     ac_cpp_err=$ac_c_preproc_warn_flag
18902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18903   else
18904     ac_cpp_err=
18905   fi
18906 else
18907   ac_cpp_err=yes
18908 fi
18909 if test -z "$ac_cpp_err"; then
18910   ac_header_preproc=yes
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915   ac_header_preproc=no
18916 fi
18917
18918 rm -f conftest.err conftest.$ac_ext
18919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18920 echo "${ECHO_T}$ac_header_preproc" >&6; }
18921
18922 # So?  What about this header?
18923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18924   yes:no: )
18925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18929     ac_header_preproc=yes
18930     ;;
18931   no:yes:* )
18932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18944     ( cat <<\_ASBOX
18945 ## ----------------------------------- ##
18946 ## Report this to llvmbugs@cs.uiuc.edu ##
18947 ## ----------------------------------- ##
18948 _ASBOX
18949      ) | sed "s/^/$as_me: WARNING:     /" >&2
18950     ;;
18951 esac
18952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18955   echo $ECHO_N "(cached) $ECHO_C" >&6
18956 else
18957   eval "$as_ac_Header=\$ac_header_preproc"
18958 fi
18959 ac_res=`eval echo '${'$as_ac_Header'}'`
18960                { echo "$as_me:$LINENO: result: $ac_res" >&5
18961 echo "${ECHO_T}$ac_res" >&6; }
18962
18963 fi
18964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18965   cat >>confdefs.h <<_ACEOF
18966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18967 _ACEOF
18968
18969 fi
18970
18971 done
18972
18973
18974 for ac_func in getpagesize
18975 do
18976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18990 #define $ac_func innocuous_$ac_func
18991
18992 /* System header to define __stub macros and hopefully few prototypes,
18993     which can conflict with char $ac_func (); below.
18994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995     <limits.h> exists even on freestanding compilers.  */
18996
18997 #ifdef __STDC__
18998 # include <limits.h>
18999 #else
19000 # include <assert.h>
19001 #endif
19002
19003 #undef $ac_func
19004
19005 /* Override any GCC internal prototype to avoid an error.
19006    Use char because int might match the return type of a GCC
19007    builtin and then its argument prototype would still apply.  */
19008 #ifdef __cplusplus
19009 extern "C"
19010 #endif
19011 char $ac_func ();
19012 /* The GNU C library defines this for functions which it implements
19013     to always fail with ENOSYS.  Some functions are actually named
19014     something starting with __ and the normal name is an alias.  */
19015 #if defined __stub_$ac_func || defined __stub___$ac_func
19016 choke me
19017 #endif
19018
19019 int
19020 main ()
19021 {
19022 return $ac_func ();
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 rm -f conftest.$ac_objext conftest$ac_exeext
19028 if { (ac_try="$ac_link"
19029 case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_link") 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042   { (case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_try") 2>&5
19048   ac_status=$?
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); }; } &&
19051          { ac_try='test -s conftest$ac_exeext'
19052   { (case "(($ac_try" in
19053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054   *) ac_try_echo=$ac_try;;
19055 esac
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057   (eval "$ac_try") 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; }; then
19061   eval "$as_ac_var=yes"
19062 else
19063   echo "$as_me: failed program was:" >&5
19064 sed 's/^/| /' conftest.$ac_ext >&5
19065
19066         eval "$as_ac_var=no"
19067 fi
19068
19069 rm -f core conftest.err conftest.$ac_objext \
19070       conftest$ac_exeext conftest.$ac_ext
19071 fi
19072 ac_res=`eval echo '${'$as_ac_var'}'`
19073                { echo "$as_me:$LINENO: result: $ac_res" >&5
19074 echo "${ECHO_T}$ac_res" >&6; }
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076   cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078 _ACEOF
19079
19080 fi
19081 done
19082
19083 { echo "$as_me:$LINENO: checking for working mmap" >&5
19084 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19086   echo $ECHO_N "(cached) $ECHO_C" >&6
19087 else
19088   if test "$cross_compiling" = yes; then
19089   ac_cv_func_mmap_fixed_mapped=no
19090 else
19091   cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 $ac_includes_default
19098 /* malloc might have been renamed as rpl_malloc. */
19099 #undef malloc
19100
19101 /* Thanks to Mike Haertel and Jim Avera for this test.
19102    Here is a matrix of mmap possibilities:
19103         mmap private not fixed
19104         mmap private fixed at somewhere currently unmapped
19105         mmap private fixed at somewhere already mapped
19106         mmap shared not fixed
19107         mmap shared fixed at somewhere currently unmapped
19108         mmap shared fixed at somewhere already mapped
19109    For private mappings, we should verify that changes cannot be read()
19110    back from the file, nor mmap's back from the file at a different
19111    address.  (There have been systems where private was not correctly
19112    implemented like the infamous i386 svr4.0, and systems where the
19113    VM page cache was not coherent with the file system buffer cache
19114    like early versions of FreeBSD and possibly contemporary NetBSD.)
19115    For shared mappings, we should conversely verify that changes get
19116    propagated back to all the places they're supposed to be.
19117
19118    Grep wants private fixed already mapped.
19119    The main things grep needs to know about mmap are:
19120    * does it exist and is it safe to write into the mmap'd area
19121    * how to use it (BSD variants)  */
19122
19123 #include <fcntl.h>
19124 #include <sys/mman.h>
19125
19126 #if !STDC_HEADERS && !HAVE_STDLIB_H
19127 char *malloc ();
19128 #endif
19129
19130 /* This mess was copied from the GNU getpagesize.h.  */
19131 #if !HAVE_GETPAGESIZE
19132 /* Assume that all systems that can run configure have sys/param.h.  */
19133 # if !HAVE_SYS_PARAM_H
19134 #  define HAVE_SYS_PARAM_H 1
19135 # endif
19136
19137 # ifdef _SC_PAGESIZE
19138 #  define getpagesize() sysconf(_SC_PAGESIZE)
19139 # else /* no _SC_PAGESIZE */
19140 #  if HAVE_SYS_PARAM_H
19141 #   include <sys/param.h>
19142 #   ifdef EXEC_PAGESIZE
19143 #    define getpagesize() EXEC_PAGESIZE
19144 #   else /* no EXEC_PAGESIZE */
19145 #    ifdef NBPG
19146 #     define getpagesize() NBPG * CLSIZE
19147 #     ifndef CLSIZE
19148 #      define CLSIZE 1
19149 #     endif /* no CLSIZE */
19150 #    else /* no NBPG */
19151 #     ifdef NBPC
19152 #      define getpagesize() NBPC
19153 #     else /* no NBPC */
19154 #      ifdef PAGESIZE
19155 #       define getpagesize() PAGESIZE
19156 #      endif /* PAGESIZE */
19157 #     endif /* no NBPC */
19158 #    endif /* no NBPG */
19159 #   endif /* no EXEC_PAGESIZE */
19160 #  else /* no HAVE_SYS_PARAM_H */
19161 #   define getpagesize() 8192   /* punt totally */
19162 #  endif /* no HAVE_SYS_PARAM_H */
19163 # endif /* no _SC_PAGESIZE */
19164
19165 #endif /* no HAVE_GETPAGESIZE */
19166
19167 int
19168 main ()
19169 {
19170   char *data, *data2, *data3;
19171   int i, pagesize;
19172   int fd;
19173
19174   pagesize = getpagesize ();
19175
19176   /* First, make a file with some known garbage in it. */
19177   data = (char *) malloc (pagesize);
19178   if (!data)
19179     return 1;
19180   for (i = 0; i < pagesize; ++i)
19181     *(data + i) = rand ();
19182   umask (0);
19183   fd = creat ("conftest.mmap", 0600);
19184   if (fd < 0)
19185     return 1;
19186   if (write (fd, data, pagesize) != pagesize)
19187     return 1;
19188   close (fd);
19189
19190   /* Next, try to mmap the file at a fixed address which already has
19191      something else allocated at it.  If we can, also make sure that
19192      we see the same garbage.  */
19193   fd = open ("conftest.mmap", O_RDWR);
19194   if (fd < 0)
19195     return 1;
19196   data2 = (char *) malloc (2 * pagesize);
19197   if (!data2)
19198     return 1;
19199   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19200   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19201                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19202     return 1;
19203   for (i = 0; i < pagesize; ++i)
19204     if (*(data + i) != *(data2 + i))
19205       return 1;
19206
19207   /* Finally, make sure that changes to the mapped area do not
19208      percolate back to the file as seen by read().  (This is a bug on
19209      some variants of i386 svr4.0.)  */
19210   for (i = 0; i < pagesize; ++i)
19211     *(data2 + i) = *(data2 + i) + 1;
19212   data3 = (char *) malloc (pagesize);
19213   if (!data3)
19214     return 1;
19215   if (read (fd, data3, pagesize) != pagesize)
19216     return 1;
19217   for (i = 0; i < pagesize; ++i)
19218     if (*(data + i) != *(data3 + i))
19219       return 1;
19220   close (fd);
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_link") 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
19244   ac_cv_func_mmap_fixed_mapped=yes
19245 else
19246   echo "$as_me: program exited with status $ac_status" >&5
19247 echo "$as_me: failed program was:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ( exit $ac_status )
19251 ac_cv_func_mmap_fixed_mapped=no
19252 fi
19253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19254 fi
19255
19256
19257 fi
19258 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19259 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19260 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19261
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE_MMAP 1
19264 _ACEOF
19265
19266 fi
19267 rm -f conftest.mmap
19268
19269   { echo "$as_me:$LINENO: checking for mmap of files" >&5
19270 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19271 if test "${ac_cv_func_mmap_file+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274    ac_ext=c
19275 ac_cpp='$CPP $CPPFLAGS'
19276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19279
19280   if test "$cross_compiling" = yes; then
19281   ac_cv_func_mmap_file=no
19282 else
19283   cat >conftest.$ac_ext <<_ACEOF
19284
19285     /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19290
19291 #include <sys/types.h>
19292 #include <sys/mman.h>
19293 #include <fcntl.h>
19294
19295 int
19296 main ()
19297 {
19298
19299   int fd;
19300   fd = creat ("foo",0777);
19301   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19302   unlink ("foo");
19303   return (fd != (int) MAP_FAILED);
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 rm -f conftest$ac_exeext
19309 if { (ac_try="$ac_link"
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_link") 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319   { (case "(($ac_try" in
19320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321   *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324   (eval "$ac_try") 2>&5
19325   ac_status=$?
19326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); }; }; then
19328   ac_cv_func_mmap_file=yes
19329 else
19330   echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ( exit $ac_status )
19335 ac_cv_func_mmap_file=no
19336 fi
19337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19338 fi
19339
19340
19341   ac_ext=c
19342 ac_cpp='$CPP $CPPFLAGS'
19343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19346
19347
19348 fi
19349 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19350 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19351 if test "$ac_cv_func_mmap_file" = yes; then
19352
19353 cat >>confdefs.h <<\_ACEOF
19354 #define HAVE_MMAP_FILE
19355 _ACEOF
19356
19357    MMAP_FILE=yes
19358
19359 fi
19360
19361   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19362 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19363 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19364   echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366   if test "$llvm_cv_os_type" = "Interix" ; then
19367    ac_cv_need_dev_zero_for_mmap=yes
19368  else
19369    ac_cv_need_dev_zero_for_mmap=no
19370  fi
19371
19372 fi
19373 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19374 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19375 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19376
19377 cat >>confdefs.h <<\_ACEOF
19378 #define NEED_DEV_ZERO_FOR_MMAP 1
19379 _ACEOF
19380
19381 fi
19382
19383   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19384   then
19385     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19386 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19387   fi
19388   if test "$ac_cv_func_mmap_file" = "no"
19389   then
19390     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19391 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19392   fi
19393 fi
19394
19395 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19396 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 int main() {
19404         volatile unsigned long val = 1;
19405         __sync_synchronize();
19406         __sync_val_compare_and_swap(&val, 1, 0);
19407         __sync_add_and_fetch(&val, 1);
19408         __sync_sub_and_fetch(&val, 1);
19409         return 0;
19410       }
19411
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_link") 2>conftest.er1
19421   ac_status=$?
19422   grep -v '^ *+' conftest.er1 >conftest.err
19423   rm -f conftest.er1
19424   cat conftest.err >&5
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); } &&
19427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19428   { (case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_try") 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; } &&
19437          { ac_try='test -s conftest$ac_exeext'
19438   { (case "(($ac_try" in
19439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440   *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443   (eval "$ac_try") 2>&5
19444   ac_status=$?
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); }; }; then
19447   { echo "$as_me:$LINENO: result: yes" >&5
19448 echo "${ECHO_T}yes" >&6; }
19449
19450 cat >>confdefs.h <<\_ACEOF
19451 #define LLVM_MULTITHREADED 1
19452 _ACEOF
19453
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458         { echo "$as_me:$LINENO: result: no" >&5
19459 echo "${ECHO_T}no" >&6; }
19460
19461 cat >>confdefs.h <<\_ACEOF
19462 #define LLVM_MULTITHREADED 0
19463 _ACEOF
19464
19465   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19466 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19467 fi
19468
19469 rm -f core conftest.err conftest.$ac_objext \
19470       conftest$ac_exeext conftest.$ac_ext
19471
19472
19473
19474 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19475   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19476 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19477 if test "${llvm_cv_linux_mixed+set}" = set; then
19478   echo $ECHO_N "(cached) $ECHO_C" >&6
19479 else
19480    ac_ext=c
19481 ac_cpp='$CPP $CPPFLAGS'
19482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19485
19486   cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h.  */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h.  */
19492 #ifndef __x86_64__
19493        error: Not x86-64 even if uname says so!
19494       #endif
19495
19496 int
19497 main ()
19498 {
19499
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_compile") 2>conftest.er1
19512   ac_status=$?
19513   grep -v '^ *+' conftest.er1 >conftest.err
19514   rm -f conftest.er1
19515   cat conftest.err >&5
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } &&
19518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19519   { (case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_try") 2>&5
19525   ac_status=$?
19526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527   (exit $ac_status); }; } &&
19528          { ac_try='test -s conftest.$ac_objext'
19529   { (case "(($ac_try" in
19530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531   *) ac_try_echo=$ac_try;;
19532 esac
19533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534   (eval "$ac_try") 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538   llvm_cv_linux_mixed=no
19539 else
19540   echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19542
19543         llvm_cv_linux_mixed=yes
19544 fi
19545
19546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19547   ac_ext=c
19548 ac_cpp='$CPP $CPPFLAGS'
19549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553
19554 fi
19555 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19556 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19557
19558   if test "$llvm_cv_linux_mixed" = "yes"; then
19559     llvm_cv_target_arch="x86"
19560     ARCH="x86"
19561   fi
19562 fi
19563
19564
19565 for ac_func in __dso_handle
19566 do
19567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h.  */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h.  */
19579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19581 #define $ac_func innocuous_$ac_func
19582
19583 /* System header to define __stub macros and hopefully few prototypes,
19584     which can conflict with char $ac_func (); below.
19585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19586     <limits.h> exists even on freestanding compilers.  */
19587
19588 #ifdef __STDC__
19589 # include <limits.h>
19590 #else
19591 # include <assert.h>
19592 #endif
19593
19594 #undef $ac_func
19595
19596 /* Override any GCC internal prototype to avoid an error.
19597    Use char because int might match the return type of a GCC
19598    builtin and then its argument prototype would still apply.  */
19599 #ifdef __cplusplus
19600 extern "C"
19601 #endif
19602 char $ac_func ();
19603 /* The GNU C library defines this for functions which it implements
19604     to always fail with ENOSYS.  Some functions are actually named
19605     something starting with __ and the normal name is an alias.  */
19606 #if defined __stub_$ac_func || defined __stub___$ac_func
19607 choke me
19608 #endif
19609
19610 int
19611 main ()
19612 {
19613 return $ac_func ();
19614   ;
19615   return 0;
19616 }
19617 _ACEOF
19618 rm -f conftest.$ac_objext conftest$ac_exeext
19619 if { (ac_try="$ac_link"
19620 case "(($ac_try" in
19621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622   *) ac_try_echo=$ac_try;;
19623 esac
19624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19625   (eval "$ac_link") 2>conftest.er1
19626   ac_status=$?
19627   grep -v '^ *+' conftest.er1 >conftest.err
19628   rm -f conftest.er1
19629   cat conftest.err >&5
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } &&
19632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19633   { (case "(($ac_try" in
19634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635   *) ac_try_echo=$ac_try;;
19636 esac
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638   (eval "$ac_try") 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; } &&
19642          { ac_try='test -s conftest$ac_exeext'
19643   { (case "(($ac_try" in
19644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645   *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648   (eval "$ac_try") 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   eval "$as_ac_var=yes"
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657         eval "$as_ac_var=no"
19658 fi
19659
19660 rm -f core conftest.err conftest.$ac_objext \
19661       conftest$ac_exeext conftest.$ac_ext
19662 fi
19663 ac_res=`eval echo '${'$as_ac_var'}'`
19664                { echo "$as_me:$LINENO: result: $ac_res" >&5
19665 echo "${ECHO_T}$ac_res" >&6; }
19666 if test `eval echo '${'$as_ac_var'}'` = yes; then
19667   cat >>confdefs.h <<_ACEOF
19668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19669 _ACEOF
19670
19671 fi
19672 done
19673
19674
19675 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19676 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19677 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19678   echo $ECHO_N "(cached) $ECHO_C" >&6
19679 else
19680   llvm_cv_llvmgcc_sanity="no"
19681 if test -x "$LLVMGCC" ; then
19682   cp /dev/null conftest.c
19683   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19684       grep 'target datalayout =' > /dev/null 2>&1
19685   if test $? -eq 0 ; then
19686     llvm_cv_llvmgcc_sanity="yes"
19687   fi
19688   rm conftest.c
19689 fi
19690 fi
19691 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19692 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19693
19694 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19695   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19696 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19697   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19698   LLVMCC1=$llvmcc1path
19699
19700   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19701   LLVMCC1PLUS=$llvmcc1pluspath
19702
19703   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19704   LLVMGCCDIR=$llvmgccdir
19705
19706   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19707   LLVMGCC_LANGS=$llvmgcclangs
19708
19709   { echo "$as_me:$LINENO: result: ok" >&5
19710 echo "${ECHO_T}ok" >&6; }
19711 fi
19712
19713 SHLIBEXT=$libltdl_cv_shlibext
19714
19715
19716 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19717
19718
19719 # Translate the various configuration directories and other basic
19720 # information into substitutions that will end up in Makefile.config.in
19721 # that these configured values can be used by the makefiles
19722 if test "${prefix}" = "NONE" ; then
19723   prefix="/usr/local"
19724 fi
19725 eval LLVM_PREFIX="${prefix}";
19726 eval LLVM_BINDIR="${prefix}/bin";
19727 eval LLVM_LIBDIR="${prefix}/lib";
19728 eval LLVM_DATADIR="${prefix}/share/llvm";
19729 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19730 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19731 eval LLVM_INCLUDEDIR="${prefix}/include";
19732 eval LLVM_INFODIR="${prefix}/info";
19733 eval LLVM_MANDIR="${prefix}/man";
19734 LLVM_CONFIGTIME=`date`
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746 # Place the various directores into the config.h file as #defines so that we
19747 # can know about the installation paths within LLVM.
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_PREFIX "$LLVM_PREFIX"
19751 _ACEOF
19752
19753
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_BINDIR "$LLVM_BINDIR"
19756 _ACEOF
19757
19758
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19761 _ACEOF
19762
19763
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_DATADIR "$LLVM_DATADIR"
19766 _ACEOF
19767
19768
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19771 _ACEOF
19772
19773
19774 cat >>confdefs.h <<_ACEOF
19775 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19776 _ACEOF
19777
19778
19779 cat >>confdefs.h <<_ACEOF
19780 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19781 _ACEOF
19782
19783
19784 cat >>confdefs.h <<_ACEOF
19785 #define LLVM_INFODIR "$LLVM_INFODIR"
19786 _ACEOF
19787
19788
19789 cat >>confdefs.h <<_ACEOF
19790 #define LLVM_MANDIR "$LLVM_MANDIR"
19791 _ACEOF
19792
19793
19794 cat >>confdefs.h <<_ACEOF
19795 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19796 _ACEOF
19797
19798
19799 cat >>confdefs.h <<_ACEOF
19800 #define LLVM_HOSTTRIPLE "$host"
19801 _ACEOF
19802
19803
19804 # Determine which bindings to build.
19805 if test "$BINDINGS_TO_BUILD" = auto ; then
19806   BINDINGS_TO_BUILD=""
19807   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19808     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19809   fi
19810 fi
19811 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19812
19813
19814 # This isn't really configurey, but it avoids having to repeat the list in
19815 # other files.
19816 ALL_BINDINGS=ocaml
19817
19818
19819 # Do any work necessary to ensure that bindings have what they need.
19820 binding_prereqs_failed=0
19821 for a_binding in $BINDINGS_TO_BUILD ; do
19822   case "$a_binding" in
19823   ocaml)
19824     if test "x$OCAMLC" = x ; then
19825       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19826 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19827       binding_prereqs_failed=1
19828     fi
19829     if test "x$OCAMLDEP" = x ; then
19830       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19831 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19832       binding_prereqs_failed=1
19833     fi
19834     if test "x$OCAMLOPT" = x ; then
19835       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19836 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19837           fi
19838     if test "x$with_ocaml_libdir" != xauto ; then
19839       OCAML_LIBDIR=$with_ocaml_libdir
19840
19841     else
19842       ocaml_stdlib="`"$OCAMLC" -where`"
19843       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19844       then
19845         # ocaml stdlib is beneath our prefix; use stdlib
19846         OCAML_LIBDIR=$ocaml_stdlib
19847
19848       else
19849         # ocaml stdlib is outside our prefix; use libdir/ocaml
19850         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19851
19852       fi
19853     fi
19854     ;;
19855   esac
19856 done
19857 if test "$binding_prereqs_failed" = 1 ; then
19858   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19859 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19860    { (exit 1); exit 1; }; }
19861 fi
19862
19863 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19864 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19865 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868    ac_ext=cpp
19869 ac_cpp='$CXXCPP $CPPFLAGS'
19870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19873
19874   oldcxxflags="$CXXFLAGS"
19875   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19876   cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882
19883 int
19884 main ()
19885 {
19886
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_compile") 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } &&
19905          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19906   { (case "(($ac_try" in
19907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908   *) ac_try_echo=$ac_try;;
19909 esac
19910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19911   (eval "$ac_try") 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; } &&
19915          { ac_try='test -s conftest.$ac_objext'
19916   { (case "(($ac_try" in
19917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918   *) ac_try_echo=$ac_try;;
19919 esac
19920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19921   (eval "$ac_try") 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); }; }; then
19925   llvm_cv_cxx_visibility_inlines_hidden=yes
19926 else
19927   echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930         llvm_cv_cxx_visibility_inlines_hidden=no
19931 fi
19932
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934   CXXFLAGS="$oldcxxflags"
19935   ac_ext=c
19936 ac_cpp='$CPP $CPPFLAGS'
19937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940
19941
19942 fi
19943 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19944 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19945 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19946   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19947
19948 else
19949   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19950
19951 fi
19952
19953
19954 if test "$llvm_cv_link_use_r" = "yes" ; then
19955   RPATH="-Wl,-R"
19956 else
19957   RPATH="-Wl,-rpath"
19958 fi
19959
19960
19961 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19962   RDYNAMIC="-Wl,-export-dynamic"
19963 else
19964   RDYNAMIC=""
19965 fi
19966
19967
19968
19969 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19970
19971 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19972
19973 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19974
19975 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19976
19977 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19978
19979 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19980
19981
19982 ac_config_files="$ac_config_files Makefile.config"
19983
19984
19985 ac_config_files="$ac_config_files llvm.spec"
19986
19987
19988 ac_config_files="$ac_config_files docs/doxygen.cfg"
19989
19990
19991 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19992
19993
19994 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19995
19996
19997 ac_config_commands="$ac_config_commands setup"
19998
19999 ac_config_commands="$ac_config_commands Makefile"
20000
20001
20002 ac_config_commands="$ac_config_commands Makefile.common"
20003
20004
20005 ac_config_commands="$ac_config_commands examples/Makefile"
20006
20007
20008 ac_config_commands="$ac_config_commands lib/Makefile"
20009
20010
20011 ac_config_commands="$ac_config_commands runtime/Makefile"
20012
20013
20014 ac_config_commands="$ac_config_commands test/Makefile"
20015
20016
20017 ac_config_commands="$ac_config_commands test/Makefile.tests"
20018
20019
20020 ac_config_commands="$ac_config_commands unittests/Makefile"
20021
20022
20023 ac_config_commands="$ac_config_commands tools/Makefile"
20024
20025
20026 ac_config_commands="$ac_config_commands utils/Makefile"
20027
20028
20029 ac_config_commands="$ac_config_commands projects/Makefile"
20030
20031
20032 ac_config_commands="$ac_config_commands bindings/Makefile"
20033
20034
20035 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20036
20037
20038
20039 cat >confcache <<\_ACEOF
20040 # This file is a shell script that caches the results of configure
20041 # tests run on this system so they can be shared between configure
20042 # scripts and configure runs, see configure's option --config-cache.
20043 # It is not useful on other systems.  If it contains results you don't
20044 # want to keep, you may remove or edit it.
20045 #
20046 # config.status only pays attention to the cache file if you give it
20047 # the --recheck option to rerun configure.
20048 #
20049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20051 # following values.
20052
20053 _ACEOF
20054
20055 # The following way of writing the cache mishandles newlines in values,
20056 # but we know of no workaround that is simple, portable, and efficient.
20057 # So, we kill variables containing newlines.
20058 # Ultrix sh set writes to stderr and can't be redirected directly,
20059 # and sets the high bit in the cache file unless we assign to the vars.
20060 (
20061   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20062     eval ac_val=\$$ac_var
20063     case $ac_val in #(
20064     *${as_nl}*)
20065       case $ac_var in #(
20066       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20067 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20068       esac
20069       case $ac_var in #(
20070       _ | IFS | as_nl) ;; #(
20071       *) $as_unset $ac_var ;;
20072       esac ;;
20073     esac
20074   done
20075
20076   (set) 2>&1 |
20077     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20078     *${as_nl}ac_space=\ *)
20079       # `set' does not quote correctly, so add quotes (double-quote
20080       # substitution turns \\\\ into \\, and sed turns \\ into \).
20081       sed -n \
20082         "s/'/'\\\\''/g;
20083           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20084       ;; #(
20085     *)
20086       # `set' quotes correctly as required by POSIX, so do not add quotes.
20087       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20088       ;;
20089     esac |
20090     sort
20091 ) |
20092   sed '
20093      /^ac_cv_env_/b end
20094      t clear
20095      :clear
20096      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20097      t end
20098      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20099      :end' >>confcache
20100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20101   if test -w "$cache_file"; then
20102     test "x$cache_file" != "x/dev/null" &&
20103       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20104 echo "$as_me: updating cache $cache_file" >&6;}
20105     cat confcache >$cache_file
20106   else
20107     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20108 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20109   fi
20110 fi
20111 rm -f confcache
20112
20113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20114 # Let make expand exec_prefix.
20115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20116
20117 DEFS=-DHAVE_CONFIG_H
20118
20119 ac_libobjs=
20120 ac_ltlibobjs=
20121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20122   # 1. Remove the extension, and $U if already installed.
20123   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20124   ac_i=`echo "$ac_i" | sed "$ac_script"`
20125   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20126   #    will be set to the directory where LIBOBJS objects are built.
20127   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20128   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20129 done
20130 LIBOBJS=$ac_libobjs
20131
20132 LTLIBOBJS=$ac_ltlibobjs
20133
20134
20135 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20136   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20137 Usually this means the macro was only invoked conditionally." >&5
20138 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20139 Usually this means the macro was only invoked conditionally." >&2;}
20140    { (exit 1); exit 1; }; }
20141 fi
20142 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20143   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20144 Usually this means the macro was only invoked conditionally." >&5
20145 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20146 Usually this means the macro was only invoked conditionally." >&2;}
20147    { (exit 1); exit 1; }; }
20148 fi
20149
20150 : ${CONFIG_STATUS=./config.status}
20151 ac_clean_files_save=$ac_clean_files
20152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20153 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20154 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20155 cat >$CONFIG_STATUS <<_ACEOF
20156 #! $SHELL
20157 # Generated by $as_me.
20158 # Run this file to recreate the current configuration.
20159 # Compiler output produced by configure, useful for debugging
20160 # configure, is in config.log if it exists.
20161
20162 debug=false
20163 ac_cs_recheck=false
20164 ac_cs_silent=false
20165 SHELL=\${CONFIG_SHELL-$SHELL}
20166 _ACEOF
20167
20168 cat >>$CONFIG_STATUS <<\_ACEOF
20169 ## --------------------- ##
20170 ## M4sh Initialization.  ##
20171 ## --------------------- ##
20172
20173 # Be Bourne compatible
20174 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20175   emulate sh
20176   NULLCMD=:
20177   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20178   # is contrary to our usage.  Disable this feature.
20179   alias -g '${1+"$@"}'='"$@"'
20180   setopt NO_GLOB_SUBST
20181 else
20182   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20183 fi
20184 BIN_SH=xpg4; export BIN_SH # for Tru64
20185 DUALCASE=1; export DUALCASE # for MKS sh
20186
20187
20188 # PATH needs CR
20189 # Avoid depending upon Character Ranges.
20190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20193 as_cr_digits='0123456789'
20194 as_cr_alnum=$as_cr_Letters$as_cr_digits
20195
20196 # The user is always right.
20197 if test "${PATH_SEPARATOR+set}" != set; then
20198   echo "#! /bin/sh" >conf$$.sh
20199   echo  "exit 0"   >>conf$$.sh
20200   chmod +x conf$$.sh
20201   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20202     PATH_SEPARATOR=';'
20203   else
20204     PATH_SEPARATOR=:
20205   fi
20206   rm -f conf$$.sh
20207 fi
20208
20209 # Support unset when possible.
20210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20211   as_unset=unset
20212 else
20213   as_unset=false
20214 fi
20215
20216
20217 # IFS
20218 # We need space, tab and new line, in precisely that order.  Quoting is
20219 # there to prevent editors from complaining about space-tab.
20220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20221 # splitting by setting IFS to empty value.)
20222 as_nl='
20223 '
20224 IFS=" ""        $as_nl"
20225
20226 # Find who we are.  Look in the path if we contain no directory separator.
20227 case $0 in
20228   *[\\/]* ) as_myself=$0 ;;
20229   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20230 for as_dir in $PATH
20231 do
20232   IFS=$as_save_IFS
20233   test -z "$as_dir" && as_dir=.
20234   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20235 done
20236 IFS=$as_save_IFS
20237
20238      ;;
20239 esac
20240 # We did not find ourselves, most probably we were run as `sh COMMAND'
20241 # in which case we are not to be found in the path.
20242 if test "x$as_myself" = x; then
20243   as_myself=$0
20244 fi
20245 if test ! -f "$as_myself"; then
20246   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20247   { (exit 1); exit 1; }
20248 fi
20249
20250 # Work around bugs in pre-3.0 UWIN ksh.
20251 for as_var in ENV MAIL MAILPATH
20252 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20253 done
20254 PS1='$ '
20255 PS2='> '
20256 PS4='+ '
20257
20258 # NLS nuisances.
20259 for as_var in \
20260   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20261   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20262   LC_TELEPHONE LC_TIME
20263 do
20264   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20265     eval $as_var=C; export $as_var
20266   else
20267     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20268   fi
20269 done
20270
20271 # Required to use basename.
20272 if expr a : '\(a\)' >/dev/null 2>&1 &&
20273    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20274   as_expr=expr
20275 else
20276   as_expr=false
20277 fi
20278
20279 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20280   as_basename=basename
20281 else
20282   as_basename=false
20283 fi
20284
20285
20286 # Name of the executable.
20287 as_me=`$as_basename -- "$0" ||
20288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20289          X"$0" : 'X\(//\)$' \| \
20290          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20291 echo X/"$0" |
20292     sed '/^.*\/\([^/][^/]*\)\/*$/{
20293             s//\1/
20294             q
20295           }
20296           /^X\/\(\/\/\)$/{
20297             s//\1/
20298             q
20299           }
20300           /^X\/\(\/\).*/{
20301             s//\1/
20302             q
20303           }
20304           s/.*/./; q'`
20305
20306 # CDPATH.
20307 $as_unset CDPATH
20308
20309
20310
20311   as_lineno_1=$LINENO
20312   as_lineno_2=$LINENO
20313   test "x$as_lineno_1" != "x$as_lineno_2" &&
20314   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20315
20316   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20317   # uniformly replaced by the line number.  The first 'sed' inserts a
20318   # line-number line after each line using $LINENO; the second 'sed'
20319   # does the real work.  The second script uses 'N' to pair each
20320   # line-number line with the line containing $LINENO, and appends
20321   # trailing '-' during substitution so that $LINENO is not a special
20322   # case at line end.
20323   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20324   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20325   # E. McMahon (1931-1989) for sed's syntax.  :-)
20326   sed -n '
20327     p
20328     /[$]LINENO/=
20329   ' <$as_myself |
20330     sed '
20331       s/[$]LINENO.*/&-/
20332       t lineno
20333       b
20334       :lineno
20335       N
20336       :loop
20337       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20338       t loop
20339       s/-\n.*//
20340     ' >$as_me.lineno &&
20341   chmod +x "$as_me.lineno" ||
20342     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20343    { (exit 1); exit 1; }; }
20344
20345   # Don't try to exec as it changes $[0], causing all sort of problems
20346   # (the dirname of $[0] is not the place where we might find the
20347   # original and so on.  Autoconf is especially sensitive to this).
20348   . "./$as_me.lineno"
20349   # Exit status is that of the last command.
20350   exit
20351 }
20352
20353
20354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20355   as_dirname=dirname
20356 else
20357   as_dirname=false
20358 fi
20359
20360 ECHO_C= ECHO_N= ECHO_T=
20361 case `echo -n x` in
20362 -n*)
20363   case `echo 'x\c'` in
20364   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20365   *)   ECHO_C='\c';;
20366   esac;;
20367 *)
20368   ECHO_N='-n';;
20369 esac
20370
20371 if expr a : '\(a\)' >/dev/null 2>&1 &&
20372    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20373   as_expr=expr
20374 else
20375   as_expr=false
20376 fi
20377
20378 rm -f conf$$ conf$$.exe conf$$.file
20379 if test -d conf$$.dir; then
20380   rm -f conf$$.dir/conf$$.file
20381 else
20382   rm -f conf$$.dir
20383   mkdir conf$$.dir
20384 fi
20385 echo >conf$$.file
20386 if ln -s conf$$.file conf$$ 2>/dev/null; then
20387   as_ln_s='ln -s'
20388   # ... but there are two gotchas:
20389   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391   # In both cases, we have to default to `cp -p'.
20392   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20393     as_ln_s='cp -p'
20394 elif ln conf$$.file conf$$ 2>/dev/null; then
20395   as_ln_s=ln
20396 else
20397   as_ln_s='cp -p'
20398 fi
20399 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20400 rmdir conf$$.dir 2>/dev/null
20401
20402 if mkdir -p . 2>/dev/null; then
20403   as_mkdir_p=:
20404 else
20405   test -d ./-p && rmdir ./-p
20406   as_mkdir_p=false
20407 fi
20408
20409 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20410 # systems may use methods other than mode bits to determine executability.
20411 cat >conf$$.file <<_ASEOF
20412 #! /bin/sh
20413 exit 0
20414 _ASEOF
20415 chmod +x conf$$.file
20416 if test -x conf$$.file >/dev/null 2>&1; then
20417   as_executable_p="test -x"
20418 else
20419   as_executable_p=:
20420 fi
20421 rm -f conf$$.file
20422
20423 # Sed expression to map a string onto a valid CPP name.
20424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20425
20426 # Sed expression to map a string onto a valid variable name.
20427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20428
20429
20430 exec 6>&1
20431
20432 # Save the log message, to keep $[0] and so on meaningful, and to
20433 # report actual input values of CONFIG_FILES etc. instead of their
20434 # values after options handling.
20435 ac_log="
20436 This file was extended by llvm $as_me 2.7svn, which was
20437 generated by GNU Autoconf 2.60.  Invocation command line was
20438
20439   CONFIG_FILES    = $CONFIG_FILES
20440   CONFIG_HEADERS  = $CONFIG_HEADERS
20441   CONFIG_LINKS    = $CONFIG_LINKS
20442   CONFIG_COMMANDS = $CONFIG_COMMANDS
20443   $ $0 $@
20444
20445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20446 "
20447
20448 _ACEOF
20449
20450 cat >>$CONFIG_STATUS <<_ACEOF
20451 # Files that config.status was made for.
20452 config_files="$ac_config_files"
20453 config_headers="$ac_config_headers"
20454 config_commands="$ac_config_commands"
20455
20456 _ACEOF
20457
20458 cat >>$CONFIG_STATUS <<\_ACEOF
20459 ac_cs_usage="\
20460 \`$as_me' instantiates files from templates according to the
20461 current configuration.
20462
20463 Usage: $0 [OPTIONS] [FILE]...
20464
20465   -h, --help       print this help, then exit
20466   -V, --version    print version number, then exit
20467   -q, --quiet      do not print progress messages
20468   -d, --debug      don't remove temporary files
20469       --recheck    update $as_me by reconfiguring in the same conditions
20470   --file=FILE[:TEMPLATE]
20471                    instantiate the configuration file FILE
20472   --header=FILE[:TEMPLATE]
20473                    instantiate the configuration header FILE
20474
20475 Configuration files:
20476 $config_files
20477
20478 Configuration headers:
20479 $config_headers
20480
20481 Configuration commands:
20482 $config_commands
20483
20484 Report bugs to <bug-autoconf@gnu.org>."
20485
20486 _ACEOF
20487 cat >>$CONFIG_STATUS <<_ACEOF
20488 ac_cs_version="\\
20489 llvm config.status 2.7svn
20490 configured by $0, generated by GNU Autoconf 2.60,
20491   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20492
20493 Copyright (C) 2006 Free Software Foundation, Inc.
20494 This config.status script is free software; the Free Software Foundation
20495 gives unlimited permission to copy, distribute and modify it."
20496
20497 ac_pwd='$ac_pwd'
20498 srcdir='$srcdir'
20499 INSTALL='$INSTALL'
20500 _ACEOF
20501
20502 cat >>$CONFIG_STATUS <<\_ACEOF
20503 # If no file are specified by the user, then we need to provide default
20504 # value.  By we need to know if files were specified by the user.
20505 ac_need_defaults=:
20506 while test $# != 0
20507 do
20508   case $1 in
20509   --*=*)
20510     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20511     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20512     ac_shift=:
20513     ;;
20514   *)
20515     ac_option=$1
20516     ac_optarg=$2
20517     ac_shift=shift
20518     ;;
20519   esac
20520
20521   case $ac_option in
20522   # Handling of the options.
20523   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20524     ac_cs_recheck=: ;;
20525   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20526     echo "$ac_cs_version"; exit ;;
20527   --debug | --debu | --deb | --de | --d | -d )
20528     debug=: ;;
20529   --file | --fil | --fi | --f )
20530     $ac_shift
20531     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20532     ac_need_defaults=false;;
20533   --header | --heade | --head | --hea )
20534     $ac_shift
20535     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20536     ac_need_defaults=false;;
20537   --he | --h)
20538     # Conflict between --help and --header
20539     { echo "$as_me: error: ambiguous option: $1
20540 Try \`$0 --help' for more information." >&2
20541    { (exit 1); exit 1; }; };;
20542   --help | --hel | -h )
20543     echo "$ac_cs_usage"; exit ;;
20544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20546     ac_cs_silent=: ;;
20547
20548   # This is an error.
20549   -*) { echo "$as_me: error: unrecognized option: $1
20550 Try \`$0 --help' for more information." >&2
20551    { (exit 1); exit 1; }; } ;;
20552
20553   *) ac_config_targets="$ac_config_targets $1"
20554      ac_need_defaults=false ;;
20555
20556   esac
20557   shift
20558 done
20559
20560 ac_configure_extra_args=
20561
20562 if $ac_cs_silent; then
20563   exec 6>/dev/null
20564   ac_configure_extra_args="$ac_configure_extra_args --silent"
20565 fi
20566
20567 _ACEOF
20568 cat >>$CONFIG_STATUS <<_ACEOF
20569 if \$ac_cs_recheck; then
20570   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20571   CONFIG_SHELL=$SHELL
20572   export CONFIG_SHELL
20573   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20574 fi
20575
20576 _ACEOF
20577 cat >>$CONFIG_STATUS <<\_ACEOF
20578 exec 5>>config.log
20579 {
20580   echo
20581   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20582 ## Running $as_me. ##
20583 _ASBOX
20584   echo "$ac_log"
20585 } >&5
20586
20587 _ACEOF
20588 cat >>$CONFIG_STATUS <<_ACEOF
20589 #
20590 # INIT-COMMANDS
20591 #
20592 llvm_src="${srcdir}"
20593
20594 _ACEOF
20595
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20597
20598 # Handling of arguments.
20599 for ac_config_target in $ac_config_targets
20600 do
20601   case $ac_config_target in
20602     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20603     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20604     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20605     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20606     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20607     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20608     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20609     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20610     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20611     "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20612     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20613     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20614     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20615     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20616     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20617     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20618     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20619     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20620     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20621     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20622     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20623     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20624     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20625     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20626     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20627
20628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20630    { (exit 1); exit 1; }; };;
20631   esac
20632 done
20633
20634
20635 # If the user did not use the arguments to specify the items to instantiate,
20636 # then the envvar interface is used.  Set only those that are not.
20637 # We use the long form for the default assignment because of an extremely
20638 # bizarre bug on SunOS 4.1.3.
20639 if $ac_need_defaults; then
20640   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20641   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20642   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20643 fi
20644
20645 # Have a temporary directory for convenience.  Make it in the build tree
20646 # simply because there is no reason against having it here, and in addition,
20647 # creating and moving files from /tmp can sometimes cause problems.
20648 # Hook for its removal unless debugging.
20649 # Note that there is a small window in which the directory will not be cleaned:
20650 # after its creation but before its name has been assigned to `$tmp'.
20651 $debug ||
20652 {
20653   tmp=
20654   trap 'exit_status=$?
20655   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20656 ' 0
20657   trap '{ (exit 1); exit 1; }' 1 2 13 15
20658 }
20659 # Create a (secure) tmp directory for tmp files.
20660
20661 {
20662   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20663   test -n "$tmp" && test -d "$tmp"
20664 }  ||
20665 {
20666   tmp=./conf$$-$RANDOM
20667   (umask 077 && mkdir "$tmp")
20668 } ||
20669 {
20670    echo "$me: cannot create a temporary directory in ." >&2
20671    { (exit 1); exit 1; }
20672 }
20673
20674 #
20675 # Set up the sed scripts for CONFIG_FILES section.
20676 #
20677
20678 # No need to generate the scripts if there are no CONFIG_FILES.
20679 # This happens for instance when ./config.status config.h
20680 if test -n "$CONFIG_FILES"; then
20681
20682 _ACEOF
20683
20684
20685
20686 ac_delim='%!_!# '
20687 for ac_last_try in false false false false false :; do
20688   cat >conf$$subs.sed <<_ACEOF
20689 SHELL!$SHELL$ac_delim
20690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20696 exec_prefix!$exec_prefix$ac_delim
20697 prefix!$prefix$ac_delim
20698 program_transform_name!$program_transform_name$ac_delim
20699 bindir!$bindir$ac_delim
20700 sbindir!$sbindir$ac_delim
20701 libexecdir!$libexecdir$ac_delim
20702 datarootdir!$datarootdir$ac_delim
20703 datadir!$datadir$ac_delim
20704 sysconfdir!$sysconfdir$ac_delim
20705 sharedstatedir!$sharedstatedir$ac_delim
20706 localstatedir!$localstatedir$ac_delim
20707 includedir!$includedir$ac_delim
20708 oldincludedir!$oldincludedir$ac_delim
20709 docdir!$docdir$ac_delim
20710 infodir!$infodir$ac_delim
20711 htmldir!$htmldir$ac_delim
20712 dvidir!$dvidir$ac_delim
20713 pdfdir!$pdfdir$ac_delim
20714 psdir!$psdir$ac_delim
20715 libdir!$libdir$ac_delim
20716 localedir!$localedir$ac_delim
20717 mandir!$mandir$ac_delim
20718 DEFS!$DEFS$ac_delim
20719 ECHO_C!$ECHO_C$ac_delim
20720 ECHO_N!$ECHO_N$ac_delim
20721 ECHO_T!$ECHO_T$ac_delim
20722 LIBS!$LIBS$ac_delim
20723 build_alias!$build_alias$ac_delim
20724 host_alias!$host_alias$ac_delim
20725 target_alias!$target_alias$ac_delim
20726 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20727 subdirs!$subdirs$ac_delim
20728 build!$build$ac_delim
20729 build_cpu!$build_cpu$ac_delim
20730 build_vendor!$build_vendor$ac_delim
20731 build_os!$build_os$ac_delim
20732 host!$host$ac_delim
20733 host_cpu!$host_cpu$ac_delim
20734 host_vendor!$host_vendor$ac_delim
20735 host_os!$host_os$ac_delim
20736 target!$target$ac_delim
20737 target_cpu!$target_cpu$ac_delim
20738 target_vendor!$target_vendor$ac_delim
20739 target_os!$target_os$ac_delim
20740 OS!$OS$ac_delim
20741 HOST_OS!$HOST_OS$ac_delim
20742 TARGET_OS!$TARGET_OS$ac_delim
20743 LINKALL!$LINKALL$ac_delim
20744 NOLINKALL!$NOLINKALL$ac_delim
20745 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20746 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20747 ARCH!$ARCH$ac_delim
20748 ENDIAN!$ENDIAN$ac_delim
20749 CC!$CC$ac_delim
20750 CFLAGS!$CFLAGS$ac_delim
20751 LDFLAGS!$LDFLAGS$ac_delim
20752 CPPFLAGS!$CPPFLAGS$ac_delim
20753 ac_ct_CC!$ac_ct_CC$ac_delim
20754 EXEEXT!$EXEEXT$ac_delim
20755 OBJEXT!$OBJEXT$ac_delim
20756 CPP!$CPP$ac_delim
20757 GREP!$GREP$ac_delim
20758 EGREP!$EGREP$ac_delim
20759 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20760 BUILD_CC!$BUILD_CC$ac_delim
20761 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20762 BUILD_CXX!$BUILD_CXX$ac_delim
20763 CVSBUILD!$CVSBUILD$ac_delim
20764 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20765 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20766 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20767 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20768 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20769 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20770 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20771 JIT!$JIT$ac_delim
20772 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20773 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20774 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20775 ENABLE_PIC!$ENABLE_PIC$ac_delim
20776 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20777 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20778 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20779 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20780 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20781 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20782 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20783 CLANGPATH!$CLANGPATH$ac_delim
20784 CLANGXXPATH!$CLANGXXPATH$ac_delim
20785 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20786 _ACEOF
20787
20788   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20789     break
20790   elif $ac_last_try; then
20791     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20793    { (exit 1); exit 1; }; }
20794   else
20795     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20796   fi
20797 done
20798
20799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20800 if test -n "$ac_eof"; then
20801   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20802   ac_eof=`expr $ac_eof + 1`
20803 fi
20804
20805 cat >>$CONFIG_STATUS <<_ACEOF
20806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20808 _ACEOF
20809 sed '
20810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20811 s/^/s,@/; s/!/@,|#_!!_#|/
20812 :n
20813 t n
20814 s/'"$ac_delim"'$/,g/; t
20815 s/$/\\/; p
20816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20817 ' >>$CONFIG_STATUS <conf$$subs.sed
20818 rm -f conf$$subs.sed
20819 cat >>$CONFIG_STATUS <<_ACEOF
20820 CEOF$ac_eof
20821 _ACEOF
20822
20823
20824 ac_delim='%!_!# '
20825 for ac_last_try in false false false false false :; do
20826   cat >conf$$subs.sed <<_ACEOF
20827 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20828 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20829 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20830 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20831 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20832 CXX!$CXX$ac_delim
20833 CXXFLAGS!$CXXFLAGS$ac_delim
20834 ac_ct_CXX!$ac_ct_CXX$ac_delim
20835 NM!$NM$ac_delim
20836 ifGNUmake!$ifGNUmake$ac_delim
20837 LN_S!$LN_S$ac_delim
20838 CMP!$CMP$ac_delim
20839 CP!$CP$ac_delim
20840 DATE!$DATE$ac_delim
20841 FIND!$FIND$ac_delim
20842 MKDIR!$MKDIR$ac_delim
20843 MV!$MV$ac_delim
20844 RANLIB!$RANLIB$ac_delim
20845 AR!$AR$ac_delim
20846 RM!$RM$ac_delim
20847 SED!$SED$ac_delim
20848 TAR!$TAR$ac_delim
20849 BINPWD!$BINPWD$ac_delim
20850 GRAPHVIZ!$GRAPHVIZ$ac_delim
20851 DOT!$DOT$ac_delim
20852 FDP!$FDP$ac_delim
20853 NEATO!$NEATO$ac_delim
20854 TWOPI!$TWOPI$ac_delim
20855 CIRCO!$CIRCO$ac_delim
20856 GV!$GV$ac_delim
20857 DOTTY!$DOTTY$ac_delim
20858 PERL!$PERL$ac_delim
20859 HAVE_PERL!$HAVE_PERL$ac_delim
20860 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20861 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20862 INSTALL_DATA!$INSTALL_DATA$ac_delim
20863 BZIP2!$BZIP2$ac_delim
20864 DOXYGEN!$DOXYGEN$ac_delim
20865 GROFF!$GROFF$ac_delim
20866 GZIP!$GZIP$ac_delim
20867 POD2HTML!$POD2HTML$ac_delim
20868 POD2MAN!$POD2MAN$ac_delim
20869 RUNTEST!$RUNTEST$ac_delim
20870 TCLSH!$TCLSH$ac_delim
20871 ZIP!$ZIP$ac_delim
20872 OCAMLC!$OCAMLC$ac_delim
20873 OCAMLOPT!$OCAMLOPT$ac_delim
20874 OCAMLDEP!$OCAMLDEP$ac_delim
20875 OCAMLDOC!$OCAMLDOC$ac_delim
20876 GAS!$GAS$ac_delim
20877 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20878 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20879 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20880 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20881 LIBADD_DL!$LIBADD_DL$ac_delim
20882 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20883 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20884 LLVMGCC!$LLVMGCC$ac_delim
20885 LLVMGXX!$LLVMGXX$ac_delim
20886 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20887 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20888 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20889 USE_UDIS86!$USE_UDIS86$ac_delim
20890 USE_OPROFILE!$USE_OPROFILE$ac_delim
20891 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20892 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20893 MMAP_FILE!$MMAP_FILE$ac_delim
20894 LLVMCC1!$LLVMCC1$ac_delim
20895 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20896 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20897 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20898 SHLIBEXT!$SHLIBEXT$ac_delim
20899 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
20900 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20901 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20902 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20903 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20904 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20905 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20906 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20907 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20908 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20909 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20910 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20911 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20912 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20913 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20914 RPATH!$RPATH$ac_delim
20915 RDYNAMIC!$RDYNAMIC$ac_delim
20916 LIBOBJS!$LIBOBJS$ac_delim
20917 LTLIBOBJS!$LTLIBOBJS$ac_delim
20918 _ACEOF
20919
20920   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
20921     break
20922   elif $ac_last_try; then
20923     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20924 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20925    { (exit 1); exit 1; }; }
20926   else
20927     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20928   fi
20929 done
20930
20931 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20932 if test -n "$ac_eof"; then
20933   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20934   ac_eof=`expr $ac_eof + 1`
20935 fi
20936
20937 cat >>$CONFIG_STATUS <<_ACEOF
20938 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20940 _ACEOF
20941 sed '
20942 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20943 s/^/s,@/; s/!/@,|#_!!_#|/
20944 :n
20945 t n
20946 s/'"$ac_delim"'$/,g/; t
20947 s/$/\\/; p
20948 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20949 ' >>$CONFIG_STATUS <conf$$subs.sed
20950 rm -f conf$$subs.sed
20951 cat >>$CONFIG_STATUS <<_ACEOF
20952 :end
20953 s/|#_!!_#|//g
20954 CEOF$ac_eof
20955 _ACEOF
20956
20957
20958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20960 # trailing colons and then remove the whole line if VPATH becomes empty
20961 # (actually we leave an empty line to preserve line numbers).
20962 if test "x$srcdir" = x.; then
20963   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20964 s/:*\$(srcdir):*/:/
20965 s/:*\${srcdir}:*/:/
20966 s/:*@srcdir@:*/:/
20967 s/^\([^=]*=[     ]*\):*/\1/
20968 s/:*$//
20969 s/^[^=]*=[       ]*$//
20970 }'
20971 fi
20972
20973 cat >>$CONFIG_STATUS <<\_ACEOF
20974 fi # test -n "$CONFIG_FILES"
20975
20976
20977 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20978 do
20979   case $ac_tag in
20980   :[FHLC]) ac_mode=$ac_tag; continue;;
20981   esac
20982   case $ac_mode$ac_tag in
20983   :[FHL]*:*);;
20984   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20985 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20986    { (exit 1); exit 1; }; };;
20987   :[FH]-) ac_tag=-:-;;
20988   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20989   esac
20990   ac_save_IFS=$IFS
20991   IFS=:
20992   set x $ac_tag
20993   IFS=$ac_save_IFS
20994   shift
20995   ac_file=$1
20996   shift
20997
20998   case $ac_mode in
20999   :L) ac_source=$1;;
21000   :[FH])
21001     ac_file_inputs=
21002     for ac_f
21003     do
21004       case $ac_f in
21005       -) ac_f="$tmp/stdin";;
21006       *) # Look for the file first in the build tree, then in the source tree
21007          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21008          # because $ac_f cannot contain `:'.
21009          test -f "$ac_f" ||
21010            case $ac_f in
21011            [\\/$]*) false;;
21012            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21013            esac ||
21014            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21015 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21016    { (exit 1); exit 1; }; };;
21017       esac
21018       ac_file_inputs="$ac_file_inputs $ac_f"
21019     done
21020
21021     # Let's still pretend it is `configure' which instantiates (i.e., don't
21022     # use $as_me), people would be surprised to read:
21023     #    /* config.h.  Generated by config.status.  */
21024     configure_input="Generated from "`IFS=:
21025           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21026     if test x"$ac_file" != x-; then
21027       configure_input="$ac_file.  $configure_input"
21028       { echo "$as_me:$LINENO: creating $ac_file" >&5
21029 echo "$as_me: creating $ac_file" >&6;}
21030     fi
21031
21032     case $ac_tag in
21033     *:-:* | *:-) cat >"$tmp/stdin";;
21034     esac
21035     ;;
21036   esac
21037
21038   ac_dir=`$as_dirname -- "$ac_file" ||
21039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21040          X"$ac_file" : 'X\(//\)[^/]' \| \
21041          X"$ac_file" : 'X\(//\)$' \| \
21042          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21043 echo X"$ac_file" |
21044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21045             s//\1/
21046             q
21047           }
21048           /^X\(\/\/\)[^/].*/{
21049             s//\1/
21050             q
21051           }
21052           /^X\(\/\/\)$/{
21053             s//\1/
21054             q
21055           }
21056           /^X\(\/\).*/{
21057             s//\1/
21058             q
21059           }
21060           s/.*/./; q'`
21061   { as_dir="$ac_dir"
21062   case $as_dir in #(
21063   -*) as_dir=./$as_dir;;
21064   esac
21065   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21066     as_dirs=
21067     while :; do
21068       case $as_dir in #(
21069       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21070       *) as_qdir=$as_dir;;
21071       esac
21072       as_dirs="'$as_qdir' $as_dirs"
21073       as_dir=`$as_dirname -- "$as_dir" ||
21074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21075          X"$as_dir" : 'X\(//\)[^/]' \| \
21076          X"$as_dir" : 'X\(//\)$' \| \
21077          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21078 echo X"$as_dir" |
21079     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21080             s//\1/
21081             q
21082           }
21083           /^X\(\/\/\)[^/].*/{
21084             s//\1/
21085             q
21086           }
21087           /^X\(\/\/\)$/{
21088             s//\1/
21089             q
21090           }
21091           /^X\(\/\).*/{
21092             s//\1/
21093             q
21094           }
21095           s/.*/./; q'`
21096       test -d "$as_dir" && break
21097     done
21098     test -z "$as_dirs" || eval "mkdir $as_dirs"
21099   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21100 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21101    { (exit 1); exit 1; }; }; }
21102   ac_builddir=.
21103
21104 case "$ac_dir" in
21105 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21106 *)
21107   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21108   # A ".." for each directory in $ac_dir_suffix.
21109   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21110   case $ac_top_builddir_sub in
21111   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21112   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21113   esac ;;
21114 esac
21115 ac_abs_top_builddir=$ac_pwd
21116 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21117 # for backward compatibility:
21118 ac_top_builddir=$ac_top_build_prefix
21119
21120 case $srcdir in
21121   .)  # We are building in place.
21122     ac_srcdir=.
21123     ac_top_srcdir=$ac_top_builddir_sub
21124     ac_abs_top_srcdir=$ac_pwd ;;
21125   [\\/]* | ?:[\\/]* )  # Absolute name.
21126     ac_srcdir=$srcdir$ac_dir_suffix;
21127     ac_top_srcdir=$srcdir
21128     ac_abs_top_srcdir=$srcdir ;;
21129   *) # Relative name.
21130     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21131     ac_top_srcdir=$ac_top_build_prefix$srcdir
21132     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21133 esac
21134 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21135
21136
21137   case $ac_mode in
21138   :F)
21139   #
21140   # CONFIG_FILE
21141   #
21142
21143   case $INSTALL in
21144   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21145   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21146   esac
21147 _ACEOF
21148
21149 cat >>$CONFIG_STATUS <<\_ACEOF
21150 # If the template does not know about datarootdir, expand it.
21151 # FIXME: This hack should be removed a few years after 2.60.
21152 ac_datarootdir_hack=; ac_datarootdir_seen=
21153
21154 case `sed -n '/datarootdir/ {
21155   p
21156   q
21157 }
21158 /@datadir@/p
21159 /@docdir@/p
21160 /@infodir@/p
21161 /@localedir@/p
21162 /@mandir@/p
21163 ' $ac_file_inputs` in
21164 *datarootdir*) ac_datarootdir_seen=yes;;
21165 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21166   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21167 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<_ACEOF
21170   ac_datarootdir_hack='
21171   s&@datadir@&$datadir&g
21172   s&@docdir@&$docdir&g
21173   s&@infodir@&$infodir&g
21174   s&@localedir@&$localedir&g
21175   s&@mandir@&$mandir&g
21176     s&\\\${datarootdir}&$datarootdir&g' ;;
21177 esac
21178 _ACEOF
21179
21180 # Neutralize VPATH when `$srcdir' = `.'.
21181 # Shell code in configure.ac might set extrasub.
21182 # FIXME: do we really want to maintain this feature?
21183 cat >>$CONFIG_STATUS <<_ACEOF
21184   sed "$ac_vpsub
21185 $extrasub
21186 _ACEOF
21187 cat >>$CONFIG_STATUS <<\_ACEOF
21188 :t
21189 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21190 s&@configure_input@&$configure_input&;t t
21191 s&@top_builddir@&$ac_top_builddir_sub&;t t
21192 s&@srcdir@&$ac_srcdir&;t t
21193 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21194 s&@top_srcdir@&$ac_top_srcdir&;t t
21195 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21196 s&@builddir@&$ac_builddir&;t t
21197 s&@abs_builddir@&$ac_abs_builddir&;t t
21198 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21199 s&@INSTALL@&$ac_INSTALL&;t t
21200 $ac_datarootdir_hack
21201 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21202
21203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21204   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21205   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21206   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21207 which seems to be undefined.  Please make sure it is defined." >&5
21208 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21209 which seems to be undefined.  Please make sure it is defined." >&2;}
21210
21211   rm -f "$tmp/stdin"
21212   case $ac_file in
21213   -) cat "$tmp/out"; rm -f "$tmp/out";;
21214   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21215   esac
21216  ;;
21217   :H)
21218   #
21219   # CONFIG_HEADER
21220   #
21221 _ACEOF
21222
21223 # Transform confdefs.h into a sed script `conftest.defines', that
21224 # substitutes the proper values into config.h.in to produce config.h.
21225 rm -f conftest.defines conftest.tail
21226 # First, append a space to every undef/define line, to ease matching.
21227 echo 's/$/ /' >conftest.defines
21228 # Then, protect against being on the right side of a sed subst, or in
21229 # an unquoted here document, in config.status.  If some macros were
21230 # called several times there might be several #defines for the same
21231 # symbol, which is useless.  But do not sort them, since the last
21232 # AC_DEFINE must be honored.
21233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21234 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21235 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21236 # PARAMS is the parameter list in the macro definition--in most cases, it's
21237 # just an empty string.
21238 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
21239 ac_dB='\\)[      (].*,\\1define\\2'
21240 ac_dC=' '
21241 ac_dD=' ,'
21242
21243 uniq confdefs.h |
21244   sed -n '
21245         t rset
21246         :rset
21247         s/^[     ]*#[    ]*define[       ][      ]*//
21248         t ok
21249         d
21250         :ok
21251         s/[\\&,]/\\&/g
21252         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21253         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21254   ' >>conftest.defines
21255
21256 # Remove the space that was appended to ease matching.
21257 # Then replace #undef with comments.  This is necessary, for
21258 # example, in the case of _POSIX_SOURCE, which is predefined and required
21259 # on some systems where configure will not decide to define it.
21260 # (The regexp can be short, since the line contains either #define or #undef.)
21261 echo 's/ $//
21262 s,^[     #]*u.*,/* & */,' >>conftest.defines
21263
21264 # Break up conftest.defines:
21265 ac_max_sed_lines=50
21266
21267 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21268 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21269 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21270 # et cetera.
21271 ac_in='$ac_file_inputs'
21272 ac_out='"$tmp/out1"'
21273 ac_nxt='"$tmp/out2"'
21274
21275 while :
21276 do
21277   # Write a here document:
21278     cat >>$CONFIG_STATUS <<_ACEOF
21279     # First, check the format of the line:
21280     cat >"\$tmp/defines.sed" <<\\CEOF
21281 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
21282 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
21283 b
21284 :def
21285 _ACEOF
21286   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21287   echo 'CEOF
21288     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21289   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21290   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21291   grep . conftest.tail >/dev/null || break
21292   rm -f conftest.defines
21293   mv conftest.tail conftest.defines
21294 done
21295 rm -f conftest.defines conftest.tail
21296
21297 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21298 cat >>$CONFIG_STATUS <<\_ACEOF
21299   if test x"$ac_file" != x-; then
21300     echo "/* $configure_input  */" >"$tmp/config.h"
21301     cat "$ac_result" >>"$tmp/config.h"
21302     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21303       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21304 echo "$as_me: $ac_file is unchanged" >&6;}
21305     else
21306       rm -f $ac_file
21307       mv "$tmp/config.h" $ac_file
21308     fi
21309   else
21310     echo "/* $configure_input  */"
21311     cat "$ac_result"
21312   fi
21313   rm -f "$tmp/out12"
21314  ;;
21315
21316   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21317 echo "$as_me: executing $ac_file commands" >&6;}
21318  ;;
21319   esac
21320
21321
21322   case $ac_file$ac_mode in
21323     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21324    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21325     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21326    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21327     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21328    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21329     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21330    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21331     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21332    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21333     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21334    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21335     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21336    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21337     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21338    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21339     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21340    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21341     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21342    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21343     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21344    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21345     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21346    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21347     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21348    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21349
21350   esac
21351 done # for ac_tag
21352
21353
21354 { (exit 0); exit 0; }
21355 _ACEOF
21356 chmod +x $CONFIG_STATUS
21357 ac_clean_files=$ac_clean_files_save
21358
21359
21360 # configure is writing to config.log, and then calls config.status.
21361 # config.status does its own redirection, appending to config.log.
21362 # Unfortunately, on DOS this fails, as config.log is still kept open
21363 # by configure, so config.status won't be able to write to it; its
21364 # output is simply discarded.  So we exec the FD to /dev/null,
21365 # effectively closing config.log, so it can be properly (re)opened and
21366 # appended to by config.status.  When coming back to configure, we
21367 # need to make the FD available again.
21368 if test "$no_create" != yes; then
21369   ac_cs_success=:
21370   ac_config_status_args=
21371   test "$silent" = yes &&
21372     ac_config_status_args="$ac_config_status_args --quiet"
21373   exec 5>/dev/null
21374   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21375   exec 5>>config.log
21376   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21377   # would make configure fail if this is the last instruction.
21378   $ac_cs_success || { (exit 1); exit 1; }
21379 fi
21380
21381 #
21382 # CONFIG_SUBDIRS section.
21383 #
21384 if test "$no_recursion" != yes; then
21385
21386   # Remove --cache-file and --srcdir arguments so they do not pile up.
21387   ac_sub_configure_args=
21388   ac_prev=
21389   eval "set x $ac_configure_args"
21390   shift
21391   for ac_arg
21392   do
21393     if test -n "$ac_prev"; then
21394       ac_prev=
21395       continue
21396     fi
21397     case $ac_arg in
21398     -cache-file | --cache-file | --cache-fil | --cache-fi \
21399     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21400       ac_prev=cache_file ;;
21401     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21402     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21403     | --c=*)
21404       ;;
21405     --config-cache | -C)
21406       ;;
21407     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21408       ac_prev=srcdir ;;
21409     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21410       ;;
21411     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21412       ac_prev=prefix ;;
21413     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21414       ;;
21415     *)
21416       case $ac_arg in
21417       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21418       esac
21419       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21420     esac
21421   done
21422
21423   # Always prepend --prefix to ensure using the same prefix
21424   # in subdir configurations.
21425   ac_arg="--prefix=$prefix"
21426   case $ac_arg in
21427   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21428   esac
21429   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21430
21431   ac_popdir=`pwd`
21432   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21433
21434     # Do not complain, so a configure script can configure whichever
21435     # parts of a large source tree are present.
21436     test -d "$srcdir/$ac_dir" || continue
21437
21438     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21439     echo "$as_me:$LINENO: $ac_msg" >&5
21440     echo "$ac_msg" >&6
21441     { as_dir="$ac_dir"
21442   case $as_dir in #(
21443   -*) as_dir=./$as_dir;;
21444   esac
21445   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21446     as_dirs=
21447     while :; do
21448       case $as_dir in #(
21449       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21450       *) as_qdir=$as_dir;;
21451       esac
21452       as_dirs="'$as_qdir' $as_dirs"
21453       as_dir=`$as_dirname -- "$as_dir" ||
21454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21455          X"$as_dir" : 'X\(//\)[^/]' \| \
21456          X"$as_dir" : 'X\(//\)$' \| \
21457          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21458 echo X"$as_dir" |
21459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21460             s//\1/
21461             q
21462           }
21463           /^X\(\/\/\)[^/].*/{
21464             s//\1/
21465             q
21466           }
21467           /^X\(\/\/\)$/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\).*/{
21472             s//\1/
21473             q
21474           }
21475           s/.*/./; q'`
21476       test -d "$as_dir" && break
21477     done
21478     test -z "$as_dirs" || eval "mkdir $as_dirs"
21479   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21481    { (exit 1); exit 1; }; }; }
21482     ac_builddir=.
21483
21484 case "$ac_dir" in
21485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21486 *)
21487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21488   # A ".." for each directory in $ac_dir_suffix.
21489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21490   case $ac_top_builddir_sub in
21491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21493   esac ;;
21494 esac
21495 ac_abs_top_builddir=$ac_pwd
21496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21497 # for backward compatibility:
21498 ac_top_builddir=$ac_top_build_prefix
21499
21500 case $srcdir in
21501   .)  # We are building in place.
21502     ac_srcdir=.
21503     ac_top_srcdir=$ac_top_builddir_sub
21504     ac_abs_top_srcdir=$ac_pwd ;;
21505   [\\/]* | ?:[\\/]* )  # Absolute name.
21506     ac_srcdir=$srcdir$ac_dir_suffix;
21507     ac_top_srcdir=$srcdir
21508     ac_abs_top_srcdir=$srcdir ;;
21509   *) # Relative name.
21510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21511     ac_top_srcdir=$ac_top_build_prefix$srcdir
21512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21513 esac
21514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21515
21516
21517     cd "$ac_dir"
21518
21519     # Check for guested configure; otherwise get Cygnus style configure.
21520     if test -f "$ac_srcdir/configure.gnu"; then
21521       ac_sub_configure=$ac_srcdir/configure.gnu
21522     elif test -f "$ac_srcdir/configure"; then
21523       ac_sub_configure=$ac_srcdir/configure
21524     elif test -f "$ac_srcdir/configure.in"; then
21525       # This should be Cygnus configure.
21526       ac_sub_configure=$ac_aux_dir/configure
21527     else
21528       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21530       ac_sub_configure=
21531     fi
21532
21533     # The recursion is here.
21534     if test -n "$ac_sub_configure"; then
21535       # Make the cache file name correct relative to the subdirectory.
21536       case $cache_file in
21537       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21538       *) # Relative name.
21539         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21540       esac
21541
21542       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21543 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21544       # The eval makes quoting arguments work.
21545       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21546            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21547         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21549    { (exit 1); exit 1; }; }
21550     fi
21551
21552     cd "$ac_popdir"
21553   done
21554 fi
21555