Rename the AsmPrinter directory to InstPrinter for those targets that have
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='llvm'
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.9svn'
565 PACKAGE_STRING='llvm 2.9svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_COPYRIGHT
643 subdirs
644 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 CXX
707 CXXFLAGS
708 ac_ct_CXX
709 NM
710 ifGNUmake
711 LN_S
712 CMP
713 CP
714 DATE
715 FIND
716 MKDIR
717 MV
718 RANLIB
719 AR
720 RM
721 SED
722 TAR
723 BINPWD
724 GRAPHVIZ
725 DOT
726 FDP
727 NEATO
728 TWOPI
729 CIRCO
730 GV
731 DOTTY
732 XDOT_PY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 CAT
740 DOXYGEN
741 GROFF
742 GZIP
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 LLVMGCCCOMMAND
761 LLVMGXXCOMMAND
762 LLVMGCC
763 LLVMGXX
764 LLVMCC_OPTION
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 LLVMCC1
773 LLVMCC1PLUS
774 LLVMGCCDIR
775 LLVMGCC_LANGS
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CPP
805 CXX
806 CXXFLAGS
807 CCC'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-timestamps     Enable embedding timestamp information in build
1414                           (default is YES)
1415   --enable-targets        Build specific host targets: all or
1416                           target1,target2,... Valid targets are: host, x86,
1417                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418                           pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419                           and cpp (default=all)
1420   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1421                           %a (default is YES)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1431                           searches PATH)
1432   --with-llvmgcc          Specify location of llvm-gcc driver (default
1433                           searches PATH)
1434   --with-llvmgxx          Specify location of llvm-g++ driver (default
1435                           searches PATH)
1436   --with-clang            Specify location of clang compiler (default is
1437                           --with-built-clang)
1438   --with-built-clang      Use the compiled Clang as the LLVM compiler
1439                           (default=check)
1440   --with-optimize-option  Select the compiler options to use for optimized
1441                           builds
1442   --with-extra-options    Specify additional options to compile LLVM with
1443   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                           is stdlib)
1445   --with-c-include-dirs   Colon separated list of directories clang will
1446                           search for headers
1447   --with-cxx-include-root Directory with the libstdc++ headers.
1448   --with-cxx-include-arch Architecture of the libstdc++ headers.
1449   --with-cxx-include-32bit-dir
1450                           32 bit multilib dir.
1451   --with-cxx-include-64bit-dir
1452                           64 bit multilib directory.
1453   --with-binutils-include Specify path to binutils/include/ containing
1454                           plugin-api.h file for gold plugin.
1455   --with-tclinclude       directory where tcl headers are
1456   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1457                           clang, or none; default=check)
1458   --with-udis86=<path>    Use udis86 external x86 disassembler library
1459   --with-oprofile=<prefix>
1460                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CPP         C preprocessor
1470   CXX         C++ compiler command
1471   CXXFLAGS    C++ compiler flags
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" || continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 llvm configure 2.9svn
1538 generated by GNU Autoconf 2.60
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547   exit
1548 fi
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1552
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556   $ $0 $@
1557
1558 _ACEOF
1559 exec 5>>config.log
1560 {
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1565
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583 _ASUNAME
1584
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1593
1594 } >&5
1595
1596 cat >&5 <<_ACEOF
1597
1598
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1602
1603 _ACEOF
1604
1605
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1616 do
1617   for ac_arg
1618   do
1619     case $ac_arg in
1620     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622     | -silent | --silent | --silen | --sile | --sil)
1623       continue ;;
1624     *\'*)
1625       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     esac
1627     case $ac_pass in
1628     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629     2)
1630       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631       if test $ac_must_keep_next = true; then
1632         ac_must_keep_next=false # Got value, back to normal.
1633       else
1634         case $ac_arg in
1635           *=* | --config-cache | -C | -disable-* | --disable-* \
1636           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638           | -with-* | --with-* | -without-* | --without-* | --x)
1639             case "$ac_configure_args0 " in
1640               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641             esac
1642             ;;
1643           -* ) ac_must_keep_next=true ;;
1644         esac
1645       fi
1646       ac_configure_args="$ac_configure_args '$ac_arg'"
1647       ;;
1648     esac
1649   done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log.  We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660   # Save into config.log some information that might help in debugging.
1661   {
1662     echo
1663
1664     cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669     echo
1670     # The following way of writing the cache mishandles newlines in values,
1671 (
1672   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673     eval ac_val=\$$ac_var
1674     case $ac_val in #(
1675     *${as_nl}*)
1676       case $ac_var in #(
1677       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679       esac
1680       case $ac_var in #(
1681       _ | IFS | as_nl) ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       echo "$as_me: caught signal $ac_signal"
1747     echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791   set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795   set x "$ac_default_prefix/share/config.site" \
1796         "$ac_default_prefix/etc/config.site"
1797 fi
1798 shift
1799 for ac_site_file
1800 do
1801   if test -r "$ac_site_file"; then
1802     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804     sed 's/^/| /' "$ac_site_file" >&5
1805     . "$ac_site_file"
1806   fi
1807 done
1808
1809 if test -r "$cache_file"; then
1810   # Some versions of bash will fail to source /dev/null (special
1811   # files actually), so we avoid doing that.
1812   if test -f "$cache_file"; then
1813     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815     case $cache_file in
1816       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817       *)                      . "./$cache_file";;
1818     esac
1819   fi
1820 else
1821   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823   >$cache_file
1824 fi
1825
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831   eval ac_new_set=\$ac_env_${ac_var}_set
1832   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833   eval ac_new_val=\$ac_env_${ac_var}_value
1834   case $ac_old_set,$ac_new_set in
1835     set,)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,set)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,);;
1844     *)
1845       if test "x$ac_old_val" != "x$ac_new_val"; then
1846         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849 echo "$as_me:   former value:  $ac_old_val" >&2;}
1850         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851 echo "$as_me:   current value: $ac_new_val" >&2;}
1852         ac_cache_corrupted=:
1853       fi;;
1854   esac
1855   # Pass precious variables to config.status.
1856   if test "$ac_new_set" = set; then
1857     case $ac_new_val in
1858     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     *) ac_arg=$ac_var=$ac_new_val ;;
1860     esac
1861     case " $ac_configure_args " in
1862       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864     esac
1865   fi
1866 done
1867 if $ac_cache_corrupted; then
1868   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1908
1909
1910
1911
1912
1913
1914
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 if test ${srcdir} != "." ; then
1948   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951    { (exit 1); exit 1; }; }
1952   fi
1953 fi
1954
1955
1956
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958   subdirs="$subdirs projects/llvm-gcc"
1959
1960 fi
1961
1962 if test -d ${srcdir}/projects/test-suite ; then
1963   subdirs="$subdirs projects/test-suite"
1964
1965 fi
1966
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968   subdirs="$subdirs projects/llvm-test"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973   subdirs="$subdirs projects/poolalloc"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978   subdirs="$subdirs projects/llvm-poolalloc"
1979
1980 fi
1981
1982 for i in `ls ${srcdir}/projects`
1983 do
1984   if test -d ${srcdir}/projects/${i} ; then
1985     case ${i} in
1986       sample)       subdirs="$subdirs projects/sample"
1987     ;;
1988       privbracket)  subdirs="$subdirs projects/privbracket"
1989  ;;
1990       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991  ;;
1992       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1993 ;;
1994       llvm-java)    subdirs="$subdirs projects/llvm-java"
1995  ;;
1996       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1997    ;;
1998       safecode)     subdirs="$subdirs projects/safecode"
1999  ;;
2000       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2001  ;;
2002       llvm-gcc)       ;;
2003       test-suite)     ;;
2004       llvm-test)      ;;
2005       poolalloc)      ;;
2006       llvm-poolalloc) ;;
2007       *)
2008         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2010         ;;
2011     esac
2012   fi
2013 done
2014
2015
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020    { (exit 1); exit 1; }; }
2021
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033    { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 fi
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060
2061
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test "x$host_alias" = x; then
2068   ac_cv_host=$ac_cv_build
2069 else
2070   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$target_alias" = x; then
2105   ac_cv_target=$ac_cv_host
2106 else
2107   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_target
2125 shift
2126 target_cpu=$1
2127 target_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 target_os=$*
2132 IFS=$ac_save_IFS
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139   test "$program_prefix$program_suffix$program_transform_name" = \
2140     NONENONEs,x,x, &&
2141   program_prefix=${target_alias}-
2142
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   case $host in
2149   *-*-aix*)
2150     llvm_cv_link_all_option="-Wl,--whole-archive"
2151     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152     llvm_cv_os_type="AIX"
2153     llvm_cv_platform_type="Unix" ;;
2154   *-*-irix*)
2155     llvm_cv_link_all_option="-Wl,--whole-archive"
2156     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157     llvm_cv_os_type="IRIX"
2158     llvm_cv_platform_type="Unix" ;;
2159   *-*-cygwin*)
2160     llvm_cv_link_all_option="-Wl,--whole-archive"
2161     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162     llvm_cv_os_type="Cygwin"
2163     llvm_cv_platform_type="Unix" ;;
2164   *-*-darwin*)
2165     llvm_cv_link_all_option="-Wl,-all_load"
2166     llvm_cv_no_link_all_option="-Wl,-noall_load"
2167     llvm_cv_os_type="Darwin"
2168     llvm_cv_platform_type="Unix" ;;
2169   *-*-minix*)
2170     llvm_cv_link_all_option="-Wl,-all_load"
2171     llvm_cv_no_link_all_option="-Wl,-noall_load"
2172     llvm_cv_os_type="Minix"
2173     llvm_cv_platform_type="Unix" ;;
2174   *-*-freebsd*)
2175     llvm_cv_link_all_option="-Wl,--whole-archive"
2176     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177     llvm_cv_os_type="FreeBSD"
2178     llvm_cv_platform_type="Unix" ;;
2179   *-*-openbsd*)
2180     llvm_cv_link_all_option="-Wl,--whole-archive"
2181     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182     llvm_cv_os_type="OpenBSD"
2183     llvm_cv_platform_type="Unix" ;;
2184   *-*-netbsd*)
2185     llvm_cv_link_all_option="-Wl,--whole-archive"
2186     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187     llvm_cv_os_type="NetBSD"
2188     llvm_cv_platform_type="Unix" ;;
2189   *-*-dragonfly*)
2190     llvm_cv_link_all_option="-Wl,--whole-archive"
2191     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192     llvm_cv_os_type="DragonFly"
2193     llvm_cv_platform_type="Unix" ;;
2194   *-*-hpux*)
2195     llvm_cv_link_all_option="-Wl,--whole-archive"
2196     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197     llvm_cv_os_type="HP-UX"
2198     llvm_cv_platform_type="Unix" ;;
2199   *-*-interix*)
2200     llvm_cv_link_all_option="-Wl,--whole-archive"
2201     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202     llvm_cv_os_type="Interix"
2203     llvm_cv_platform_type="Unix" ;;
2204   *-*-linux*)
2205     llvm_cv_link_all_option="-Wl,--whole-archive"
2206     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207     llvm_cv_os_type="Linux"
2208     llvm_cv_platform_type="Unix" ;;
2209   *-*-solaris*)
2210     llvm_cv_link_all_option="-Wl,-z,allextract"
2211     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212     llvm_cv_os_type="SunOS"
2213     llvm_cv_platform_type="Unix" ;;
2214   *-*-auroraux*)
2215     llvm_cv_link_all_option="-Wl,-z,allextract"
2216     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217     llvm_cv_os_type="AuroraUX"
2218     llvm_cv_platform_type="Unix" ;;
2219   *-*-win32*)
2220     llvm_cv_link_all_option="-Wl,--whole-archive"
2221     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222     llvm_cv_os_type="Win32"
2223     llvm_cv_platform_type="Win32" ;;
2224   *-*-mingw*)
2225     llvm_cv_link_all_option="-Wl,--whole-archive"
2226     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227     llvm_cv_os_type="MingW"
2228     llvm_cv_platform_type="Win32" ;;
2229   *-*-haiku*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="Haiku"
2233     llvm_cv_platform_type="Unix" ;;
2234   *-unknown-eabi*)
2235     llvm_cv_link_all_option="-Wl,--whole-archive"
2236     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237     llvm_cv_os_type="Freestanding"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-unknown-elf*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="Freestanding"
2243     llvm_cv_platform_type="Unix" ;;
2244   *)
2245     llvm_cv_link_all_option=""
2246     llvm_cv_no_link_all_option=""
2247     llvm_cv_os_type="Unknown"
2248     llvm_cv_platform_type="Unknown" ;;
2249 esac
2250 fi
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   case $target in
2260   *-*-aix*)
2261     llvm_cv_target_os_type="AIX" ;;
2262   *-*-irix*)
2263     llvm_cv_target_os_type="IRIX" ;;
2264   *-*-cygwin*)
2265     llvm_cv_target_os_type="Cygwin" ;;
2266   *-*-darwin*)
2267     llvm_cv_target_os_type="Darwin" ;;
2268   *-*-minix*)
2269     llvm_cv_target_os_type="Minix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_target_os_type="FreeBSD" ;;
2272   *-*-openbsd*)
2273     llvm_cv_target_os_type="OpenBSD" ;;
2274   *-*-netbsd*)
2275     llvm_cv_target_os_type="NetBSD" ;;
2276   *-*-dragonfly*)
2277     llvm_cv_target_os_type="DragonFly" ;;
2278   *-*-hpux*)
2279     llvm_cv_target_os_type="HP-UX" ;;
2280   *-*-interix*)
2281     llvm_cv_target_os_type="Interix" ;;
2282   *-*-linux*)
2283     llvm_cv_target_os_type="Linux" ;;
2284   *-*-solaris*)
2285     llvm_cv_target_os_type="SunOS" ;;
2286   *-*-auroraux*)
2287     llvm_cv_target_os_type="AuroraUX" ;;
2288   *-*-win32*)
2289     llvm_cv_target_os_type="Win32" ;;
2290   *-*-mingw*)
2291     llvm_cv_target_os_type="MingW" ;;
2292   *-*-haiku*)
2293     llvm_cv_target_os_type="Haiku" ;;
2294   *-unknown-eabi*)
2295     llvm_cv_target_os_type="Freestanding" ;;
2296   *)
2297     llvm_cv_target_os_type="Unknown" ;;
2298 esac
2299 fi
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 OS=$llvm_cv_os_type
2310
2311 HOST_OS=$llvm_cv_os_type
2312
2313 TARGET_OS=$llvm_cv_target_os_type
2314
2315
2316 LINKALL=$llvm_cv_link_all_option
2317
2318 NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
2321 case $llvm_cv_platform_type in
2322   Unix)
2323
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2326 _ACEOF
2327
2328     LLVM_ON_UNIX=1
2329
2330     LLVM_ON_WIN32=0
2331
2332     ;;
2333   Win32)
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2337 _ACEOF
2338
2339     LLVM_ON_UNIX=0
2340
2341     LLVM_ON_WIN32=1
2342
2343     ;;
2344 esac
2345
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   case $target in
2352   i?86-*)                 llvm_cv_target_arch="x86" ;;
2353   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2354   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2355   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2356   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2357   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2358   mips-*)                 llvm_cv_target_arch="Mips" ;;
2359   pic16-*)                llvm_cv_target_arch="PIC16" ;;
2360   xcore-*)                llvm_cv_target_arch="XCore" ;;
2361   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2362   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2363   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2364   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2365   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2366   *)                      llvm_cv_target_arch="Unknown" ;;
2367 esac
2368 fi
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 fi
2376
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379     x86)     LLVM_NATIVE_ARCH="X86" ;;
2380     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2381     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382 esac
2383
2384 ARCH=$llvm_cv_target_arch
2385
2386
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$CC"; then
2401   ac_cv_prog_CC="$CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 CC=$ac_cv_prog_CC
2421 if test -n "$CC"; then
2422   { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429
2430 fi
2431 if test -z "$ac_cv_prog_CC"; then
2432   ac_ct_CC=$CC
2433   # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc; ac_word=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438   echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
2440   if test -n "$ac_ct_CC"; then
2441   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_ac_ct_CC="gcc"
2451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 else
2465   { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2467 fi
2468
2469   if test "x$ac_ct_CC" = x; then
2470     CC=""
2471   else
2472     case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet.  If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet.  If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482     CC=$ac_ct_CC
2483   fi
2484 else
2485   CC="$ac_cv_prog_CC"
2486 fi
2487
2488 if test -z "$CC"; then
2489           if test -n "$ac_tool_prefix"; then
2490     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}cc; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495   echo $ECHO_N "(cached) $ECHO_C" >&6
2496 else
2497   if test -n "$CC"; then
2498   ac_cv_prog_CC="$CC" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   for ac_exec_ext in '' $ac_executable_extensions; do
2506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507     ac_cv_prog_CC="${ac_tool_prefix}cc"
2508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509     break 2
2510   fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 CC=$ac_cv_prog_CC
2518 if test -n "$CC"; then
2519   { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 fi
2525
2526
2527   fi
2528 fi
2529 if test -z "$CC"; then
2530   # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc; ac_word=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535   echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537   if test -n "$CC"; then
2538   ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540   ac_prog_rejected=no
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544   IFS=$as_save_IFS
2545   test -z "$as_dir" && as_dir=.
2546   for ac_exec_ext in '' $ac_executable_extensions; do
2547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549        ac_prog_rejected=yes
2550        continue
2551      fi
2552     ac_cv_prog_CC="cc"
2553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554     break 2
2555   fi
2556 done
2557 done
2558 IFS=$as_save_IFS
2559
2560 if test $ac_prog_rejected = yes; then
2561   # We found a bogon in the path, so make sure we never use it.
2562   set dummy $ac_cv_prog_CC
2563   shift
2564   if test $# != 0; then
2565     # We chose a different compiler from the bogus one.
2566     # However, it has the same basename, so the bogon will be chosen
2567     # first if we set CC to just the basename; use the full file name.
2568     shift
2569     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2570   fi
2571 fi
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576   { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2578 else
2579   { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$CC"; then
2586   if test -n "$ac_tool_prefix"; then
2587   for ac_prog in cl.exe
2588   do
2589     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   if test -n "$CC"; then
2597   ac_cv_prog_CC="$CC" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2601 do
2602   IFS=$as_save_IFS
2603   test -z "$as_dir" && as_dir=.
2604   for ac_exec_ext in '' $ac_executable_extensions; do
2605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608     break 2
2609   fi
2610 done
2611 done
2612 IFS=$as_save_IFS
2613
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626     test -n "$CC" && break
2627   done
2628 fi
2629 if test -z "$CC"; then
2630   ac_ct_CC=$CC
2631   for ac_prog in cl.exe
2632 do
2633   # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   if test -n "$ac_ct_CC"; then
2641   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648   for ac_exec_ext in '' $ac_executable_extensions; do
2649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650     ac_cv_prog_ac_ct_CC="$ac_prog"
2651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652     break 2
2653   fi
2654 done
2655 done
2656 IFS=$as_save_IFS
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 else
2665   { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2667 fi
2668
2669
2670   test -n "$ac_ct_CC" && break
2671 done
2672
2673   if test "x$ac_ct_CC" = x; then
2674     CC=""
2675   else
2676     case $cross_compiling:$ac_tool_warned in
2677 yes:)
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet.  If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet.  If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686     CC=$ac_ct_CC
2687   fi
2688 fi
2689
2690 fi
2691
2692
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697    { (exit 1); exit 1; }; }
2698
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler=`set X $ac_compile; echo $2`
2702 { (ac_try="$ac_compiler --version >&5"
2703 case "(($ac_try" in
2704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705   *) ac_try_echo=$ac_try;;
2706 esac
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708   (eval "$ac_compiler --version >&5") 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compiler -v >&5") 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }
2722 { (ac_try="$ac_compiler -V >&5"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compiler -V >&5") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }
2732
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739
2740 int
2741 main ()
2742 {
2743
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2752 # of exeext.
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 #
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2759 # only as a last resort.  b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 #
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions.  Remove them first so a
2764 # subsequent execution test works.
2765 ac_rmfiles=
2766 for ac_file in $ac_files
2767 do
2768   case $ac_file in
2769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2771   esac
2772 done
2773 rm -f $ac_rmfiles
2774
2775 if { (ac_try="$ac_link_default"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_link_default") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; then
2785   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2789 # Autoconf.
2790 for ac_file in $ac_files
2791 do
2792   test -f "$ac_file" || continue
2793   case $ac_file in
2794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795         ;;
2796     [ab].out )
2797         # We found the default executable, but exeext='' is most
2798         # certainly right.
2799         break;;
2800     *.* )
2801         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802         then :; else
2803            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804         fi
2805         # We set ac_cv_exeext here because the later test for it is not
2806         # safe: cross compilers may not add the suffix if given an `-o'
2807         # argument, so we may need to know it at that point already.
2808         # Even if this section looks crufty: it has the advantage of
2809         # actually working.
2810         break;;
2811     * )
2812         break;;
2813   esac
2814 done
2815 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825    { (exit 77); exit 77; }; }
2826 fi
2827
2828 ac_exeext=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2831
2832 # Check that the compiler produces executables we can run.  If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839   if { ac_try='./$ac_file'
2840   { (case "(($ac_try" in
2841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842   *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845   (eval "$ac_try") 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849     cross_compiling=no
2850   else
2851     if test "$cross_compiling" = maybe; then
2852         cross_compiling=yes
2853     else
2854         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: cannot run C compiled programs.
2858 If you meant to cross compile, use \`--host'.
2859 See \`config.log' for more details." >&2;}
2860    { (exit 1); exit 1; }; }
2861     fi
2862   fi
2863 fi
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2866
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run.  If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2875
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2879 case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884   (eval "$ac_link") 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; then
2888   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2889 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 # `rm'.
2892 for ac_file in conftest.exe conftest conftest.*; do
2893   test -f "$ac_file" || continue
2894   case $ac_file in
2895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2896     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897           break;;
2898     * ) break;;
2899   esac
2900 done
2901 else
2902   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907 fi
2908
2909 rm -f conftest$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2915 ac_exeext=$EXEEXT
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919   echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921   cat >conftest.$ac_ext <<_ACEOF
2922 /* confdefs.h.  */
2923 _ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compile") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; then
2947   for ac_file in conftest.o conftest.obj conftest.*; do
2948   test -f "$ac_file" || continue;
2949   case $ac_file in
2950     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2952        break;;
2953   esac
2954 done
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963    { (exit 1); exit 1; }; }
2964 fi
2965
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 fi
2968 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975   echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983
2984 int
2985 main ()
2986 {
2987 #ifndef __GNUC__
2988        choke me
2989 #endif
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compile") 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } &&
3009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010   { (case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015   (eval "$ac_try") 2>&5
3016   ac_status=$?
3017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018   (exit $ac_status); }; } &&
3019          { ac_try='test -s conftest.$ac_objext'
3020   { (case "(($ac_try" in
3021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022   *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025   (eval "$ac_try") 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; }; then
3029   ac_compiler_gnu=yes
3030 else
3031   echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034         ac_compiler_gnu=no
3035 fi
3036
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039
3040 fi
3041 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3047 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   ac_save_c_werror_flag=$ac_c_werror_flag
3052    ac_c_werror_flag=yes
3053    ac_cv_prog_cc_g=no
3054    CFLAGS="-g"
3055    cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h.  */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compile") 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } &&
3084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085   { (case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090   (eval "$ac_try") 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; } &&
3094          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   ac_cv_prog_cc_g=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         CFLAGS=""
3110       cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } &&
3139          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140   { (case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }; } &&
3149          { ac_try='test -s conftest.$ac_objext'
3150   { (case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155   (eval "$ac_try") 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; }; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164         ac_c_werror_flag=$ac_save_c_werror_flag
3165          CFLAGS="-g"
3166          cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_compile") 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } &&
3195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196   { (case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_try") 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_try") 2>&5
3212   ac_status=$?
3213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214   (exit $ac_status); }; }; then
3215   ac_cv_prog_cc_g=yes
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 fi
3225
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230    ac_c_werror_flag=$ac_save_c_werror_flag
3231 fi
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235   CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237   if test "$GCC" = yes; then
3238     CFLAGS="-g -O2"
3239   else
3240     CFLAGS="-g"
3241   fi
3242 else
3243   if test "$GCC" = yes; then
3244     CFLAGS="-O2"
3245   else
3246     CFLAGS=
3247   fi
3248 fi
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270      char **p;
3271      int i;
3272 {
3273   return p[i];
3274 }
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3276 {
3277   char *s;
3278   va_list v;
3279   va_start (v,p);
3280   s = g (p, va_arg (v,int));
3281   va_end (v);
3282   return s;
3283 }
3284
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3286    function prototypes and stuff, but not '\xHH' hex character constants.
3287    These don't provoke an error unfortunately, instead are silently treated
3288    as 'x'.  The following induces an error, until -std is added to get
3289    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3290    array size at least.  It's necessary to write '\x00'==0 to get something
3291    that's true only with -std.  */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295    inside strings and character constants.  */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3305 int
3306 main ()
3307 {
3308 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 do
3316   CC="$ac_save_CC $ac_arg"
3317   rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324   (eval "$ac_compile") 2>conftest.er1
3325   ac_status=$?
3326   grep -v '^ *+' conftest.er1 >conftest.err
3327   rm -f conftest.er1
3328   cat conftest.err >&5
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); } &&
3331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332   { (case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337   (eval "$ac_try") 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); }; } &&
3341          { ac_try='test -s conftest.$ac_objext'
3342   { (case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; }; then
3351   ac_cv_prog_cc_c89=$ac_arg
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext
3360   test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 done
3362 rm -f conftest.$ac_ext
3363 CC=$ac_save_CC
3364
3365 fi
3366 # AC_CACHE_VAL
3367 case "x$ac_cv_prog_cc_c89" in
3368   x)
3369     { echo "$as_me:$LINENO: result: none needed" >&5
3370 echo "${ECHO_T}none needed" >&6; } ;;
3371   xno)
3372     { echo "$as_me:$LINENO: result: unsupported" >&5
3373 echo "${ECHO_T}unsupported" >&6; } ;;
3374   *)
3375     CC="$CC $ac_cv_prog_cc_c89"
3376     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3378 esac
3379
3380
3381 ac_ext=c
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386
3387
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3397   CPP=
3398 fi
3399 if test -z "$CPP"; then
3400   if test "${ac_cv_prog_CPP+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403       # Double quotes because CPP needs to be expanded
3404     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405     do
3406       ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3408 do
3409   # Use a header file that comes with gcc, so configuring glibc
3410   # with a fresh cross-compiler works.
3411   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412   # <limits.h> exists even on freestanding compilers.
3413   # On the NeXT, cc -E runs the code through the compiler's parser,
3414   # not just through cpp. "Syntax error" is here to catch this case.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426                      Syntax error
3427 _ACEOF
3428 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435   ac_status=$?
3436   grep -v '^ *+' conftest.er1 >conftest.err
3437   rm -f conftest.er1
3438   cat conftest.err >&5
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); } >/dev/null; then
3441   if test -s conftest.err; then
3442     ac_cpp_err=$ac_c_preproc_warn_flag
3443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444   else
3445     ac_cpp_err=
3446   fi
3447 else
3448   ac_cpp_err=yes
3449 fi
3450 if test -z "$ac_cpp_err"; then
3451   :
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456   # Broken: fails on valid input.
3457 continue
3458 fi
3459
3460 rm -f conftest.err conftest.$ac_ext
3461
3462   # OK, works on sane cases.  Now check whether nonexistent headers
3463   # can be detected and how.
3464   cat >conftest.$ac_ext <<_ACEOF
3465 /* confdefs.h.  */
3466 _ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h.  */
3470 #include <ac_nonexistent.h>
3471 _ACEOF
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479   ac_status=$?
3480   grep -v '^ *+' conftest.er1 >conftest.err
3481   rm -f conftest.er1
3482   cat conftest.err >&5
3483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484   (exit $ac_status); } >/dev/null; then
3485   if test -s conftest.err; then
3486     ac_cpp_err=$ac_c_preproc_warn_flag
3487     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488   else
3489     ac_cpp_err=
3490   fi
3491 else
3492   ac_cpp_err=yes
3493 fi
3494 if test -z "$ac_cpp_err"; then
3495   # Broken: success on invalid input.
3496 continue
3497 else
3498   echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3504 fi
3505
3506 rm -f conftest.err conftest.$ac_ext
3507
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3512   break
3513 fi
3514
3515     done
3516     ac_cv_prog_CPP=$CPP
3517
3518 fi
3519   CPP=$ac_cv_prog_CPP
3520 else
3521   ac_cv_prog_CPP=$CPP
3522 fi
3523 { echo "$as_me:$LINENO: result: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3525 ac_preproc_ok=false
3526 for ac_c_preproc_warn_flag in '' yes
3527 do
3528   # Use a header file that comes with gcc, so configuring glibc
3529   # with a fresh cross-compiler works.
3530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531   # <limits.h> exists even on freestanding compilers.
3532   # On the NeXT, cc -E runs the code through the compiler's parser,
3533   # not just through cpp. "Syntax error" is here to catch this case.
3534   cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h.  */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h.  */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545                      Syntax error
3546 _ACEOF
3547 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } >/dev/null; then
3560   if test -s conftest.err; then
3561     ac_cpp_err=$ac_c_preproc_warn_flag
3562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3563   else
3564     ac_cpp_err=
3565   fi
3566 else
3567   ac_cpp_err=yes
3568 fi
3569 if test -z "$ac_cpp_err"; then
3570   :
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } >/dev/null; then
3604   if test -s conftest.err; then
3605     ac_cpp_err=$ac_c_preproc_warn_flag
3606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607   else
3608     ac_cpp_err=
3609   fi
3610 else
3611   ac_cpp_err=yes
3612 fi
3613 if test -z "$ac_cpp_err"; then
3614   # Broken: success on invalid input.
3615 continue
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620   # Passes both tests.
3621 ac_preproc_ok=:
3622 break
3623 fi
3624
3625 rm -f conftest.err conftest.$ac_ext
3626
3627 done
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3631   :
3632 else
3633   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&2;}
3637    { (exit 1); exit 1; }; }
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   ac_path_GREP_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665   for ac_prog in grep ggrep; do
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3668     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3669     # Check for GNU ac_path_GREP and select it if it is found.
3670   # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3672 *GNU*)
3673   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674 *)
3675   ac_count=0
3676   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677   while :
3678   do
3679     cat "conftest.in" "conftest.in" >"conftest.tmp"
3680     mv "conftest.tmp" "conftest.in"
3681     cp "conftest.in" "conftest.nl"
3682     echo 'GREP' >> "conftest.nl"
3683     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685     ac_count=`expr $ac_count + 1`
3686     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687       # Best one so far, save it but keep looking for a better one
3688       ac_cv_path_GREP="$ac_path_GREP"
3689       ac_path_GREP_max=$ac_count
3690     fi
3691     # 10*(2^10) chars as input seems more than enough
3692     test $ac_count -gt 10 && break
3693   done
3694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697
3698     $ac_path_GREP_found && break 3
3699   done
3700 done
3701
3702 done
3703 IFS=$as_save_IFS
3704
3705
3706 fi
3707
3708 GREP="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 else
3716   ac_cv_path_GREP=$GREP
3717 fi
3718
3719
3720 fi
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723  GREP="$ac_cv_path_GREP"
3724
3725
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732    then ac_cv_path_EGREP="$GREP -E"
3733    else
3734      # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy egrep; ac_prog_name=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738   echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740   ac_path_EGREP_found=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 do
3745   IFS=$as_save_IFS
3746   test -z "$as_dir" && as_dir=.
3747   for ac_prog in egrep; do
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3750     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3751     # Check for GNU ac_path_EGREP and select it if it is found.
3752   # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3754 *GNU*)
3755   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 *)
3757   ac_count=0
3758   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759   while :
3760   do
3761     cat "conftest.in" "conftest.in" >"conftest.tmp"
3762     mv "conftest.tmp" "conftest.in"
3763     cp "conftest.in" "conftest.nl"
3764     echo 'EGREP' >> "conftest.nl"
3765     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3766     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3767     ac_count=`expr $ac_count + 1`
3768     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769       # Best one so far, save it but keep looking for a better one
3770       ac_cv_path_EGREP="$ac_path_EGREP"
3771       ac_path_EGREP_max=$ac_count
3772     fi
3773     # 10*(2^10) chars as input seems more than enough
3774     test $ac_count -gt 10 && break
3775   done
3776   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3777 esac
3778
3779
3780     $ac_path_EGREP_found && break 3
3781   done
3782 done
3783
3784 done
3785 IFS=$as_save_IFS
3786
3787
3788 fi
3789
3790 EGREP="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794    { (exit 1); exit 1; }; }
3795 fi
3796
3797 else
3798   ac_cv_path_EGREP=$EGREP
3799 fi
3800
3801
3802    fi
3803 fi
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806  EGREP="$ac_cv_path_EGREP"
3807
3808
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h.  */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h.  */
3820 #include <stdlib.h>
3821 #include <stdarg.h>
3822 #include <string.h>
3823 #include <float.h>
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840   (eval "$ac_compile") 2>conftest.er1
3841   ac_status=$?
3842   grep -v '^ *+' conftest.er1 >conftest.err
3843   rm -f conftest.er1
3844   cat conftest.err >&5
3845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846   (exit $ac_status); } &&
3847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848   { (case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853   (eval "$ac_try") 2>&5
3854   ac_status=$?
3855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); }; } &&
3857          { ac_try='test -s conftest.$ac_objext'
3858   { (case "(($ac_try" in
3859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860   *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863   (eval "$ac_try") 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   ac_cv_header_stdc=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872         ac_cv_header_stdc=no
3873 fi
3874
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876
3877 if test $ac_cv_header_stdc = yes; then
3878   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879   cat >conftest.$ac_ext <<_ACEOF
3880 /* confdefs.h.  */
3881 _ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h.  */
3885 #include <string.h>
3886
3887 _ACEOF
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889   $EGREP "memchr" >/dev/null 2>&1; then
3890   :
3891 else
3892   ac_cv_header_stdc=no
3893 fi
3894 rm -f conftest*
3895
3896 fi
3897
3898 if test $ac_cv_header_stdc = yes; then
3899   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900   cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <stdlib.h>
3907
3908 _ACEOF
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910   $EGREP "free" >/dev/null 2>&1; then
3911   :
3912 else
3913   ac_cv_header_stdc=no
3914 fi
3915 rm -f conftest*
3916
3917 fi
3918
3919 if test $ac_cv_header_stdc = yes; then
3920   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921   if test "$cross_compiling" = yes; then
3922   :
3923 else
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <ctype.h>
3931 #include <stdlib.h>
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 #else
3936 # define ISLOWER(c) \
3937                    (('a' <= (c) && (c) <= 'i') \
3938                      || ('j' <= (c) && (c) <= 'r') \
3939                      || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #endif
3942
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3944 int
3945 main ()
3946 {
3947   int i;
3948   for (i = 0; i < 256; i++)
3949     if (XOR (islower (i), ISLOWER (i))
3950         || toupper (i) != TOUPPER (i))
3951       return 2;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3957 case "(($ac_try" in
3958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959   *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962   (eval "$ac_link") 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3966   { (case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_try") 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; }; then
3975   :
3976 else
3977   echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ( exit $ac_status )
3982 ac_cv_header_stdc=no
3983 fi
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3985 fi
3986
3987
3988 fi
3989 fi
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3993
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
3996 _ACEOF
3997
3998 fi
3999
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011                   inttypes.h stdint.h unistd.h
4012 do
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017   echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019   cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025 $ac_includes_default
4026
4027 #include <$ac_header>
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_compile") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } &&
4043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044   { (case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049   (eval "$ac_try") 2>&5
4050   ac_status=$?
4051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052   (exit $ac_status); }; } &&
4053          { ac_try='test -s conftest.$ac_objext'
4054   { (case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059   (eval "$ac_try") 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; }; then
4063   eval "$as_ac_Header=yes"
4064 else
4065   echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068         eval "$as_ac_Header=no"
4069 fi
4070
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 ac_res=`eval echo '${'$as_ac_Header'}'`
4074                { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077   cat >>confdefs.h <<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4080
4081 fi
4082
4083 done
4084
4085
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4100
4101 int
4102 main ()
4103 {
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4105  bogus endian macros
4106 #endif
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116   *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119   (eval "$ac_compile") 2>conftest.er1
4120   ac_status=$?
4121   grep -v '^ *+' conftest.er1 >conftest.err
4122   rm -f conftest.er1
4123   cat conftest.err >&5
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); } &&
4126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127   { (case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132   (eval "$ac_try") 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; }; then
4146   # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4155
4156 int
4157 main ()
4158 {
4159 #if BYTE_ORDER != BIG_ENDIAN
4160  not big endian
4161 #endif
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } &&
4181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182   { (case "(($ac_try" in
4183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184   *) ac_try_echo=$ac_try;;
4185 esac
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; } &&
4191          { ac_try='test -s conftest.$ac_objext'
4192   { (case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_try") 2>&5
4198   ac_status=$?
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); }; }; then
4201   ac_cv_c_bigendian=yes
4202 else
4203   echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206         ac_cv_c_bigendian=no
4207 fi
4208
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 else
4211   echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4213
4214         # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216   # try to guess the endianness by grepping values into an object file
4217   ac_cv_c_bigendian=unknown
4218   cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4230 int
4231 main ()
4232 {
4233  _ascii (); _ebcdic ();
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 rm -f conftest.$ac_objext
4239 if { (ac_try="$ac_compile"
4240 case "(($ac_try" in
4241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242   *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245   (eval "$ac_compile") 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } &&
4252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253   { (case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_try") 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; } &&
4262          { ac_try='test -s conftest.$ac_objext'
4263   { (case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_try") 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273   ac_cv_c_bigendian=yes
4274 fi
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276   if test "$ac_cv_c_bigendian" = unknown; then
4277     ac_cv_c_bigendian=no
4278   else
4279     # finding both strings is unlikely to happen, but who knows?
4280     ac_cv_c_bigendian=unknown
4281   fi
4282 fi
4283 else
4284   echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287
4288 fi
4289
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 else
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 $ac_includes_default
4299 int
4300 main ()
4301 {
4302
4303   /* Are we little or big endian?  From Harbison&Steele.  */
4304   union
4305   {
4306     long int l;
4307     char c[sizeof (long int)];
4308   } u;
4309   u.l = 1;
4310   return u.c[sizeof (long int) - 1] == 1;
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323   (eval "$ac_link") 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327   { (case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332   (eval "$ac_try") 2>&5
4333   ac_status=$?
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); }; }; then
4336   ac_cv_c_bigendian=no
4337 else
4338   echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ( exit $ac_status )
4343 ac_cv_c_bigendian=yes
4344 fi
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346 fi
4347
4348
4349 fi
4350
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4356   yes)
4357     ENDIAN=big
4358  ;;
4359   no)
4360     ENDIAN=little
4361  ;;
4362   *)
4363     { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367    { (exit 1); exit 1; }; } ;;
4368 esac
4369
4370
4371 if test "$cross_compiling" = yes; then
4372   LLVM_CROSS_COMPILING=1
4373
4374
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381   ac_cv_build_exeext=.exe
4382 else
4383   ac_build_prefix=${build_alias}-
4384
4385   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390   echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392   if test -n "$BUILD_CC"; then
4393   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422   if test -z "$BUILD_CC"; then
4423      # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428   echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430   if test -n "$BUILD_CC"; then
4431   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436   IFS=$as_save_IFS
4437   test -z "$as_dir" && as_dir=.
4438   for ac_exec_ext in '' $ac_executable_extensions; do
4439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440     ac_cv_prog_BUILD_CC="gcc"
4441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442     break 2
4443   fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 else
4455   { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4457 fi
4458
4459
4460      if test -z "$BUILD_CC"; then
4461        # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   if test -n "$BUILD_CC"; then
4469   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 else
4471   ac_prog_rejected=no
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480        ac_prog_rejected=yes
4481        continue
4482      fi
4483     ac_cv_prog_BUILD_CC="cc"
4484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485     break 2
4486   fi
4487 done
4488 done
4489 IFS=$as_save_IFS
4490
4491 if test $ac_prog_rejected = yes; then
4492   # We found a bogon in the path, so make sure we never use it.
4493   set dummy $ac_cv_prog_BUILD_CC
4494   shift
4495   if test $# != 0; then
4496     # We chose a different compiler from the bogus one.
4497     # However, it has the same basename, so the bogon will be chosen
4498     # first if we set BUILD_CC to just the basename; use the full file name.
4499     shift
4500     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4501   fi
4502 fi
4503 fi
4504 fi
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 else
4510   { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4512 fi
4513
4514
4515      fi
4516   fi
4517   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519    { (exit 1); exit 1; }; }
4520   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521   rm -f conftest*
4522   echo 'int main () { return 0; }' > conftest.$ac_ext
4523   ac_cv_build_exeext=
4524   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525   (eval $ac_build_link) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); }; then
4529     for file in conftest.*; do
4530       case $file in
4531       *.c | *.o | *.obj | *.dSYM) ;;
4532       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4533       esac
4534     done
4535   else
4536     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538    { (exit 1); exit 1; }; }
4539   fi
4540   rm -f conftest*
4541   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4542 fi
4543 fi
4544
4545 BUILD_EXEEXT=""
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4550
4551   ac_build_prefix=${build_alias}-
4552   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$BUILD_CXX"; then
4560   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589   if test -z "$BUILD_CXX"; then
4590      # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   if test -n "$BUILD_CXX"; then
4598   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_prog_BUILD_CXX="g++"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi
4616 fi
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627      if test -z "$BUILD_CXX"; then
4628        # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$BUILD_CXX"; then
4636   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 else
4638   ac_prog_rejected=no
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647        ac_prog_rejected=yes
4648        continue
4649      fi
4650     ac_cv_prog_BUILD_CXX="c++"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 if test $ac_prog_rejected = yes; then
4659   # We found a bogon in the path, so make sure we never use it.
4660   set dummy $ac_cv_prog_BUILD_CXX
4661   shift
4662   if test $# != 0; then
4663     # We chose a different compiler from the bogus one.
4664     # However, it has the same basename, so the bogon will be chosen
4665     # first if we set BUILD_CXX to just the basename; use the full file name.
4666     shift
4667     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4668   fi
4669 fi
4670 fi
4671 fi
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 else
4677   { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4679 fi
4680
4681
4682      fi
4683   fi
4684 else
4685   LLVM_CROSS_COMPILING=0
4686
4687 fi
4688
4689 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4690   cvsbuild="yes"
4691   optimize="no"
4692   CVSBUILD=CVSBUILD=1
4693
4694 else
4695   cvsbuild="no"
4696   optimize="yes"
4697 fi
4698
4699
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702   enableval=$enable_optimized;
4703 else
4704   enableval=$optimize
4705 fi
4706
4707 if test ${enableval} = "no" ; then
4708   ENABLE_OPTIMIZED=
4709
4710 else
4711   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4712
4713 fi
4714
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717   enableval=$enable_profiling;
4718 else
4719   enableval="no"
4720 fi
4721
4722 if test ${enableval} = "no" ; then
4723   ENABLE_PROFILING=
4724
4725 else
4726   ENABLE_PROFILING=ENABLE_PROFILING=1
4727
4728 fi
4729
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732   enableval=$enable_assertions;
4733 else
4734   enableval="yes"
4735 fi
4736
4737 if test ${enableval} = "yes" ; then
4738   DISABLE_ASSERTIONS=
4739
4740 else
4741   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4742
4743 fi
4744
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747   enableval=$enable_expensive_checks;
4748 else
4749   enableval="no"
4750 fi
4751
4752 if test ${enableval} = "yes" ; then
4753   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754
4755   EXPENSIVE_CHECKS=yes
4756
4757 else
4758   ENABLE_EXPENSIVE_CHECKS=
4759
4760   EXPENSIVE_CHECKS=no
4761
4762 fi
4763
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766   enableval=$enable_debug_runtime;
4767 else
4768   enableval=no
4769 fi
4770
4771 if test ${enableval} = "no" ; then
4772   DEBUG_RUNTIME=
4773
4774 else
4775   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4776
4777 fi
4778
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781   enableval=$enable_debug_symbols;
4782 else
4783   enableval=no
4784 fi
4785
4786 if test ${enableval} = "no" ; then
4787   DEBUG_SYMBOLS=
4788
4789 else
4790   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4791
4792 fi
4793
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796   enableval=$enable_jit;
4797 else
4798   enableval=default
4799 fi
4800
4801 if test ${enableval} = "no"
4802 then
4803   JIT=
4804
4805 else
4806   case "$llvm_cv_target_arch" in
4807     x86)         TARGET_HAS_JIT=1
4808  ;;
4809     Sparc)       TARGET_HAS_JIT=0
4810  ;;
4811     PowerPC)     TARGET_HAS_JIT=1
4812  ;;
4813     x86_64)      TARGET_HAS_JIT=1
4814  ;;
4815     Alpha)       TARGET_HAS_JIT=1
4816  ;;
4817     ARM)         TARGET_HAS_JIT=1
4818  ;;
4819     Mips)        TARGET_HAS_JIT=0
4820  ;;
4821     PIC16)       TARGET_HAS_JIT=0
4822  ;;
4823     XCore)       TARGET_HAS_JIT=0
4824  ;;
4825     MSP430)      TARGET_HAS_JIT=0
4826  ;;
4827     SystemZ)     TARGET_HAS_JIT=0
4828  ;;
4829     Blackfin)    TARGET_HAS_JIT=0
4830  ;;
4831     MBlaze)      TARGET_HAS_JIT=0
4832  ;;
4833     PTX)         TARGET_HAS_JIT=0
4834  ;;
4835     *)           TARGET_HAS_JIT=0
4836  ;;
4837   esac
4838 fi
4839
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842   enableval=$enable_doxygen;
4843 else
4844   enableval=default
4845 fi
4846
4847 case "$enableval" in
4848   yes) ENABLE_DOXYGEN=1
4849  ;;
4850   no)  ENABLE_DOXYGEN=0
4851  ;;
4852   default) ENABLE_DOXYGEN=0
4853  ;;
4854   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856    { (exit 1); exit 1; }; } ;;
4857 esac
4858
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861   enableval=$enable_threads;
4862 else
4863   enableval=default
4864 fi
4865
4866 case "$enableval" in
4867   yes) ENABLE_THREADS=1
4868  ;;
4869   no)  ENABLE_THREADS=0
4870  ;;
4871   default) ENABLE_THREADS=1
4872  ;;
4873   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876 esac
4877
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4880 _ACEOF
4881
4882
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885   enableval=$enable_pic;
4886 else
4887   enableval=default
4888 fi
4889
4890 case "$enableval" in
4891   yes) ENABLE_PIC=1
4892  ;;
4893   no)  ENABLE_PIC=0
4894  ;;
4895   default) ENABLE_PIC=1
4896  ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4904 _ACEOF
4905
4906
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909   enableval=$enable_shared;
4910 else
4911   enableval=default
4912 fi
4913
4914 case "$enableval" in
4915   yes) ENABLE_SHARED=1
4916  ;;
4917   no)  ENABLE_SHARED=0
4918  ;;
4919   default) ENABLE_SHARED=0
4920  ;;
4921   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923    { (exit 1); exit 1; }; } ;;
4924 esac
4925
4926 # Check whether --enable-timestamps was given.
4927 if test "${enable_timestamps+set}" = set; then
4928   enableval=$enable_timestamps;
4929 else
4930   enableval=default
4931 fi
4932
4933 case "$enableval" in
4934   yes) ENABLE_TIMESTAMPS=1
4935  ;;
4936   no)  ENABLE_TIMESTAMPS=0
4937  ;;
4938   default) ENABLE_TIMESTAMPS=1
4939  ;;
4940   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942    { (exit 1); exit 1; }; } ;;
4943 esac
4944
4945 cat >>confdefs.h <<_ACEOF
4946 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 _ACEOF
4948
4949
4950 TARGETS_TO_BUILD=""
4951 # Check whether --enable-targets was given.
4952 if test "${enable_targets+set}" = set; then
4953   enableval=$enable_targets;
4954 else
4955   enableval=all
4956 fi
4957
4958 if test "$enableval" = host-only ; then
4959   enableval=host
4960 fi
4961 case "$enableval" in
4962   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4963   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964       case "$a_target" in
4965         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973         pic16)    TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4979         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4980         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4981         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4982         host) case "$llvm_cv_target_arch" in
4983             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4990             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4991             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992             PIC16)       TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4995             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4997             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4998             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999 echo "$as_me: error: Can not set target to build" >&2;}
5000    { (exit 1); exit 1; }; } ;;
5001           esac ;;
5002         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004    { (exit 1); exit 1; }; } ;;
5005       esac
5006   done
5007   ;;
5008 esac
5009 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5010
5011
5012 # Determine whether we are building LLVM support for the native architecture.
5013 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014 for a_target in $TARGETS_TO_BUILD; do
5015   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5016
5017 cat >>confdefs.h <<_ACEOF
5018 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5019 _ACEOF
5020
5021     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5024
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5027 _ACEOF
5028
5029
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5032 _ACEOF
5033
5034
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5037 _ACEOF
5038
5039   fi
5040 done
5041
5042 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043 # target feature def files.
5044 LLVM_ENUM_TARGETS=""
5045 LLVM_ENUM_ASM_PRINTERS=""
5046 LLVM_ENUM_ASM_PARSERS=""
5047 LLVM_ENUM_DISASSEMBLERS=""
5048 for target_to_build in $TARGETS_TO_BUILD; do
5049   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5052   fi
5053   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5054   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5055     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5056   fi
5057
5058   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5059     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5060   fi
5061   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5062     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5063   fi
5064 done
5065
5066
5067
5068
5069
5070 # Check whether --enable-cbe-printf-a was given.
5071 if test "${enable_cbe_printf_a+set}" = set; then
5072   enableval=$enable_cbe_printf_a;
5073 else
5074   enableval=default
5075 fi
5076
5077 case "$enableval" in
5078   yes) ENABLE_CBE_PRINTF_A=1
5079  ;;
5080   no)  ENABLE_CBE_PRINTF_A=0
5081  ;;
5082   default)  ENABLE_CBE_PRINTF_A=1
5083  ;;
5084   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5085 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5086    { (exit 1); exit 1; }; } ;;
5087 esac
5088
5089 cat >>confdefs.h <<_ACEOF
5090 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5091 _ACEOF
5092
5093
5094
5095 # Check whether --with-llvmgccdir was given.
5096 if test "${with_llvmgccdir+set}" = set; then
5097   withval=$with_llvmgccdir;
5098 else
5099   withval=default
5100 fi
5101
5102 case "$withval" in
5103   default) WITH_LLVMGCCDIR=default ;;
5104   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5105   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5106 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5107    { (exit 1); exit 1; }; } ;;
5108 esac
5109
5110
5111 # Check whether --with-llvmgcc was given.
5112 if test "${with_llvmgcc+set}" = set; then
5113   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5114       WITH_LLVMGCCDIR=""
5115 fi
5116
5117
5118
5119 # Check whether --with-llvmgxx was given.
5120 if test "${with_llvmgxx+set}" = set; then
5121   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5122     WITH_LLVMGCCDIR=""
5123 fi
5124
5125
5126 if test -n "$LLVMGCC"; then
5127    LLVMGCCCOMMAND="$LLVMGCC"
5128 fi
5129
5130 if test -n "$LLVMGXX"; then
5131    LLVMGXXCOMMAND="$LLVMGXX"
5132 fi
5133
5134 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5135    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5136 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5137    { (exit 1); exit 1; }; };
5138 fi
5139
5140 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5141    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5142 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5143    { (exit 1); exit 1; }; };
5144 fi
5145
5146
5147 # Check whether --with-clang was given.
5148 if test "${with_clang+set}" = set; then
5149   withval=$with_clang;
5150 else
5151   with_clang=default
5152 fi
5153
5154
5155
5156 # Check whether --with-built-clang was given.
5157 if test "${with_built_clang+set}" = set; then
5158   withval=$with_built_clang;
5159 else
5160   with_built_clang=check
5161 fi
5162
5163
5164 { echo "$as_me:$LINENO: checking clang compiler" >&5
5165 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5166 WITH_CLANGPATH=""
5167 WITH_BUILT_CLANG=0
5168 if test "$with_clang" != "default"; then
5169    WITH_CLANGPATH="$with_clang"
5170    if ! test -x "$WITH_CLANGPATH"; then
5171      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5172 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5173    { (exit 1); exit 1; }; }
5174    fi
5175 elif test "$with_built_clang" = "yes"; then
5176    WITH_BUILT_CLANG=1
5177 elif test "$with_built_clang" = "no"; then
5178    WITH_BUILT_CLANG=0
5179 else
5180    if test "$with_built_clang" != "check"; then
5181       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5182 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5183    { (exit 1); exit 1; }; }
5184    fi
5185
5186    if test -f ${srcdir}/tools/clang/README.txt; then
5187      WITH_BUILT_CLANG=1
5188    fi
5189 fi
5190
5191 if ! test -z "$WITH_CLANGPATH"; then
5192    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5193 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5194    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5195 elif test "$WITH_BUILT_CLANG" = "1"; then
5196    { echo "$as_me:$LINENO: result: built" >&5
5197 echo "${ECHO_T}built" >&6; }
5198 else
5199    { echo "$as_me:$LINENO: result: none" >&5
5200 echo "${ECHO_T}none" >&6; }
5201 fi
5202 CLANGPATH=$WITH_CLANGPATH
5203
5204 CLANGXXPATH=$WITH_CLANGXXPATH
5205
5206 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5207
5208
5209
5210 # Check whether --with-optimize-option was given.
5211 if test "${with_optimize_option+set}" = set; then
5212   withval=$with_optimize_option;
5213 else
5214   withval=default
5215 fi
5216
5217 { echo "$as_me:$LINENO: checking optimization flags" >&5
5218 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5219 case "$withval" in
5220   default)
5221     case "$llvm_cv_os_type" in
5222     FreeBSD) optimize_option=-O2 ;;
5223     MingW) optimize_option=-O2 ;;
5224     *)     optimize_option=-O3 ;;
5225     esac ;;
5226   *) optimize_option="$withval" ;;
5227 esac
5228 OPTIMIZE_OPTION=$optimize_option
5229
5230 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5231 echo "${ECHO_T}$optimize_option" >&6; }
5232
5233
5234 # Check whether --with-extra-options was given.
5235 if test "${with_extra_options+set}" = set; then
5236   withval=$with_extra_options;
5237 else
5238   withval=default
5239 fi
5240
5241 case "$withval" in
5242   default) EXTRA_OPTIONS= ;;
5243   *) EXTRA_OPTIONS=$withval ;;
5244 esac
5245 EXTRA_OPTIONS=$EXTRA_OPTIONS
5246
5247
5248 # Check whether --enable-bindings was given.
5249 if test "${enable_bindings+set}" = set; then
5250   enableval=$enable_bindings;
5251 else
5252   enableval=default
5253 fi
5254
5255 BINDINGS_TO_BUILD=""
5256 case "$enableval" in
5257   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5258   all ) BINDINGS_TO_BUILD="ocaml" ;;
5259   none | no) BINDINGS_TO_BUILD="" ;;
5260   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5261       case "$a_binding" in
5262         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5263         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5264 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5265    { (exit 1); exit 1; }; } ;;
5266       esac
5267   done
5268   ;;
5269 esac
5270
5271
5272 # Check whether --with-ocaml-libdir was given.
5273 if test "${with_ocaml_libdir+set}" = set; then
5274   withval=$with_ocaml_libdir;
5275 else
5276   withval=auto
5277 fi
5278
5279 case "$withval" in
5280   auto) with_ocaml_libdir="$withval" ;;
5281   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5282   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5283 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5284    { (exit 1); exit 1; }; } ;;
5285 esac
5286
5287
5288 # Check whether --with-c-include-dirs was given.
5289 if test "${with_c_include_dirs+set}" = set; then
5290   withval=$with_c_include_dirs;
5291 else
5292   withval=""
5293 fi
5294
5295
5296 cat >>confdefs.h <<_ACEOF
5297 #define C_INCLUDE_DIRS "$withval"
5298 _ACEOF
5299
5300
5301
5302 # Check whether --with-cxx-include-root was given.
5303 if test "${with_cxx_include_root+set}" = set; then
5304   withval=$with_cxx_include_root;
5305 else
5306   withval=""
5307 fi
5308
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define CXX_INCLUDE_ROOT "$withval"
5312 _ACEOF
5313
5314
5315
5316 # Check whether --with-cxx-include-arch was given.
5317 if test "${with_cxx_include_arch+set}" = set; then
5318   withval=$with_cxx_include_arch;
5319 else
5320   withval=""
5321 fi
5322
5323
5324 cat >>confdefs.h <<_ACEOF
5325 #define CXX_INCLUDE_ARCH "$withval"
5326 _ACEOF
5327
5328
5329
5330 # Check whether --with-cxx-include-32bit-dir was given.
5331 if test "${with_cxx_include_32bit_dir+set}" = set; then
5332   withval=$with_cxx_include_32bit_dir;
5333 else
5334   withval=""
5335 fi
5336
5337
5338 cat >>confdefs.h <<_ACEOF
5339 #define CXX_INCLUDE_32BIT_DIR "$withval"
5340 _ACEOF
5341
5342
5343
5344 # Check whether --with-cxx-include-64bit-dir was given.
5345 if test "${with_cxx_include_64bit_dir+set}" = set; then
5346   withval=$with_cxx_include_64bit_dir;
5347 else
5348   withval=""
5349 fi
5350
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define CXX_INCLUDE_64BIT_DIR "$withval"
5354 _ACEOF
5355
5356
5357
5358 # Check whether --with-binutils-include was given.
5359 if test "${with_binutils_include+set}" = set; then
5360   withval=$with_binutils_include;
5361 else
5362   withval=default
5363 fi
5364
5365 case "$withval" in
5366   default) WITH_BINUTILS_INCDIR=default ;;
5367   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5368   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5369 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5370    { (exit 1); exit 1; }; } ;;
5371 esac
5372 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5373   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5374
5375   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5376      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5377      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5378 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5379    { (exit 1); exit 1; }; };
5380   fi
5381 fi
5382
5383 # Check whether --enable-libffi was given.
5384 if test "${enable_libffi+set}" = set; then
5385   enableval=$enable_libffi; case "$enableval" in
5386     yes) llvm_cv_enable_libffi="yes" ;;
5387     no)  llvm_cv_enable_libffi="no"  ;;
5388     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5389 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5390    { (exit 1); exit 1; }; } ;;
5391   esac
5392 else
5393   llvm_cv_enable_libffi=no
5394 fi
5395
5396
5397
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5405 # On Suns, sometimes $CPP names a directory.
5406 if test -n "$CPP" && test -d "$CPP"; then
5407   CPP=
5408 fi
5409 if test -z "$CPP"; then
5410   if test "${ac_cv_prog_CPP+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413       # Double quotes because CPP needs to be expanded
5414     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5415     do
5416       ac_preproc_ok=false
5417 for ac_c_preproc_warn_flag in '' yes
5418 do
5419   # Use a header file that comes with gcc, so configuring glibc
5420   # with a fresh cross-compiler works.
5421   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422   # <limits.h> exists even on freestanding compilers.
5423   # On the NeXT, cc -E runs the code through the compiler's parser,
5424   # not just through cpp. "Syntax error" is here to catch this case.
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 #ifdef __STDC__
5432 # include <limits.h>
5433 #else
5434 # include <assert.h>
5435 #endif
5436                      Syntax error
5437 _ACEOF
5438 if { (ac_try="$ac_cpp conftest.$ac_ext"
5439 case "(($ac_try" in
5440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441   *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } >/dev/null; then
5451   if test -s conftest.err; then
5452     ac_cpp_err=$ac_c_preproc_warn_flag
5453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5454   else
5455     ac_cpp_err=
5456   fi
5457 else
5458   ac_cpp_err=yes
5459 fi
5460 if test -z "$ac_cpp_err"; then
5461   :
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466   # Broken: fails on valid input.
5467 continue
5468 fi
5469
5470 rm -f conftest.err conftest.$ac_ext
5471
5472   # OK, works on sane cases.  Now check whether nonexistent headers
5473   # can be detected and how.
5474   cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480 #include <ac_nonexistent.h>
5481 _ACEOF
5482 if { (ac_try="$ac_cpp conftest.$ac_ext"
5483 case "(($ac_try" in
5484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485   *) ac_try_echo=$ac_try;;
5486 esac
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5489   ac_status=$?
5490   grep -v '^ *+' conftest.er1 >conftest.err
5491   rm -f conftest.er1
5492   cat conftest.err >&5
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } >/dev/null; then
5495   if test -s conftest.err; then
5496     ac_cpp_err=$ac_c_preproc_warn_flag
5497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498   else
5499     ac_cpp_err=
5500   fi
5501 else
5502   ac_cpp_err=yes
5503 fi
5504 if test -z "$ac_cpp_err"; then
5505   # Broken: success on invalid input.
5506 continue
5507 else
5508   echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5510
5511   # Passes both tests.
5512 ac_preproc_ok=:
5513 break
5514 fi
5515
5516 rm -f conftest.err conftest.$ac_ext
5517
5518 done
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then
5522   break
5523 fi
5524
5525     done
5526     ac_cv_prog_CPP=$CPP
5527
5528 fi
5529   CPP=$ac_cv_prog_CPP
5530 else
5531   ac_cv_prog_CPP=$CPP
5532 fi
5533 { echo "$as_me:$LINENO: result: $CPP" >&5
5534 echo "${ECHO_T}$CPP" >&6; }
5535 ac_preproc_ok=false
5536 for ac_c_preproc_warn_flag in '' yes
5537 do
5538   # Use a header file that comes with gcc, so configuring glibc
5539   # with a fresh cross-compiler works.
5540   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541   # <limits.h> exists even on freestanding compilers.
5542   # On the NeXT, cc -E runs the code through the compiler's parser,
5543   # not just through cpp. "Syntax error" is here to catch this case.
5544   cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 #ifdef __STDC__
5551 # include <limits.h>
5552 #else
5553 # include <assert.h>
5554 #endif
5555                      Syntax error
5556 _ACEOF
5557 if { (ac_try="$ac_cpp conftest.$ac_ext"
5558 case "(($ac_try" in
5559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560   *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5564   ac_status=$?
5565   grep -v '^ *+' conftest.er1 >conftest.err
5566   rm -f conftest.er1
5567   cat conftest.err >&5
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } >/dev/null; then
5570   if test -s conftest.err; then
5571     ac_cpp_err=$ac_c_preproc_warn_flag
5572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5573   else
5574     ac_cpp_err=
5575   fi
5576 else
5577   ac_cpp_err=yes
5578 fi
5579 if test -z "$ac_cpp_err"; then
5580   :
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585   # Broken: fails on valid input.
5586 continue
5587 fi
5588
5589 rm -f conftest.err conftest.$ac_ext
5590
5591   # OK, works on sane cases.  Now check whether nonexistent headers
5592   # can be detected and how.
5593   cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h.  */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h.  */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if { (ac_try="$ac_cpp conftest.$ac_ext"
5602 case "(($ac_try" in
5603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604   *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } >/dev/null; then
5614   if test -s conftest.err; then
5615     ac_cpp_err=$ac_c_preproc_warn_flag
5616     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5617   else
5618     ac_cpp_err=
5619   fi
5620 else
5621   ac_cpp_err=yes
5622 fi
5623 if test -z "$ac_cpp_err"; then
5624   # Broken: success on invalid input.
5625 continue
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630   # Passes both tests.
5631 ac_preproc_ok=:
5632 break
5633 fi
5634
5635 rm -f conftest.err conftest.$ac_ext
5636
5637 done
5638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5639 rm -f conftest.err conftest.$ac_ext
5640 if $ac_preproc_ok; then
5641   :
5642 else
5643   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5644 See \`config.log' for more details." >&5
5645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5646 See \`config.log' for more details." >&2;}
5647    { (exit 1); exit 1; }; }
5648 fi
5649
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656 ac_ext=c
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 if test -n "$ac_tool_prefix"; then
5662   for ac_prog in gcc
5663   do
5664     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5668 if test "${ac_cv_prog_CC+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   if test -n "$CC"; then
5672   ac_cv_prog_CC="$CC" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679   for ac_exec_ext in '' $ac_executable_extensions; do
5680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5681     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 CC=$ac_cv_prog_CC
5692 if test -n "$CC"; then
5693   { echo "$as_me:$LINENO: result: $CC" >&5
5694 echo "${ECHO_T}$CC" >&6; }
5695 else
5696   { echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6; }
5698 fi
5699
5700
5701     test -n "$CC" && break
5702   done
5703 fi
5704 if test -z "$CC"; then
5705   ac_ct_CC=$CC
5706   for ac_prog in gcc
5707 do
5708   # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy $ac_prog; ac_word=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   if test -n "$ac_ct_CC"; then
5716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723   for ac_exec_ext in '' $ac_executable_extensions; do
5724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725     ac_cv_prog_ac_ct_CC="$ac_prog"
5726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727     break 2
5728   fi
5729 done
5730 done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5736 if test -n "$ac_ct_CC"; then
5737   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5738 echo "${ECHO_T}$ac_ct_CC" >&6; }
5739 else
5740   { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5742 fi
5743
5744
5745   test -n "$ac_ct_CC" && break
5746 done
5747
5748   if test "x$ac_ct_CC" = x; then
5749     CC=""
5750   else
5751     case $cross_compiling:$ac_tool_warned in
5752 yes:)
5753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5754 whose name does not start with the host triplet.  If you think this
5755 configuration is useful to you, please write to autoconf@gnu.org." >&5
5756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5757 whose name does not start with the host triplet.  If you think this
5758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761     CC=$ac_ct_CC
5762   fi
5763 fi
5764
5765
5766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5767 See \`config.log' for more details." >&5
5768 echo "$as_me: error: no acceptable C compiler found in \$PATH
5769 See \`config.log' for more details." >&2;}
5770    { (exit 1); exit 1; }; }
5771
5772 # Provide some information about the compiler.
5773 echo "$as_me:$LINENO: checking for C compiler version" >&5
5774 ac_compiler=`set X $ac_compile; echo $2`
5775 { (ac_try="$ac_compiler --version >&5"
5776 case "(($ac_try" in
5777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778   *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781   (eval "$ac_compiler --version >&5") 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }
5785 { (ac_try="$ac_compiler -v >&5"
5786 case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791   (eval "$ac_compiler -v >&5") 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); }
5795 { (ac_try="$ac_compiler -V >&5"
5796 case "(($ac_try" in
5797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798   *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801   (eval "$ac_compiler -V >&5") 2>&5
5802   ac_status=$?
5803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804   (exit $ac_status); }
5805
5806 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5807 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817
5818 int
5819 main ()
5820 {
5821 #ifndef __GNUC__
5822        choke me
5823 #endif
5824
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 rm -f conftest.$ac_objext
5830 if { (ac_try="$ac_compile"
5831 case "(($ac_try" in
5832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833   *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836   (eval "$ac_compile") 2>conftest.er1
5837   ac_status=$?
5838   grep -v '^ *+' conftest.er1 >conftest.err
5839   rm -f conftest.er1
5840   cat conftest.err >&5
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); } &&
5843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5844   { (case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_try") 2>&5
5850   ac_status=$?
5851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); }; } &&
5853          { ac_try='test -s conftest.$ac_objext'
5854   { (case "(($ac_try" in
5855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856   *) ac_try_echo=$ac_try;;
5857 esac
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859   (eval "$ac_try") 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; }; then
5863   ac_compiler_gnu=yes
5864 else
5865   echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868         ac_compiler_gnu=no
5869 fi
5870
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5873
5874 fi
5875 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5876 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5877 GCC=`test $ac_compiler_gnu = yes && echo yes`
5878 ac_test_CFLAGS=${CFLAGS+set}
5879 ac_save_CFLAGS=$CFLAGS
5880 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5881 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5882 if test "${ac_cv_prog_cc_g+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   ac_save_c_werror_flag=$ac_c_werror_flag
5886    ac_c_werror_flag=yes
5887    ac_cv_prog_cc_g=no
5888    CFLAGS="-g"
5889    cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895
5896 int
5897 main ()
5898 {
5899
5900   ;
5901   return 0;
5902 }
5903 _ACEOF
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5906 case "(($ac_try" in
5907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908   *) ac_try_echo=$ac_try;;
5909 esac
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911   (eval "$ac_compile") 2>conftest.er1
5912   ac_status=$?
5913   grep -v '^ *+' conftest.er1 >conftest.err
5914   rm -f conftest.er1
5915   cat conftest.err >&5
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); } &&
5918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5919   { (case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924   (eval "$ac_try") 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; } &&
5928          { ac_try='test -s conftest.$ac_objext'
5929   { (case "(($ac_try" in
5930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931   *) ac_try_echo=$ac_try;;
5932 esac
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934   (eval "$ac_try") 2>&5
5935   ac_status=$?
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); }; }; then
5938   ac_cv_prog_cc_g=yes
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943         CFLAGS=""
5944       cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950
5951 int
5952 main ()
5953 {
5954
5955   ;
5956   return 0;
5957 }
5958 _ACEOF
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5961 case "(($ac_try" in
5962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963   *) ac_try_echo=$ac_try;;
5964 esac
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966   (eval "$ac_compile") 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } &&
5973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5974   { (case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_try") 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; } &&
5983          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5993   :
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998         ac_c_werror_flag=$ac_save_c_werror_flag
5999          CFLAGS="-g"
6000          cat >conftest.$ac_ext <<_ACEOF
6001 /* confdefs.h.  */
6002 _ACEOF
6003 cat confdefs.h >>conftest.$ac_ext
6004 cat >>conftest.$ac_ext <<_ACEOF
6005 /* end confdefs.h.  */
6006
6007 int
6008 main ()
6009 {
6010
6011   ;
6012   return 0;
6013 }
6014 _ACEOF
6015 rm -f conftest.$ac_objext
6016 if { (ac_try="$ac_compile"
6017 case "(($ac_try" in
6018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019   *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022   (eval "$ac_compile") 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030   { (case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_try") 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest.$ac_objext'
6040   { (case "(($ac_try" in
6041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042   *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045   (eval "$ac_try") 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049   ac_cv_prog_cc_g=yes
6050 else
6051   echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 fi
6059
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 fi
6062
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064    ac_c_werror_flag=$ac_save_c_werror_flag
6065 fi
6066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6067 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6068 if test "$ac_test_CFLAGS" = set; then
6069   CFLAGS=$ac_save_CFLAGS
6070 elif test $ac_cv_prog_cc_g = yes; then
6071   if test "$GCC" = yes; then
6072     CFLAGS="-g -O2"
6073   else
6074     CFLAGS="-g"
6075   fi
6076 else
6077   if test "$GCC" = yes; then
6078     CFLAGS="-O2"
6079   else
6080     CFLAGS=
6081   fi
6082 fi
6083 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6084 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_cc_c89+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   ac_cv_prog_cc_c89=no
6089 ac_save_CC=$CC
6090 cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <stdarg.h>
6097 #include <stdio.h>
6098 #include <sys/types.h>
6099 #include <sys/stat.h>
6100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6101 struct buf { int x; };
6102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6103 static char *e (p, i)
6104      char **p;
6105      int i;
6106 {
6107   return p[i];
6108 }
6109 static char *f (char * (*g) (char **, int), char **p, ...)
6110 {
6111   char *s;
6112   va_list v;
6113   va_start (v,p);
6114   s = g (p, va_arg (v,int));
6115   va_end (v);
6116   return s;
6117 }
6118
6119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6120    function prototypes and stuff, but not '\xHH' hex character constants.
6121    These don't provoke an error unfortunately, instead are silently treated
6122    as 'x'.  The following induces an error, until -std is added to get
6123    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6124    array size at least.  It's necessary to write '\x00'==0 to get something
6125    that's true only with -std.  */
6126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6127
6128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6129    inside strings and character constants.  */
6130 #define FOO(x) 'x'
6131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6132
6133 int test (int i, double x);
6134 struct s1 {int (*f) (int a);};
6135 struct s2 {int (*f) (double a);};
6136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6137 int argc;
6138 char **argv;
6139 int
6140 main ()
6141 {
6142 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6143   ;
6144   return 0;
6145 }
6146 _ACEOF
6147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6148         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6149 do
6150   CC="$ac_save_CC $ac_arg"
6151   rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158   (eval "$ac_compile") 2>conftest.er1
6159   ac_status=$?
6160   grep -v '^ *+' conftest.er1 >conftest.err
6161   rm -f conftest.er1
6162   cat conftest.err >&5
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166   { (case "(($ac_try" in
6167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168   *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171   (eval "$ac_try") 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }; } &&
6175          { ac_try='test -s conftest.$ac_objext'
6176   { (case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_try") 2>&5
6182   ac_status=$?
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); }; }; then
6185   ac_cv_prog_cc_c89=$ac_arg
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190
6191 fi
6192
6193 rm -f core conftest.err conftest.$ac_objext
6194   test "x$ac_cv_prog_cc_c89" != "xno" && break
6195 done
6196 rm -f conftest.$ac_ext
6197 CC=$ac_save_CC
6198
6199 fi
6200 # AC_CACHE_VAL
6201 case "x$ac_cv_prog_cc_c89" in
6202   x)
6203     { echo "$as_me:$LINENO: result: none needed" >&5
6204 echo "${ECHO_T}none needed" >&6; } ;;
6205   xno)
6206     { echo "$as_me:$LINENO: result: unsupported" >&5
6207 echo "${ECHO_T}unsupported" >&6; } ;;
6208   *)
6209     CC="$CC $ac_cv_prog_cc_c89"
6210     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6211 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6212 esac
6213
6214
6215 ac_ext=c
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221 ac_ext=cpp
6222 ac_cpp='$CXXCPP $CPPFLAGS'
6223 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6226 if test -z "$CXX"; then
6227   if test -n "$CCC"; then
6228     CXX=$CCC
6229   else
6230     if test -n "$ac_tool_prefix"; then
6231   for ac_prog in g++
6232   do
6233     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_CXX+set}" = set; then
6238   echo $ECHO_N "(cached) $ECHO_C" >&6
6239 else
6240   if test -n "$CXX"; then
6241   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248   for ac_exec_ext in '' $ac_executable_extensions; do
6249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 CXX=$ac_cv_prog_CXX
6261 if test -n "$CXX"; then
6262   { echo "$as_me:$LINENO: result: $CXX" >&5
6263 echo "${ECHO_T}$CXX" >&6; }
6264 else
6265   { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267 fi
6268
6269
6270     test -n "$CXX" && break
6271   done
6272 fi
6273 if test -z "$CXX"; then
6274   ac_ct_CXX=$CXX
6275   for ac_prog in g++
6276 do
6277   # Extract the first word of "$ac_prog", so it can be a program name with args.
6278 set dummy $ac_prog; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$ac_ct_CXX"; then
6285   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_ac_ct_CXX="$ac_prog"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6305 if test -n "$ac_ct_CXX"; then
6306   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6307 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313
6314   test -n "$ac_ct_CXX" && break
6315 done
6316
6317   if test "x$ac_ct_CXX" = x; then
6318     CXX="g++"
6319   else
6320     case $cross_compiling:$ac_tool_warned in
6321 yes:)
6322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6323 whose name does not start with the host triplet.  If you think this
6324 configuration is useful to you, please write to autoconf@gnu.org." >&5
6325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6326 whose name does not start with the host triplet.  If you think this
6327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     CXX=$ac_ct_CXX
6331   fi
6332 fi
6333
6334   fi
6335 fi
6336 # Provide some information about the compiler.
6337 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6338 ac_compiler=`set X $ac_compile; echo $2`
6339 { (ac_try="$ac_compiler --version >&5"
6340 case "(($ac_try" in
6341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342   *) ac_try_echo=$ac_try;;
6343 esac
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345   (eval "$ac_compiler --version >&5") 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); }
6349 { (ac_try="$ac_compiler -v >&5"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_compiler -v >&5") 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); }
6359 { (ac_try="$ac_compiler -V >&5"
6360 case "(($ac_try" in
6361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362   *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365   (eval "$ac_compiler -V >&5") 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }
6369
6370 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6371 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6372 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381
6382 int
6383 main ()
6384 {
6385 #ifndef __GNUC__
6386        choke me
6387 #endif
6388
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400   (eval "$ac_compile") 2>conftest.er1
6401   ac_status=$?
6402   grep -v '^ *+' conftest.er1 >conftest.err
6403   rm -f conftest.er1
6404   cat conftest.err >&5
6405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406   (exit $ac_status); } &&
6407          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6408   { (case "(($ac_try" in
6409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410   *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413   (eval "$ac_try") 2>&5
6414   ac_status=$?
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); }; } &&
6417          { ac_try='test -s conftest.$ac_objext'
6418   { (case "(($ac_try" in
6419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420   *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423   (eval "$ac_try") 2>&5
6424   ac_status=$?
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); }; }; then
6427   ac_compiler_gnu=yes
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432         ac_compiler_gnu=no
6433 fi
6434
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6437
6438 fi
6439 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6440 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6441 GXX=`test $ac_compiler_gnu = yes && echo yes`
6442 ac_test_CXXFLAGS=${CXXFLAGS+set}
6443 ac_save_CXXFLAGS=$CXXFLAGS
6444 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6445 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_cxx_g+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6450    ac_cxx_werror_flag=yes
6451    ac_cv_prog_cxx_g=no
6452    CXXFLAGS="-g"
6453    cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext
6469 if { (ac_try="$ac_compile"
6470 case "(($ac_try" in
6471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472   *) ac_try_echo=$ac_try;;
6473 esac
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475   (eval "$ac_compile") 2>conftest.er1
6476   ac_status=$?
6477   grep -v '^ *+' conftest.er1 >conftest.err
6478   rm -f conftest.er1
6479   cat conftest.err >&5
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } &&
6482          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6483   { (case "(($ac_try" in
6484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485   *) ac_try_echo=$ac_try;;
6486 esac
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488   (eval "$ac_try") 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); }; } &&
6492          { ac_try='test -s conftest.$ac_objext'
6493   { (case "(($ac_try" in
6494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495   *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498   (eval "$ac_try") 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; }; then
6502   ac_cv_prog_cxx_g=yes
6503 else
6504   echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507         CXXFLAGS=""
6508       cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514
6515 int
6516 main ()
6517 {
6518
6519   ;
6520   return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527   *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530   (eval "$ac_compile") 2>conftest.er1
6531   ac_status=$?
6532   grep -v '^ *+' conftest.er1 >conftest.err
6533   rm -f conftest.er1
6534   cat conftest.err >&5
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); } &&
6537          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6538   { (case "(($ac_try" in
6539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540   *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543   (eval "$ac_try") 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; } &&
6547          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6557   :
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6563          CXXFLAGS="-g"
6564          cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570
6571 int
6572 main ()
6573 {
6574
6575   ;
6576   return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583   *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586   (eval "$ac_compile") 2>conftest.er1
6587   ac_status=$?
6588   grep -v '^ *+' conftest.er1 >conftest.err
6589   rm -f conftest.er1
6590   cat conftest.err >&5
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } &&
6593          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594   { (case "(($ac_try" in
6595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596   *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599   (eval "$ac_try") 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; } &&
6603          { ac_try='test -s conftest.$ac_objext'
6604   { (case "(($ac_try" in
6605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606   *) ac_try_echo=$ac_try;;
6607 esac
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609   (eval "$ac_try") 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_prog_cxx_g=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618
6619 fi
6620
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 fi
6623
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 fi
6626
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6629 fi
6630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6631 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6632 if test "$ac_test_CXXFLAGS" = set; then
6633   CXXFLAGS=$ac_save_CXXFLAGS
6634 elif test $ac_cv_prog_cxx_g = yes; then
6635   if test "$GXX" = yes; then
6636     CXXFLAGS="-g -O2"
6637   else
6638     CXXFLAGS="-g"
6639   fi
6640 else
6641   if test "$GXX" = yes; then
6642     CXXFLAGS="-O2"
6643   else
6644     CXXFLAGS=
6645   fi
6646 fi
6647 ac_ext=c
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
6653
6654 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6655 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6656 if test "${lt_cv_path_NM+set}" = set; then
6657   echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659   if test -n "$NM"; then
6660   # Let the user override the test.
6661   lt_cv_path_NM="$NM"
6662 else
6663   lt_nm_to_check="${ac_tool_prefix}nm"
6664   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6665     lt_nm_to_check="$lt_nm_to_check nm"
6666   fi
6667   for lt_tmp_nm in $lt_nm_to_check; do
6668     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6669     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6670       IFS="$lt_save_ifs"
6671       test -z "$ac_dir" && ac_dir=.
6672       tmp_nm="$ac_dir/$lt_tmp_nm"
6673       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6674         # Check to see if the nm accepts a BSD-compat flag.
6675         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6676         #   nm: unknown option "B" ignored
6677         # Tru64's nm complains that /dev/null is an invalid object file
6678         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6679         */dev/null* | *'Invalid file or object type'*)
6680           lt_cv_path_NM="$tmp_nm -B"
6681           break
6682           ;;
6683         *)
6684           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6685           */dev/null*)
6686             lt_cv_path_NM="$tmp_nm -p"
6687             break
6688             ;;
6689           *)
6690             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6691             continue # so that we can try to find one that supports BSD flags
6692             ;;
6693           esac
6694           ;;
6695         esac
6696       fi
6697     done
6698     IFS="$lt_save_ifs"
6699   done
6700   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6701 fi
6702 fi
6703 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6704 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6705 NM="$lt_cv_path_NM"
6706
6707
6708
6709 { echo "$as_me:$LINENO: checking for GNU make" >&5
6710 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6711 if test "${llvm_cv_gnu_make_command+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   llvm_cv_gnu_make_command=''
6715  for a in "$MAKE" make gmake gnumake ; do
6716   if test -z "$a" ; then continue ; fi ;
6717   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6718   then
6719    llvm_cv_gnu_make_command=$a ;
6720    break;
6721   fi
6722  done
6723 fi
6724 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6725 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6726  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6727    ifGNUmake='' ;
6728  else
6729    ifGNUmake='#' ;
6730    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6731 echo "${ECHO_T}\"Not found\"" >&6; };
6732  fi
6733
6734
6735 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6736 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6737 LN_S=$as_ln_s
6738 if test "$LN_S" = "ln -s"; then
6739   { echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6743 echo "${ECHO_T}no, using $LN_S" >&6; }
6744 fi
6745
6746 # Extract the first word of "cmp", so it can be a program name with args.
6747 set dummy cmp; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_CMP+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $CMP in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6774   ;;
6775 esac
6776 fi
6777 CMP=$ac_cv_path_CMP
6778 if test -n "$CMP"; then
6779   { echo "$as_me:$LINENO: result: $CMP" >&5
6780 echo "${ECHO_T}$CMP" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787 # Extract the first word of "cp", so it can be a program name with args.
6788 set dummy cp; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_path_CP+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794   case $CP in
6795   [\\/]* | ?:[\\/]*)
6796   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6797   ;;
6798   *)
6799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802   IFS=$as_save_IFS
6803   test -z "$as_dir" && as_dir=.
6804   for ac_exec_ext in '' $ac_executable_extensions; do
6805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6806     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808     break 2
6809   fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6815   ;;
6816 esac
6817 fi
6818 CP=$ac_cv_path_CP
6819 if test -n "$CP"; then
6820   { echo "$as_me:$LINENO: result: $CP" >&5
6821 echo "${ECHO_T}$CP" >&6; }
6822 else
6823   { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6825 fi
6826
6827
6828 # Extract the first word of "date", so it can be a program name with args.
6829 set dummy date; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_DATE+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   case $DATE in
6836   [\\/]* | ?:[\\/]*)
6837   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6838   ;;
6839   *)
6840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845   for ac_exec_ext in '' $ac_executable_extensions; do
6846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6856   ;;
6857 esac
6858 fi
6859 DATE=$ac_cv_path_DATE
6860 if test -n "$DATE"; then
6861   { echo "$as_me:$LINENO: result: $DATE" >&5
6862 echo "${ECHO_T}$DATE" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6866 fi
6867
6868
6869 # Extract the first word of "find", so it can be a program name with args.
6870 set dummy find; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_FIND+set}" = set; then
6874   echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876   case $FIND in
6877   [\\/]* | ?:[\\/]*)
6878   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6879   ;;
6880   *)
6881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6897   ;;
6898 esac
6899 fi
6900 FIND=$ac_cv_path_FIND
6901 if test -n "$FIND"; then
6902   { echo "$as_me:$LINENO: result: $FIND" >&5
6903 echo "${ECHO_T}$FIND" >&6; }
6904 else
6905   { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6907 fi
6908
6909
6910 # Extract the first word of "grep", so it can be a program name with args.
6911 set dummy grep; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_GREP+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   case $GREP in
6918   [\\/]* | ?:[\\/]*)
6919   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6920   ;;
6921   *)
6922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927   for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934 done
6935 IFS=$as_save_IFS
6936
6937   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6938   ;;
6939 esac
6940 fi
6941 GREP=$ac_cv_path_GREP
6942 if test -n "$GREP"; then
6943   { echo "$as_me:$LINENO: result: $GREP" >&5
6944 echo "${ECHO_T}$GREP" >&6; }
6945 else
6946   { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6948 fi
6949
6950
6951 # Extract the first word of "mkdir", so it can be a program name with args.
6952 set dummy mkdir; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_path_MKDIR+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   case $MKDIR in
6959   [\\/]* | ?:[\\/]*)
6960   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6961   ;;
6962   *)
6963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968   for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6979   ;;
6980 esac
6981 fi
6982 MKDIR=$ac_cv_path_MKDIR
6983 if test -n "$MKDIR"; then
6984   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6985 echo "${ECHO_T}$MKDIR" >&6; }
6986 else
6987   { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6989 fi
6990
6991
6992 # Extract the first word of "mv", so it can be a program name with args.
6993 set dummy mv; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_MV+set}" = set; then
6997   echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999   case $MV in
7000   [\\/]* | ?:[\\/]*)
7001   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7002   ;;
7003   *)
7004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007   IFS=$as_save_IFS
7008   test -z "$as_dir" && as_dir=.
7009   for ac_exec_ext in '' $ac_executable_extensions; do
7010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013     break 2
7014   fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7020   ;;
7021 esac
7022 fi
7023 MV=$ac_cv_path_MV
7024 if test -n "$MV"; then
7025   { echo "$as_me:$LINENO: result: $MV" >&5
7026 echo "${ECHO_T}$MV" >&6; }
7027 else
7028   { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7030 fi
7031
7032
7033 if test -n "$ac_tool_prefix"; then
7034   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_prog_RANLIB+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   if test -n "$RANLIB"; then
7042   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047   IFS=$as_save_IFS
7048   test -z "$as_dir" && as_dir=.
7049   for ac_exec_ext in '' $ac_executable_extensions; do
7050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7053     break 2
7054   fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 RANLIB=$ac_cv_prog_RANLIB
7062 if test -n "$RANLIB"; then
7063   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7064 echo "${ECHO_T}$RANLIB" >&6; }
7065 else
7066   { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7068 fi
7069
7070
7071 fi
7072 if test -z "$ac_cv_prog_RANLIB"; then
7073   ac_ct_RANLIB=$RANLIB
7074   # Extract the first word of "ranlib", so it can be a program name with args.
7075 set dummy ranlib; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   if test -n "$ac_ct_RANLIB"; then
7082   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_prog_ac_ct_RANLIB="ranlib"
7092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7102 if test -n "$ac_ct_RANLIB"; then
7103   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7104 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7105 else
7106   { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7108 fi
7109
7110   if test "x$ac_ct_RANLIB" = x; then
7111     RANLIB=":"
7112   else
7113     case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet.  If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&5
7118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7119 whose name does not start with the host triplet.  If you think this
7120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123     RANLIB=$ac_ct_RANLIB
7124   fi
7125 else
7126   RANLIB="$ac_cv_prog_RANLIB"
7127 fi
7128
7129 if test -n "$ac_tool_prefix"; then
7130   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}ar; ac_word=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_prog_AR+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   if test -n "$AR"; then
7138   ac_cv_prog_AR="$AR" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145   for ac_exec_ext in '' $ac_executable_extensions; do
7146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7147     ac_cv_prog_AR="${ac_tool_prefix}ar"
7148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi
7156 fi
7157 AR=$ac_cv_prog_AR
7158 if test -n "$AR"; then
7159   { echo "$as_me:$LINENO: result: $AR" >&5
7160 echo "${ECHO_T}$AR" >&6; }
7161 else
7162   { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7164 fi
7165
7166
7167 fi
7168 if test -z "$ac_cv_prog_AR"; then
7169   ac_ct_AR=$AR
7170   # Extract the first word of "ar", so it can be a program name with args.
7171 set dummy ar; ac_word=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_AR"; then
7178   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7187     ac_cv_prog_ac_ct_AR="ar"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193 IFS=$as_save_IFS
7194
7195 fi
7196 fi
7197 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200 echo "${ECHO_T}$ac_ct_AR" >&6; }
7201 else
7202   { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7204 fi
7205
7206   if test "x$ac_ct_AR" = x; then
7207     AR="false"
7208   else
7209     case $cross_compiling:$ac_tool_warned in
7210 yes:)
7211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet.  If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&5
7214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215 whose name does not start with the host triplet.  If you think this
7216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217 ac_tool_warned=yes ;;
7218 esac
7219     AR=$ac_ct_AR
7220   fi
7221 else
7222   AR="$ac_cv_prog_AR"
7223 fi
7224
7225 # Extract the first word of "rm", so it can be a program name with args.
7226 set dummy rm; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_RM+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $RM in
7233   [\\/]* | ?:[\\/]*)
7234   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7235   ;;
7236   *)
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7253   ;;
7254 esac
7255 fi
7256 RM=$ac_cv_path_RM
7257 if test -n "$RM"; then
7258   { echo "$as_me:$LINENO: result: $RM" >&5
7259 echo "${ECHO_T}$RM" >&6; }
7260 else
7261   { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7263 fi
7264
7265
7266 # Extract the first word of "sed", so it can be a program name with args.
7267 set dummy sed; ac_word=$2
7268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270 if test "${ac_cv_path_SED+set}" = set; then
7271   echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273   case $SED in
7274   [\\/]* | ?:[\\/]*)
7275   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7276   ;;
7277   *)
7278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7294   ;;
7295 esac
7296 fi
7297 SED=$ac_cv_path_SED
7298 if test -n "$SED"; then
7299   { echo "$as_me:$LINENO: result: $SED" >&5
7300 echo "${ECHO_T}$SED" >&6; }
7301 else
7302   { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7304 fi
7305
7306
7307 # Extract the first word of "tar", so it can be a program name with args.
7308 set dummy tar; ac_word=$2
7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311 if test "${ac_cv_path_TAR+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   case $TAR in
7315   [\\/]* | ?:[\\/]*)
7316   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7317   ;;
7318   *)
7319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324   for ac_exec_ext in '' $ac_executable_extensions; do
7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7335   ;;
7336 esac
7337 fi
7338 TAR=$ac_cv_path_TAR
7339 if test -n "$TAR"; then
7340   { echo "$as_me:$LINENO: result: $TAR" >&5
7341 echo "${ECHO_T}$TAR" >&6; }
7342 else
7343   { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 fi
7346
7347
7348 # Extract the first word of "pwd", so it can be a program name with args.
7349 set dummy pwd; ac_word=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_BINPWD+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   case $BINPWD in
7356   [\\/]* | ?:[\\/]*)
7357   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7358   ;;
7359   *)
7360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365   for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7376   ;;
7377 esac
7378 fi
7379 BINPWD=$ac_cv_path_BINPWD
7380 if test -n "$BINPWD"; then
7381   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382 echo "${ECHO_T}$BINPWD" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389
7390 # Extract the first word of "Graphviz", so it can be a program name with args.
7391 set dummy Graphviz; ac_word=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395   echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397   case $GRAPHVIZ in
7398   [\\/]* | ?:[\\/]*)
7399   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7400   ;;
7401   *)
7402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7416
7417   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7418   ;;
7419 esac
7420 fi
7421 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422 if test -n "$GRAPHVIZ"; then
7423   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7425 else
7426   { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7428 fi
7429
7430
7431 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_GRAPHVIZ 1
7435 _ACEOF
7436
7437     if test "$llvm_cv_os_type" = "MingW" ; then
7438     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439   fi
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7443 _ACEOF
7444
7445 fi
7446 # Extract the first word of "dot", so it can be a program name with args.
7447 set dummy dot; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_DOT+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $DOT in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7474   ;;
7475 esac
7476 fi
7477 DOT=$ac_cv_path_DOT
7478 if test -n "$DOT"; then
7479   { echo "$as_me:$LINENO: result: $DOT" >&5
7480 echo "${ECHO_T}$DOT" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 if test "$DOT" != "echo dot" ; then
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_DOT 1
7491 _ACEOF
7492
7493     if test "$llvm_cv_os_type" = "MingW" ; then
7494     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495   fi
7496
7497 cat >>confdefs.h <<_ACEOF
7498 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7499 _ACEOF
7500
7501 fi
7502 # Extract the first word of "fdp", so it can be a program name with args.
7503 set dummy fdp; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_FDP+set}" = set; then
7507   echo $ECHO_N "(cached) $ECHO_C" >&6
7508 else
7509   case $FDP in
7510   [\\/]* | ?:[\\/]*)
7511   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7512   ;;
7513   *)
7514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517   IFS=$as_save_IFS
7518   test -z "$as_dir" && as_dir=.
7519   for ac_exec_ext in '' $ac_executable_extensions; do
7520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523     break 2
7524   fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7530   ;;
7531 esac
7532 fi
7533 FDP=$ac_cv_path_FDP
7534 if test -n "$FDP"; then
7535   { echo "$as_me:$LINENO: result: $FDP" >&5
7536 echo "${ECHO_T}$FDP" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543 if test "$FDP" != "echo fdp" ; then
7544
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_FDP 1
7547 _ACEOF
7548
7549     if test "$llvm_cv_os_type" = "MingW" ; then
7550     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7551   fi
7552
7553 cat >>confdefs.h <<_ACEOF
7554 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7555 _ACEOF
7556
7557 fi
7558 # Extract the first word of "neato", so it can be a program name with args.
7559 set dummy neato; ac_word=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_path_NEATO+set}" = set; then
7563   echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565   case $NEATO in
7566   [\\/]* | ?:[\\/]*)
7567   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7568   ;;
7569   *)
7570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 for as_dir in $PATH
7572 do
7573   IFS=$as_save_IFS
7574   test -z "$as_dir" && as_dir=.
7575   for ac_exec_ext in '' $ac_executable_extensions; do
7576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579     break 2
7580   fi
7581 done
7582 done
7583 IFS=$as_save_IFS
7584
7585   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7586   ;;
7587 esac
7588 fi
7589 NEATO=$ac_cv_path_NEATO
7590 if test -n "$NEATO"; then
7591   { echo "$as_me:$LINENO: result: $NEATO" >&5
7592 echo "${ECHO_T}$NEATO" >&6; }
7593 else
7594   { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7596 fi
7597
7598
7599 if test "$NEATO" != "echo neato" ; then
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define HAVE_NEATO 1
7603 _ACEOF
7604
7605     if test "$llvm_cv_os_type" = "MingW" ; then
7606     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7607   fi
7608
7609 cat >>confdefs.h <<_ACEOF
7610 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7611 _ACEOF
7612
7613 fi
7614 # Extract the first word of "twopi", so it can be a program name with args.
7615 set dummy twopi; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_TWOPI+set}" = set; then
7619   echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621   case $TWOPI in
7622   [\\/]* | ?:[\\/]*)
7623   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7624   ;;
7625   *)
7626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631   for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638 done
7639 IFS=$as_save_IFS
7640
7641   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7642   ;;
7643 esac
7644 fi
7645 TWOPI=$ac_cv_path_TWOPI
7646 if test -n "$TWOPI"; then
7647   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7648 echo "${ECHO_T}$TWOPI" >&6; }
7649 else
7650   { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7652 fi
7653
7654
7655 if test "$TWOPI" != "echo twopi" ; then
7656
7657 cat >>confdefs.h <<\_ACEOF
7658 #define HAVE_TWOPI 1
7659 _ACEOF
7660
7661     if test "$llvm_cv_os_type" = "MingW" ; then
7662     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7663   fi
7664
7665 cat >>confdefs.h <<_ACEOF
7666 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7667 _ACEOF
7668
7669 fi
7670 # Extract the first word of "circo", so it can be a program name with args.
7671 set dummy circo; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_CIRCO+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   case $CIRCO in
7678   [\\/]* | ?:[\\/]*)
7679   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7680   ;;
7681   *)
7682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695 IFS=$as_save_IFS
7696
7697   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7698   ;;
7699 esac
7700 fi
7701 CIRCO=$ac_cv_path_CIRCO
7702 if test -n "$CIRCO"; then
7703   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7704 echo "${ECHO_T}$CIRCO" >&6; }
7705 else
7706   { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7708 fi
7709
7710
7711 if test "$CIRCO" != "echo circo" ; then
7712
7713 cat >>confdefs.h <<\_ACEOF
7714 #define HAVE_CIRCO 1
7715 _ACEOF
7716
7717     if test "$llvm_cv_os_type" = "MingW" ; then
7718     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7719   fi
7720
7721 cat >>confdefs.h <<_ACEOF
7722 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7723 _ACEOF
7724
7725 fi
7726 for ac_prog in gv gsview32
7727 do
7728   # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_GV+set}" = set; then
7733   echo $ECHO_N "(cached) $ECHO_C" >&6
7734 else
7735   case $GV in
7736   [\\/]* | ?:[\\/]*)
7737   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7738   ;;
7739   *)
7740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745   for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755   ;;
7756 esac
7757 fi
7758 GV=$ac_cv_path_GV
7759 if test -n "$GV"; then
7760   { echo "$as_me:$LINENO: result: $GV" >&5
7761 echo "${ECHO_T}$GV" >&6; }
7762 else
7763   { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7765 fi
7766
7767
7768   test -n "$GV" && break
7769 done
7770 test -n "$GV" || GV="echo gv"
7771
7772 if test "$GV" != "echo gv" ; then
7773
7774 cat >>confdefs.h <<\_ACEOF
7775 #define HAVE_GV 1
7776 _ACEOF
7777
7778     if test "$llvm_cv_os_type" = "MingW" ; then
7779     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7780   fi
7781
7782 cat >>confdefs.h <<_ACEOF
7783 #define LLVM_PATH_GV "$GV${EXEEXT}"
7784 _ACEOF
7785
7786 fi
7787 # Extract the first word of "dotty", so it can be a program name with args.
7788 set dummy dotty; ac_word=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_DOTTY+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   case $DOTTY in
7795   [\\/]* | ?:[\\/]*)
7796   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7797   ;;
7798   *)
7799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802   IFS=$as_save_IFS
7803   test -z "$as_dir" && as_dir=.
7804   for ac_exec_ext in '' $ac_executable_extensions; do
7805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7808     break 2
7809   fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7815   ;;
7816 esac
7817 fi
7818 DOTTY=$ac_cv_path_DOTTY
7819 if test -n "$DOTTY"; then
7820   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7821 echo "${ECHO_T}$DOTTY" >&6; }
7822 else
7823   { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7825 fi
7826
7827
7828 if test "$DOTTY" != "echo dotty" ; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_DOTTY 1
7832 _ACEOF
7833
7834     if test "$llvm_cv_os_type" = "MingW" ; then
7835     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7836   fi
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7840 _ACEOF
7841
7842 fi
7843 # Extract the first word of "xdot.py", so it can be a program name with args.
7844 set dummy xdot.py; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   case $XDOT_PY in
7851   [\\/]* | ?:[\\/]*)
7852   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7853   ;;
7854   *)
7855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860   for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7871   ;;
7872 esac
7873 fi
7874 XDOT_PY=$ac_cv_path_XDOT_PY
7875 if test -n "$XDOT_PY"; then
7876   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7877 echo "${ECHO_T}$XDOT_PY" >&6; }
7878 else
7879   { echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6; }
7881 fi
7882
7883
7884 if test "$XDOT_PY" != "echo xdot.py" ; then
7885
7886 cat >>confdefs.h <<\_ACEOF
7887 #define HAVE_XDOT_PY 1
7888 _ACEOF
7889
7890     if test "$llvm_cv_os_type" = "MingW" ; then
7891     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7892   fi
7893
7894 cat >>confdefs.h <<_ACEOF
7895 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7896 _ACEOF
7897
7898 fi
7899
7900
7901 # Extract the first word of "perl", so it can be a program name with args.
7902 set dummy perl; ac_word=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_path_PERL+set}" = set; then
7906   echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908   case $PERL in
7909   [\\/]* | ?:[\\/]*)
7910   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7911   ;;
7912   *)
7913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918   for ac_exec_ext in '' $ac_executable_extensions; do
7919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7920     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7929   ;;
7930 esac
7931 fi
7932 PERL=$ac_cv_path_PERL
7933 if test -n "$PERL"; then
7934   { echo "$as_me:$LINENO: result: $PERL" >&5
7935 echo "${ECHO_T}$PERL" >&6; }
7936 else
7937   { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7939 fi
7940
7941
7942 if test "$PERL" != "none"; then
7943   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7944 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7945   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7946     { echo "$as_me:$LINENO: result: yes" >&5
7947 echo "${ECHO_T}yes" >&6; }
7948   else
7949     PERL=none
7950     { echo "$as_me:$LINENO: result: not found" >&5
7951 echo "${ECHO_T}not found" >&6; }
7952   fi
7953 fi
7954
7955
7956 if test x"$PERL" = xnone; then
7957    HAVE_PERL=0
7958
7959    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7960 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7961    { (exit 1); exit 1; }; }
7962 else
7963    HAVE_PERL=1
7964
7965 fi
7966
7967 # Find a good install program.  We prefer a C program (faster),
7968 # so one script is as good as another.  But avoid the broken or
7969 # incompatible versions:
7970 # SysV /etc/install, /usr/sbin/install
7971 # SunOS /usr/etc/install
7972 # IRIX /sbin/install
7973 # AIX /bin/install
7974 # AmigaOS /C/install, which installs bootblocks on floppy discs
7975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7978 # OS/2's system install, which has a completely different semantic
7979 # ./install, which can be erroneously created by make from ./install.sh.
7980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7982 if test -z "$INSTALL"; then
7983 if test "${ac_cv_path_install+set}" = set; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989   IFS=$as_save_IFS
7990   test -z "$as_dir" && as_dir=.
7991   # Account for people who put trailing slashes in PATH elements.
7992 case $as_dir/ in
7993   ./ | .// | /cC/* | \
7994   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7995   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7996   /usr/ucb/* ) ;;
7997   *)
7998     # OSF1 and SCO ODT 3.0 have their own names for install.
7999     # Don't use installbsd from OSF since it installs stuff as root
8000     # by default.
8001     for ac_prog in ginstall scoinst install; do
8002       for ac_exec_ext in '' $ac_executable_extensions; do
8003         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8004           if test $ac_prog = install &&
8005             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8006             # AIX install.  It has an incompatible calling convention.
8007             :
8008           elif test $ac_prog = install &&
8009             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8010             # program-specific install script used by HP pwplus--don't use.
8011             :
8012           else
8013             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8014             break 3
8015           fi
8016         fi
8017       done
8018     done
8019     ;;
8020 esac
8021 done
8022 IFS=$as_save_IFS
8023
8024
8025 fi
8026   if test "${ac_cv_path_install+set}" = set; then
8027     INSTALL=$ac_cv_path_install
8028   else
8029     # As a last resort, use the slow shell script.  Don't cache a
8030     # value for INSTALL within a source directory, because that will
8031     # break other packages using the cache if that directory is
8032     # removed, or if the value is a relative name.
8033     INSTALL=$ac_install_sh
8034   fi
8035 fi
8036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8037 echo "${ECHO_T}$INSTALL" >&6; }
8038
8039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8040 # It thinks the first close brace ends the variable substitution.
8041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8042
8043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8044
8045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8046
8047 case "$INSTALL" in
8048  [\\/$]* | ?:[\\/]* ) ;;
8049  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8050 esac
8051
8052 # Extract the first word of "bzip2", so it can be a program name with args.
8053 set dummy bzip2; ac_word=$2
8054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8056 if test "${ac_cv_path_BZIP2+set}" = set; then
8057   echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059   case $BZIP2 in
8060   [\\/]* | ?:[\\/]*)
8061   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8062   ;;
8063   *)
8064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8066 do
8067   IFS=$as_save_IFS
8068   test -z "$as_dir" && as_dir=.
8069   for ac_exec_ext in '' $ac_executable_extensions; do
8070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8071     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073     break 2
8074   fi
8075 done
8076 done
8077 IFS=$as_save_IFS
8078
8079   ;;
8080 esac
8081 fi
8082 BZIP2=$ac_cv_path_BZIP2
8083 if test -n "$BZIP2"; then
8084   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8085 echo "${ECHO_T}$BZIP2" >&6; }
8086 else
8087   { echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6; }
8089 fi
8090
8091
8092 # Extract the first word of "cat", so it can be a program name with args.
8093 set dummy cat; ac_word=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_CAT+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099   case $CAT in
8100   [\\/]* | ?:[\\/]*)
8101   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8102   ;;
8103   *)
8104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8105 for as_dir in $PATH
8106 do
8107   IFS=$as_save_IFS
8108   test -z "$as_dir" && as_dir=.
8109   for ac_exec_ext in '' $ac_executable_extensions; do
8110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113     break 2
8114   fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119   ;;
8120 esac
8121 fi
8122 CAT=$ac_cv_path_CAT
8123 if test -n "$CAT"; then
8124   { echo "$as_me:$LINENO: result: $CAT" >&5
8125 echo "${ECHO_T}$CAT" >&6; }
8126 else
8127   { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8129 fi
8130
8131
8132 # Extract the first word of "doxygen", so it can be a program name with args.
8133 set dummy doxygen; ac_word=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8137   echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139   case $DOXYGEN in
8140   [\\/]* | ?:[\\/]*)
8141   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8142   ;;
8143   *)
8144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 for as_dir in $PATH
8146 do
8147   IFS=$as_save_IFS
8148   test -z "$as_dir" && as_dir=.
8149   for ac_exec_ext in '' $ac_executable_extensions; do
8150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8151     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8153     break 2
8154   fi
8155 done
8156 done
8157 IFS=$as_save_IFS
8158
8159   ;;
8160 esac
8161 fi
8162 DOXYGEN=$ac_cv_path_DOXYGEN
8163 if test -n "$DOXYGEN"; then
8164   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8165 echo "${ECHO_T}$DOXYGEN" >&6; }
8166 else
8167   { echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6; }
8169 fi
8170
8171
8172 # Extract the first word of "groff", so it can be a program name with args.
8173 set dummy groff; ac_word=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_path_GROFF+set}" = set; then
8177   echo $ECHO_N "(cached) $ECHO_C" >&6
8178 else
8179   case $GROFF in
8180   [\\/]* | ?:[\\/]*)
8181   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8182   ;;
8183   *)
8184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8186 do
8187   IFS=$as_save_IFS
8188   test -z "$as_dir" && as_dir=.
8189   for ac_exec_ext in '' $ac_executable_extensions; do
8190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8191     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193     break 2
8194   fi
8195 done
8196 done
8197 IFS=$as_save_IFS
8198
8199   ;;
8200 esac
8201 fi
8202 GROFF=$ac_cv_path_GROFF
8203 if test -n "$GROFF"; then
8204   { echo "$as_me:$LINENO: result: $GROFF" >&5
8205 echo "${ECHO_T}$GROFF" >&6; }
8206 else
8207   { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8209 fi
8210
8211
8212 # Extract the first word of "gzip", so it can be a program name with args.
8213 set dummy gzip; ac_word=$2
8214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8216 if test "${ac_cv_path_GZIP+set}" = set; then
8217   echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219   case $GZIP in
8220   [\\/]* | ?:[\\/]*)
8221   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8222   ;;
8223   *)
8224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229   for ac_exec_ext in '' $ac_executable_extensions; do
8230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8231     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236 done
8237 IFS=$as_save_IFS
8238
8239   ;;
8240 esac
8241 fi
8242 GZIP=$ac_cv_path_GZIP
8243 if test -n "$GZIP"; then
8244   { echo "$as_me:$LINENO: result: $GZIP" >&5
8245 echo "${ECHO_T}$GZIP" >&6; }
8246 else
8247   { echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6; }
8249 fi
8250
8251
8252 # Extract the first word of "pod2html", so it can be a program name with args.
8253 set dummy pod2html; ac_word=$2
8254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8256 if test "${ac_cv_path_POD2HTML+set}" = set; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   case $POD2HTML in
8260   [\\/]* | ?:[\\/]*)
8261   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8262   ;;
8263   *)
8264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267   IFS=$as_save_IFS
8268   test -z "$as_dir" && as_dir=.
8269   for ac_exec_ext in '' $ac_executable_extensions; do
8270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8271     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8273     break 2
8274   fi
8275 done
8276 done
8277 IFS=$as_save_IFS
8278
8279   ;;
8280 esac
8281 fi
8282 POD2HTML=$ac_cv_path_POD2HTML
8283 if test -n "$POD2HTML"; then
8284   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8285 echo "${ECHO_T}$POD2HTML" >&6; }
8286 else
8287   { echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6; }
8289 fi
8290
8291
8292 # Extract the first word of "pod2man", so it can be a program name with args.
8293 set dummy pod2man; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_POD2MAN+set}" = set; then
8297   echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299   case $POD2MAN in
8300   [\\/]* | ?:[\\/]*)
8301   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8302   ;;
8303   *)
8304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309   for ac_exec_ext in '' $ac_executable_extensions; do
8310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319   ;;
8320 esac
8321 fi
8322 POD2MAN=$ac_cv_path_POD2MAN
8323 if test -n "$POD2MAN"; then
8324   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8325 echo "${ECHO_T}$POD2MAN" >&6; }
8326 else
8327   { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8329 fi
8330
8331
8332 # Extract the first word of "pdfroff", so it can be a program name with args.
8333 set dummy pdfroff; ac_word=$2
8334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336 if test "${ac_cv_path_PDFROFF+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   case $PDFROFF in
8340   [\\/]* | ?:[\\/]*)
8341   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8342   ;;
8343   *)
8344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349   for ac_exec_ext in '' $ac_executable_extensions; do
8350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8351     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356 done
8357 IFS=$as_save_IFS
8358
8359   ;;
8360 esac
8361 fi
8362 PDFROFF=$ac_cv_path_PDFROFF
8363 if test -n "$PDFROFF"; then
8364   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8365 echo "${ECHO_T}$PDFROFF" >&6; }
8366 else
8367   { echo "$as_me:$LINENO: result: no" >&5
8368 echo "${ECHO_T}no" >&6; }
8369 fi
8370
8371
8372 # Extract the first word of "runtest", so it can be a program name with args.
8373 set dummy runtest; ac_word=$2
8374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8376 if test "${ac_cv_path_RUNTEST+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   case $RUNTEST in
8380   [\\/]* | ?:[\\/]*)
8381   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8382   ;;
8383   *)
8384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387   IFS=$as_save_IFS
8388   test -z "$as_dir" && as_dir=.
8389   for ac_exec_ext in '' $ac_executable_extensions; do
8390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8391     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8393     break 2
8394   fi
8395 done
8396 done
8397 IFS=$as_save_IFS
8398
8399   ;;
8400 esac
8401 fi
8402 RUNTEST=$ac_cv_path_RUNTEST
8403 if test -n "$RUNTEST"; then
8404   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8405 echo "${ECHO_T}$RUNTEST" >&6; }
8406 else
8407   { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8409 fi
8410
8411
8412
8413 no_itcl=true
8414 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8415 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8416
8417 # Check whether --with-tclinclude was given.
8418 if test "${with_tclinclude+set}" = set; then
8419   withval=$with_tclinclude; with_tclinclude=${withval}
8420 else
8421   with_tclinclude=''
8422 fi
8423
8424 if test "${ac_cv_path_tclsh+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427
8428 if test x"${with_tclinclude}" != x ; then
8429   if test -f ${with_tclinclude}/tclsh ; then
8430     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8431   elif test -f ${with_tclinclude}/src/tclsh ; then
8432     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8433   else
8434     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8435 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8436    { (exit 1); exit 1; }; }
8437   fi
8438 fi
8439 fi
8440
8441
8442 if test x"${ac_cv_path_tclsh}" = x ; then
8443   { echo "$as_me:$LINENO: result: none" >&5
8444 echo "${ECHO_T}none" >&6; }
8445   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
8446 do
8447   # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy $ac_prog; ac_word=$2
8449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451 if test "${ac_cv_path_TCLSH+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   case $TCLSH in
8455   [\\/]* | ?:[\\/]*)
8456   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8457   ;;
8458   *)
8459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8461 do
8462   IFS=$as_save_IFS
8463   test -z "$as_dir" && as_dir=.
8464   for ac_exec_ext in '' $ac_executable_extensions; do
8465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8466     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8468     break 2
8469   fi
8470 done
8471 done
8472 IFS=$as_save_IFS
8473
8474   ;;
8475 esac
8476 fi
8477 TCLSH=$ac_cv_path_TCLSH
8478 if test -n "$TCLSH"; then
8479   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8480 echo "${ECHO_T}$TCLSH" >&6; }
8481 else
8482   { echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6; }
8484 fi
8485
8486
8487   test -n "$TCLSH" && break
8488 done
8489
8490   if test x"${TCLSH}" = x ; then
8491     ac_cv_path_tclsh='';
8492   else
8493     ac_cv_path_tclsh="${TCLSH}";
8494   fi
8495 else
8496   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8497 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8498   TCLSH="${ac_cv_path_tclsh}"
8499
8500 fi
8501
8502 # Extract the first word of "zip", so it can be a program name with args.
8503 set dummy zip; ac_word=$2
8504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8506 if test "${ac_cv_path_ZIP+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   case $ZIP in
8510   [\\/]* | ?:[\\/]*)
8511   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8512   ;;
8513   *)
8514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519   for ac_exec_ext in '' $ac_executable_extensions; do
8520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8521     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526 done
8527 IFS=$as_save_IFS
8528
8529   ;;
8530 esac
8531 fi
8532 ZIP=$ac_cv_path_ZIP
8533 if test -n "$ZIP"; then
8534   { echo "$as_me:$LINENO: result: $ZIP" >&5
8535 echo "${ECHO_T}$ZIP" >&6; }
8536 else
8537   { echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6; }
8539 fi
8540
8541
8542 for ac_prog in ocamlc
8543 do
8544   # Extract the first word of "$ac_prog", so it can be a program name with args.
8545 set dummy $ac_prog; ac_word=$2
8546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8548 if test "${ac_cv_path_OCAMLC+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   case $OCAMLC in
8552   [\\/]* | ?:[\\/]*)
8553   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8554   ;;
8555   *)
8556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559   IFS=$as_save_IFS
8560   test -z "$as_dir" && as_dir=.
8561   for ac_exec_ext in '' $ac_executable_extensions; do
8562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8563     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565     break 2
8566   fi
8567 done
8568 done
8569 IFS=$as_save_IFS
8570
8571   ;;
8572 esac
8573 fi
8574 OCAMLC=$ac_cv_path_OCAMLC
8575 if test -n "$OCAMLC"; then
8576   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8577 echo "${ECHO_T}$OCAMLC" >&6; }
8578 else
8579   { echo "$as_me:$LINENO: result: no" >&5
8580 echo "${ECHO_T}no" >&6; }
8581 fi
8582
8583
8584   test -n "$OCAMLC" && break
8585 done
8586
8587 for ac_prog in ocamlopt
8588 do
8589   # Extract the first word of "$ac_prog", so it can be a program name with args.
8590 set dummy $ac_prog; ac_word=$2
8591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   case $OCAMLOPT in
8597   [\\/]* | ?:[\\/]*)
8598   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8599   ;;
8600   *)
8601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 for as_dir in $PATH
8603 do
8604   IFS=$as_save_IFS
8605   test -z "$as_dir" && as_dir=.
8606   for ac_exec_ext in '' $ac_executable_extensions; do
8607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8608     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610     break 2
8611   fi
8612 done
8613 done
8614 IFS=$as_save_IFS
8615
8616   ;;
8617 esac
8618 fi
8619 OCAMLOPT=$ac_cv_path_OCAMLOPT
8620 if test -n "$OCAMLOPT"; then
8621   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8622 echo "${ECHO_T}$OCAMLOPT" >&6; }
8623 else
8624   { echo "$as_me:$LINENO: result: no" >&5
8625 echo "${ECHO_T}no" >&6; }
8626 fi
8627
8628
8629   test -n "$OCAMLOPT" && break
8630 done
8631
8632 for ac_prog in ocamldep
8633 do
8634   # Extract the first word of "$ac_prog", so it can be a program name with args.
8635 set dummy $ac_prog; ac_word=$2
8636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8639   echo $ECHO_N "(cached) $ECHO_C" >&6
8640 else
8641   case $OCAMLDEP in
8642   [\\/]* | ?:[\\/]*)
8643   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8644   ;;
8645   *)
8646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8648 do
8649   IFS=$as_save_IFS
8650   test -z "$as_dir" && as_dir=.
8651   for ac_exec_ext in '' $ac_executable_extensions; do
8652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8655     break 2
8656   fi
8657 done
8658 done
8659 IFS=$as_save_IFS
8660
8661   ;;
8662 esac
8663 fi
8664 OCAMLDEP=$ac_cv_path_OCAMLDEP
8665 if test -n "$OCAMLDEP"; then
8666   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8667 echo "${ECHO_T}$OCAMLDEP" >&6; }
8668 else
8669   { echo "$as_me:$LINENO: result: no" >&5
8670 echo "${ECHO_T}no" >&6; }
8671 fi
8672
8673
8674   test -n "$OCAMLDEP" && break
8675 done
8676
8677 for ac_prog in ocamldoc
8678 do
8679   # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   case $OCAMLDOC in
8687   [\\/]* | ?:[\\/]*)
8688   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8689   ;;
8690   *)
8691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8693 do
8694   IFS=$as_save_IFS
8695   test -z "$as_dir" && as_dir=.
8696   for ac_exec_ext in '' $ac_executable_extensions; do
8697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8698     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8700     break 2
8701   fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706   ;;
8707 esac
8708 fi
8709 OCAMLDOC=$ac_cv_path_OCAMLDOC
8710 if test -n "$OCAMLDOC"; then
8711   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8712 echo "${ECHO_T}$OCAMLDOC" >&6; }
8713 else
8714   { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8716 fi
8717
8718
8719   test -n "$OCAMLDOC" && break
8720 done
8721
8722 for ac_prog in gas as
8723 do
8724   # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728 if test "${ac_cv_path_GAS+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   case $GAS in
8732   [\\/]* | ?:[\\/]*)
8733   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8734   ;;
8735   *)
8736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741   for ac_exec_ext in '' $ac_executable_extensions; do
8742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8743     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748 done
8749 IFS=$as_save_IFS
8750
8751   ;;
8752 esac
8753 fi
8754 GAS=$ac_cv_path_GAS
8755 if test -n "$GAS"; then
8756   { echo "$as_me:$LINENO: result: $GAS" >&5
8757 echo "${ECHO_T}$GAS" >&6; }
8758 else
8759   { echo "$as_me:$LINENO: result: no" >&5
8760 echo "${ECHO_T}no" >&6; }
8761 fi
8762
8763
8764   test -n "$GAS" && break
8765 done
8766
8767
8768 { echo "$as_me:$LINENO: checking for linker version" >&5
8769 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8770 if test "${llvm_cv_link_version+set}" = set; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773
8774    version_string="$(ld -v 2>&1 | head -1)"
8775
8776    # Check for ld64.
8777    if (echo "$version_string" | grep -q "ld64"); then
8778      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8779    else
8780      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8781    fi
8782
8783 fi
8784 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8785 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8786
8787 cat >>confdefs.h <<_ACEOF
8788 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8789 _ACEOF
8790
8791
8792
8793 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8794 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8795 if test "${llvm_cv_link_use_r+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798    ac_ext=c
8799 ac_cpp='$CPP $CPPFLAGS'
8800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8803
8804   oldcflags="$CFLAGS"
8805   CFLAGS="$CFLAGS -Wl,-R."
8806   cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813 int
8814 main ()
8815 {
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (ac_try="$ac_link"
8823 case "(($ac_try" in
8824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825   *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828   (eval "$ac_link") 2>conftest.er1
8829   ac_status=$?
8830   grep -v '^ *+' conftest.er1 >conftest.err
8831   rm -f conftest.er1
8832   cat conftest.err >&5
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } &&
8835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8836   { (case "(($ac_try" in
8837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838   *) ac_try_echo=$ac_try;;
8839 esac
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841   (eval "$ac_try") 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); }; } &&
8845          { ac_try='test -s conftest$ac_exeext'
8846   { (case "(($ac_try" in
8847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848   *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851   (eval "$ac_try") 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; }; then
8855   llvm_cv_link_use_r=yes
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860         llvm_cv_link_use_r=no
8861 fi
8862
8863 rm -f core conftest.err conftest.$ac_objext \
8864       conftest$ac_exeext conftest.$ac_ext
8865   CFLAGS="$oldcflags"
8866   ac_ext=c
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873 fi
8874 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8875 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8876 if test "$llvm_cv_link_use_r" = yes ; then
8877
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_LINK_R 1
8880 _ACEOF
8881
8882   fi
8883
8884
8885 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8886 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8887 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890    ac_ext=c
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8895
8896   oldcflags="$CFLAGS"
8897   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8898   cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904
8905 int
8906 main ()
8907 {
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8915 case "(($ac_try" in
8916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917   *) ac_try_echo=$ac_try;;
8918 esac
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920   (eval "$ac_link") 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } &&
8927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8928   { (case "(($ac_try" in
8929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930   *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933   (eval "$ac_try") 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; } &&
8937          { ac_try='test -s conftest$ac_exeext'
8938   { (case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_try") 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   llvm_cv_link_use_export_dynamic=yes
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952         llvm_cv_link_use_export_dynamic=no
8953 fi
8954
8955 rm -f core conftest.err conftest.$ac_objext \
8956       conftest$ac_exeext conftest.$ac_ext
8957   CFLAGS="$oldcflags"
8958   ac_ext=c
8959 ac_cpp='$CPP $CPPFLAGS'
8960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963
8964
8965 fi
8966 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8967 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8968 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_LINK_EXPORT_DYNAMIC 1
8972 _ACEOF
8973
8974   fi
8975
8976
8977 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8978 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8979 if test "${llvm_cv_link_use_version_script+set}" = set; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982    ac_ext=c
8983 ac_cpp='$CPP $CPPFLAGS'
8984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8987
8988   oldcflags="$CFLAGS"
8989
8990   # The following code is from the autoconf manual,
8991   # "11.13: Limitations of Usual Tools".
8992   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8993   # Use mktemp if possible; otherwise fall back on mkdir,
8994   # with $RANDOM to make collisions less likely.
8995   : ${TMPDIR=/tmp}
8996   {
8997     tmp=`
8998       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8999     ` &&
9000     test -n "$tmp" && test -d "$tmp"
9001   } || {
9002     tmp=$TMPDIR/foo$$-$RANDOM
9003     (umask 077 && mkdir "$tmp")
9004   } || exit $?
9005
9006   echo "{" > "$tmp/export.map"
9007   echo "  global: main;" >> "$tmp/export.map"
9008   echo "  local: *;" >> "$tmp/export.map"
9009   echo "};" >> "$tmp/export.map"
9010
9011   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9012   cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h.  */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h.  */
9018
9019 int
9020 main ()
9021 {
9022
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9029 case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034   (eval "$ac_link") 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042   { (case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_try") 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; } &&
9051          { ac_try='test -s conftest$ac_exeext'
9052   { (case "(($ac_try" in
9053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054   *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057   (eval "$ac_try") 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   llvm_cv_link_use_version_script=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066         llvm_cv_link_use_version_script=no
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext \
9070       conftest$ac_exeext conftest.$ac_ext
9071   rm "$tmp/export.map"
9072   rmdir "$tmp"
9073   CFLAGS="$oldcflags"
9074   ac_ext=c
9075 ac_cpp='$CPP $CPPFLAGS'
9076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079
9080
9081 fi
9082 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9083 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9084 if test "$llvm_cv_link_use_version_script" = yes ; then
9085   HAVE_LINK_VERSION_SCRIPT=1
9086
9087   fi
9088
9089
9090
9091
9092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9094 if test "${ac_cv_c_const+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h.  */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h.  */
9103
9104 int
9105 main ()
9106 {
9107 /* FIXME: Include the comments suggested by Paul. */
9108 #ifndef __cplusplus
9109   /* Ultrix mips cc rejects this.  */
9110   typedef int charset[2];
9111   const charset x;
9112   /* SunOS 4.1.1 cc rejects this.  */
9113   char const *const *ccp;
9114   char **p;
9115   /* NEC SVR4.0.2 mips cc rejects this.  */
9116   struct point {int x, y;};
9117   static struct point const zero = {0,0};
9118   /* AIX XL C 1.02.0.0 rejects this.
9119      It does not let you subtract one const X* pointer from another in
9120      an arm of an if-expression whose if-part is not a constant
9121      expression */
9122   const char *g = "string";
9123   ccp = &g + (g ? g-g : 0);
9124   /* HPUX 7.0 cc rejects these. */
9125   ++ccp;
9126   p = (char**) ccp;
9127   ccp = (char const *const *) p;
9128   { /* SCO 3.2v4 cc rejects this.  */
9129     char *t;
9130     char const *s = 0 ? (char *) 0 : (char const *) 0;
9131
9132     *t++ = 0;
9133     if (s) return 0;
9134   }
9135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9136     int x[] = {25, 17};
9137     const int *foo = &x[0];
9138     ++foo;
9139   }
9140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9141     typedef const int *iptr;
9142     iptr p = 0;
9143     ++p;
9144   }
9145   { /* AIX XL C 1.02.0.0 rejects this saying
9146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9147     struct s { int j; const int *ap[3]; };
9148     struct s *b; b->j = 5;
9149   }
9150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9151     const int foo = 10;
9152     if (!foo) return 0;
9153   }
9154   return !x[0] && !zero.x;
9155 #endif
9156
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165   *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168   (eval "$ac_compile") 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } &&
9175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176   { (case "(($ac_try" in
9177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178   *) ac_try_echo=$ac_try;;
9179 esac
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181   (eval "$ac_try") 2>&5
9182   ac_status=$?
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); }; } &&
9185          { ac_try='test -s conftest.$ac_objext'
9186   { (case "(($ac_try" in
9187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188   *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191   (eval "$ac_try") 2>&5
9192   ac_status=$?
9193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194   (exit $ac_status); }; }; then
9195   ac_cv_c_const=yes
9196 else
9197   echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9199
9200         ac_cv_c_const=no
9201 fi
9202
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9206 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9207 if test $ac_cv_c_const = no; then
9208
9209 cat >>confdefs.h <<\_ACEOF
9210 #define const
9211 _ACEOF
9212
9213 fi
9214
9215
9216
9217
9218
9219
9220 ac_header_dirent=no
9221 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9222   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9223 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9224 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 #include <sys/types.h>
9235 #include <$ac_hdr>
9236
9237 int
9238 main ()
9239 {
9240 if ((DIR *) 0)
9241 return 0;
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9248 case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_compile") 2>conftest.er1
9254   ac_status=$?
9255   grep -v '^ *+' conftest.er1 >conftest.err
9256   rm -f conftest.er1
9257   cat conftest.err >&5
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } &&
9260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261   { (case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_try") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; } &&
9270          { ac_try='test -s conftest.$ac_objext'
9271   { (case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_try") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; }; then
9280   eval "$as_ac_Header=yes"
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285         eval "$as_ac_Header=no"
9286 fi
9287
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 ac_res=`eval echo '${'$as_ac_Header'}'`
9291                { echo "$as_me:$LINENO: result: $ac_res" >&5
9292 echo "${ECHO_T}$ac_res" >&6; }
9293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9294   cat >>confdefs.h <<_ACEOF
9295 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9296 _ACEOF
9297
9298 ac_header_dirent=$ac_hdr; break
9299 fi
9300
9301 done
9302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9303 if test $ac_header_dirent = dirent.h; then
9304   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9306 if test "${ac_cv_search_opendir+set}" = set; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 else
9309   ac_func_search_save_LIBS=$LIBS
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316
9317 /* Override any GCC internal prototype to avoid an error.
9318    Use char because int might match the return type of a GCC
9319    builtin and then its argument prototype would still apply.  */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char opendir ();
9324 int
9325 main ()
9326 {
9327 return opendir ();
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 for ac_lib in '' dir; do
9333   if test -z "$ac_lib"; then
9334     ac_res="none required"
9335   else
9336     ac_res=-l$ac_lib
9337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9338   fi
9339   rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9341 case "(($ac_try" in
9342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343   *) ac_try_echo=$ac_try;;
9344 esac
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346   (eval "$ac_link") 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354   { (case "(($ac_try" in
9355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9356   *) ac_try_echo=$ac_try;;
9357 esac
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359   (eval "$ac_try") 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); }; } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (case "(($ac_try" in
9365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366   *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369   (eval "$ac_try") 2>&5
9370   ac_status=$?
9371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372   (exit $ac_status); }; }; then
9373   ac_cv_search_opendir=$ac_res
9374 else
9375   echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9377
9378
9379 fi
9380
9381 rm -f core conftest.err conftest.$ac_objext \
9382       conftest$ac_exeext
9383   if test "${ac_cv_search_opendir+set}" = set; then
9384   break
9385 fi
9386 done
9387 if test "${ac_cv_search_opendir+set}" = set; then
9388   :
9389 else
9390   ac_cv_search_opendir=no
9391 fi
9392 rm conftest.$ac_ext
9393 LIBS=$ac_func_search_save_LIBS
9394 fi
9395 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9396 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9397 ac_res=$ac_cv_search_opendir
9398 if test "$ac_res" != no; then
9399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9400
9401 fi
9402
9403 else
9404   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9406 if test "${ac_cv_search_opendir+set}" = set; then
9407   echo $ECHO_N "(cached) $ECHO_C" >&6
9408 else
9409   ac_func_search_save_LIBS=$LIBS
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h.  */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h.  */
9416
9417 /* Override any GCC internal prototype to avoid an error.
9418    Use char because int might match the return type of a GCC
9419    builtin and then its argument prototype would still apply.  */
9420 #ifdef __cplusplus
9421 extern "C"
9422 #endif
9423 char opendir ();
9424 int
9425 main ()
9426 {
9427 return opendir ();
9428   ;
9429   return 0;
9430 }
9431 _ACEOF
9432 for ac_lib in '' x; do
9433   if test -z "$ac_lib"; then
9434     ac_res="none required"
9435   else
9436     ac_res=-l$ac_lib
9437     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9438   fi
9439   rm -f conftest.$ac_objext conftest$ac_exeext
9440 if { (ac_try="$ac_link"
9441 case "(($ac_try" in
9442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443   *) ac_try_echo=$ac_try;;
9444 esac
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446   (eval "$ac_link") 2>conftest.er1
9447   ac_status=$?
9448   grep -v '^ *+' conftest.er1 >conftest.err
9449   rm -f conftest.er1
9450   cat conftest.err >&5
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } &&
9453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9454   { (case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_try") 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469   (eval "$ac_try") 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); }; }; then
9473   ac_cv_search_opendir=$ac_res
9474 else
9475   echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
9479 fi
9480
9481 rm -f core conftest.err conftest.$ac_objext \
9482       conftest$ac_exeext
9483   if test "${ac_cv_search_opendir+set}" = set; then
9484   break
9485 fi
9486 done
9487 if test "${ac_cv_search_opendir+set}" = set; then
9488   :
9489 else
9490   ac_cv_search_opendir=no
9491 fi
9492 rm conftest.$ac_ext
9493 LIBS=$ac_func_search_save_LIBS
9494 fi
9495 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9496 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9497 ac_res=$ac_cv_search_opendir
9498 if test "$ac_res" != no; then
9499   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9500
9501 fi
9502
9503 fi
9504
9505
9506 for ac_header in dlfcn.h
9507 do
9508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9510   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513   echo $ECHO_N "(cached) $ECHO_C" >&6
9514 fi
9515 ac_res=`eval echo '${'$as_ac_Header'}'`
9516                { echo "$as_me:$LINENO: result: $ac_res" >&5
9517 echo "${ECHO_T}$ac_res" >&6; }
9518 else
9519   # Is the header compilable?
9520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528 $ac_includes_default
9529 #include <$ac_header>
9530 _ACEOF
9531 rm -f conftest.$ac_objext
9532 if { (ac_try="$ac_compile"
9533 case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538   (eval "$ac_compile") 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9546   { (case "(($ac_try" in
9547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548   *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551   (eval "$ac_try") 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest.$ac_objext'
9556   { (case "(($ac_try" in
9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558   *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561   (eval "$ac_try") 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; }; then
9565   ac_header_compiler=yes
9566 else
9567   echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9569
9570         ac_header_compiler=no
9571 fi
9572
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6; }
9576
9577 # Is the header present?
9578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h.  */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h.  */
9586 #include <$ac_header>
9587 _ACEOF
9588 if { (ac_try="$ac_cpp conftest.$ac_ext"
9589 case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595   ac_status=$?
9596   grep -v '^ *+' conftest.er1 >conftest.err
9597   rm -f conftest.er1
9598   cat conftest.err >&5
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); } >/dev/null; then
9601   if test -s conftest.err; then
9602     ac_cpp_err=$ac_c_preproc_warn_flag
9603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9604   else
9605     ac_cpp_err=
9606   fi
9607 else
9608   ac_cpp_err=yes
9609 fi
9610 if test -z "$ac_cpp_err"; then
9611   ac_header_preproc=yes
9612 else
9613   echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9615
9616   ac_header_preproc=no
9617 fi
9618
9619 rm -f conftest.err conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9621 echo "${ECHO_T}$ac_header_preproc" >&6; }
9622
9623 # So?  What about this header?
9624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9625   yes:no: )
9626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9630     ac_header_preproc=yes
9631     ;;
9632   no:yes:* )
9633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9645     ( cat <<\_ASBOX
9646 ## ----------------------------------- ##
9647 ## Report this to llvmbugs@cs.uiuc.edu ##
9648 ## ----------------------------------- ##
9649 _ASBOX
9650      ) | sed "s/^/$as_me: WARNING:     /" >&2
9651     ;;
9652 esac
9653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658   eval "$as_ac_Header=\$ac_header_preproc"
9659 fi
9660 ac_res=`eval echo '${'$as_ac_Header'}'`
9661                { echo "$as_me:$LINENO: result: $ac_res" >&5
9662 echo "${ECHO_T}$ac_res" >&6; }
9663
9664 fi
9665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9666   cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9668 _ACEOF
9669
9670 fi
9671
9672 done
9673
9674 # Check whether --enable-ltdl-install was given.
9675 if test "${enable_ltdl_install+set}" = set; then
9676   enableval=$enable_ltdl_install;
9677 fi
9678
9679
9680
9681
9682 if test x"${enable_ltdl_install-no}" != xno; then
9683   INSTALL_LTDL_TRUE=
9684   INSTALL_LTDL_FALSE='#'
9685 else
9686   INSTALL_LTDL_TRUE='#'
9687   INSTALL_LTDL_FALSE=
9688 fi
9689
9690
9691
9692 if test x"${enable_ltdl_convenience-no}" != xno; then
9693   CONVENIENCE_LTDL_TRUE=
9694   CONVENIENCE_LTDL_FALSE='#'
9695 else
9696   CONVENIENCE_LTDL_TRUE='#'
9697   CONVENIENCE_LTDL_FALSE=
9698 fi
9699
9700
9701 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9702 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9703 library_names_spec=
9704 libname_spec='lib$name'
9705 soname_spec=
9706 shrext_cmds=".so"
9707 postinstall_cmds=
9708 postuninstall_cmds=
9709 finish_cmds=
9710 finish_eval=
9711 shlibpath_var=
9712 shlibpath_overrides_runpath=unknown
9713 version_type=none
9714 dynamic_linker="$host_os ld.so"
9715 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9716 if test "$GCC" = yes; then
9717   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9718   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9719     # if the path contains ";" then we assume it to be the separator
9720     # otherwise default to the standard path separator (i.e. ":") - it is
9721     # assumed that no part of a normal pathname contains ";" but that should
9722     # okay in the real world where ";" in dirpaths is itself problematic.
9723     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9724   else
9725     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9726   fi
9727 else
9728   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9729 fi
9730 need_lib_prefix=unknown
9731 hardcode_into_libs=no
9732
9733 # when you set need_version to no, make sure it does not cause -set_version
9734 # flags to be left without arguments
9735 need_version=unknown
9736
9737 case $host_os in
9738 aix3*)
9739   version_type=linux
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9741   shlibpath_var=LIBPATH
9742
9743   # AIX 3 has no versioning support, so we append a major version to the name.
9744   soname_spec='${libname}${release}${shared_ext}$major'
9745   ;;
9746
9747 aix4* | aix5*)
9748   version_type=linux
9749   need_lib_prefix=no
9750   need_version=no
9751   hardcode_into_libs=yes
9752   if test "$host_cpu" = ia64; then
9753     # AIX 5 supports IA64
9754     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9755     shlibpath_var=LD_LIBRARY_PATH
9756   else
9757     # With GCC up to 2.95.x, collect2 would create an import file
9758     # for dependence libraries.  The import file would start with
9759     # the line `#! .'.  This would cause the generated library to
9760     # depend on `.', always an invalid library.  This was fixed in
9761     # development snapshots of GCC prior to 3.0.
9762     case $host_os in
9763       aix4 | aix4.[01] | aix4.[01].*)
9764       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9765            echo ' yes '
9766            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9767         :
9768       else
9769         can_build_shared=no
9770       fi
9771       ;;
9772     esac
9773     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9774     # soname into executable. Probably we can add versioning support to
9775     # collect2, so additional links can be useful in future.
9776     if test "$aix_use_runtimelinking" = yes; then
9777       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9778       # instead of lib<name>.a to let people know that these are not
9779       # typical AIX shared libraries.
9780       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781     else
9782       # We preserve .a as extension for shared libraries through AIX4.2
9783       # and later when we are not doing run time linking.
9784       library_names_spec='${libname}${release}.a $libname.a'
9785       soname_spec='${libname}${release}${shared_ext}$major'
9786     fi
9787     shlibpath_var=LIBPATH
9788   fi
9789   ;;
9790
9791 amigaos*)
9792   library_names_spec='$libname.ixlibrary $libname.a'
9793   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9794   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'
9795   ;;
9796
9797 beos*)
9798   library_names_spec='${libname}${shared_ext}'
9799   dynamic_linker="$host_os ld.so"
9800   shlibpath_var=LIBRARY_PATH
9801   ;;
9802
9803 bsdi[45]*)
9804   version_type=linux
9805   need_version=no
9806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807   soname_spec='${libname}${release}${shared_ext}$major'
9808   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9809   shlibpath_var=LD_LIBRARY_PATH
9810   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9811   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9812   # the default ld.so.conf also contains /usr/contrib/lib and
9813   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9814   # libtool to hard-code these into programs
9815   ;;
9816
9817 cygwin* | mingw* | pw32*)
9818   version_type=windows
9819   shrext_cmds=".dll"
9820   need_version=no
9821   need_lib_prefix=no
9822
9823   case $GCC,$host_os in
9824   yes,cygwin* | yes,mingw* | yes,pw32*)
9825     library_names_spec='$libname.dll.a'
9826     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9827     postinstall_cmds='base_file=`basename \${file}`~
9828       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9829       dldir=$destdir/`dirname \$dlpath`~
9830       test -d \$dldir || mkdir -p \$dldir~
9831       $install_prog $dir/$dlname \$dldir/$dlname~
9832       chmod a+x \$dldir/$dlname'
9833     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9834       dlpath=$dir/\$dldll~
9835        $rm \$dlpath'
9836     shlibpath_overrides_runpath=yes
9837
9838     case $host_os in
9839     cygwin*)
9840       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9841       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9843       ;;
9844     mingw*)
9845       # MinGW DLLs use traditional 'lib' prefix
9846       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9847       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9848       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9849         # It is most probably a Windows format PATH printed by
9850         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9851         # path with ; separators, and with drive letters. We can handle the
9852         # drive letters (cygwin fileutils understands them), so leave them,
9853         # especially as we might pass files found there to a mingw objdump,
9854         # which wouldn't understand a cygwinified path. Ahh.
9855         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9856       else
9857         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9858       fi
9859       ;;
9860     pw32*)
9861       # pw32 DLLs use 'pw' prefix rather than 'lib'
9862       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9863       ;;
9864     esac
9865     ;;
9866
9867   *)
9868     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9869     ;;
9870   esac
9871   dynamic_linker='Win32 ld.exe'
9872   # FIXME: first we should search . and the directory the executable is in
9873   shlibpath_var=PATH
9874   ;;
9875
9876 darwin* | rhapsody*)
9877   dynamic_linker="$host_os dyld"
9878   version_type=darwin
9879   need_lib_prefix=no
9880   need_version=no
9881   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9882   soname_spec='${libname}${release}${major}$shared_ext'
9883   shlibpath_overrides_runpath=yes
9884   shlibpath_var=DYLD_LIBRARY_PATH
9885   shrext_cmds='.dylib'
9886   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9887   if test "$GCC" = yes; then
9888     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"`
9889   else
9890     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9891   fi
9892   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9893   ;;
9894
9895 dgux*)
9896   version_type=linux
9897   need_lib_prefix=no
9898   need_version=no
9899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9900   soname_spec='${libname}${release}${shared_ext}$major'
9901   shlibpath_var=LD_LIBRARY_PATH
9902   ;;
9903
9904 freebsd1*)
9905   dynamic_linker=no
9906   ;;
9907
9908 kfreebsd*-gnu)
9909   version_type=linux
9910   need_lib_prefix=no
9911   need_version=no
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913   soname_spec='${libname}${release}${shared_ext}$major'
9914   shlibpath_var=LD_LIBRARY_PATH
9915   shlibpath_overrides_runpath=no
9916   hardcode_into_libs=yes
9917   dynamic_linker='GNU ld.so'
9918   ;;
9919
9920 freebsd* | dragonfly*)
9921   # DragonFly does not have aout.  When/if they implement a new
9922   # versioning mechanism, adjust this.
9923   if test -x /usr/bin/objformat; then
9924     objformat=`/usr/bin/objformat`
9925   else
9926     case $host_os in
9927     freebsd[123]*) objformat=aout ;;
9928     *) objformat=elf ;;
9929     esac
9930   fi
9931   version_type=freebsd-$objformat
9932   case $version_type in
9933     freebsd-elf*)
9934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9935       need_version=no
9936       need_lib_prefix=no
9937       ;;
9938     freebsd-*)
9939       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9940       need_version=yes
9941       ;;
9942   esac
9943   shlibpath_var=LD_LIBRARY_PATH
9944   case $host_os in
9945   freebsd2*)
9946     shlibpath_overrides_runpath=yes
9947     ;;
9948   freebsd3.[01]* | freebsdelf3.[01]*)
9949     shlibpath_overrides_runpath=yes
9950     hardcode_into_libs=yes
9951     ;;
9952   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9953   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9954     shlibpath_overrides_runpath=no
9955     hardcode_into_libs=yes
9956     ;;
9957   freebsd*) # from 4.6 on
9958     shlibpath_overrides_runpath=yes
9959     hardcode_into_libs=yes
9960     ;;
9961   esac
9962   ;;
9963
9964 gnu*)
9965   version_type=linux
9966   need_lib_prefix=no
9967   need_version=no
9968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9969   soname_spec='${libname}${release}${shared_ext}$major'
9970   shlibpath_var=LD_LIBRARY_PATH
9971   hardcode_into_libs=yes
9972   ;;
9973
9974 hpux9* | hpux10* | hpux11*)
9975   # Give a soname corresponding to the major version so that dld.sl refuses to
9976   # link against other versions.
9977   version_type=sunos
9978   need_lib_prefix=no
9979   need_version=no
9980   case $host_cpu in
9981   ia64*)
9982     shrext_cmds='.so'
9983     hardcode_into_libs=yes
9984     dynamic_linker="$host_os dld.so"
9985     shlibpath_var=LD_LIBRARY_PATH
9986     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988     soname_spec='${libname}${release}${shared_ext}$major'
9989     if test "X$HPUX_IA64_MODE" = X32; then
9990       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9991     else
9992       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9993     fi
9994     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9995     ;;
9996    hppa*64*)
9997      shrext_cmds='.sl'
9998      hardcode_into_libs=yes
9999      dynamic_linker="$host_os dld.sl"
10000      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10001      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10002      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003      soname_spec='${libname}${release}${shared_ext}$major'
10004      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10005      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006      ;;
10007    *)
10008     shrext_cmds='.sl'
10009     dynamic_linker="$host_os dld.sl"
10010     shlibpath_var=SHLIB_PATH
10011     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013     soname_spec='${libname}${release}${shared_ext}$major'
10014     ;;
10015   esac
10016   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10017   postinstall_cmds='chmod 555 $lib'
10018   ;;
10019
10020 interix3*)
10021   version_type=linux
10022   need_lib_prefix=no
10023   need_version=no
10024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10025   soname_spec='${libname}${release}${shared_ext}$major'
10026   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10027   shlibpath_var=LD_LIBRARY_PATH
10028   shlibpath_overrides_runpath=no
10029   hardcode_into_libs=yes
10030   ;;
10031
10032 irix5* | irix6* | nonstopux*)
10033   case $host_os in
10034     nonstopux*) version_type=nonstopux ;;
10035     *)
10036         if test "$lt_cv_prog_gnu_ld" = yes; then
10037                 version_type=linux
10038         else
10039                 version_type=irix
10040         fi ;;
10041   esac
10042   need_lib_prefix=no
10043   need_version=no
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10046   case $host_os in
10047   irix5* | nonstopux*)
10048     libsuff= shlibsuff=
10049     ;;
10050   *)
10051     case $LD in # libtool.m4 will add one of these switches to LD
10052     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10053       libsuff= shlibsuff= libmagic=32-bit;;
10054     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10055       libsuff=32 shlibsuff=N32 libmagic=N32;;
10056     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10057       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10058     *) libsuff= shlibsuff= libmagic=never-match;;
10059     esac
10060     ;;
10061   esac
10062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10063   shlibpath_overrides_runpath=no
10064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10066   hardcode_into_libs=yes
10067   ;;
10068
10069 # No shared lib support for Linux oldld, aout, or coff.
10070 linux*oldld* | linux*aout* | linux*coff*)
10071   dynamic_linker=no
10072   ;;
10073
10074 # This must be Linux ELF.
10075 linux*)
10076   version_type=linux
10077   need_lib_prefix=no
10078   need_version=no
10079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080   soname_spec='${libname}${release}${shared_ext}$major'
10081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   shlibpath_overrides_runpath=no
10084   # This implies no fast_install, which is unacceptable.
10085   # Some rework will be needed to allow for fast_install
10086   # before this can be enabled.
10087   hardcode_into_libs=yes
10088
10089   # Append ld.so.conf contents to the search path
10090   if test -f /etc/ld.so.conf; then
10091     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' ' '`
10092     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10093   fi
10094
10095   # We used to test for /lib/ld.so.1 and disable shared libraries on
10096   # powerpc, because MkLinux only supported shared libraries with the
10097   # GNU dynamic linker.  Since this was broken with cross compilers,
10098   # most powerpc-linux boxes support dynamic linking these days and
10099   # people can always --disable-shared, the test was removed, and we
10100   # assume the GNU/Linux dynamic linker is in use.
10101   dynamic_linker='GNU/Linux ld.so'
10102   ;;
10103
10104 knetbsd*-gnu)
10105   version_type=linux
10106   need_lib_prefix=no
10107   need_version=no
10108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109   soname_spec='${libname}${release}${shared_ext}$major'
10110   shlibpath_var=LD_LIBRARY_PATH
10111   shlibpath_overrides_runpath=no
10112   hardcode_into_libs=yes
10113   dynamic_linker='GNU ld.so'
10114   ;;
10115
10116 netbsd*)
10117   version_type=sunos
10118   need_lib_prefix=no
10119   need_version=no
10120   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10122     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10123     dynamic_linker='NetBSD (a.out) ld.so'
10124   else
10125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126     soname_spec='${libname}${release}${shared_ext}$major'
10127     dynamic_linker='NetBSD ld.elf_so'
10128   fi
10129   shlibpath_var=LD_LIBRARY_PATH
10130   shlibpath_overrides_runpath=yes
10131   hardcode_into_libs=yes
10132   ;;
10133
10134 newsos6)
10135   version_type=linux
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137   shlibpath_var=LD_LIBRARY_PATH
10138   shlibpath_overrides_runpath=yes
10139   ;;
10140
10141 nto-qnx*)
10142   version_type=linux
10143   need_lib_prefix=no
10144   need_version=no
10145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146   soname_spec='${libname}${release}${shared_ext}$major'
10147   shlibpath_var=LD_LIBRARY_PATH
10148   shlibpath_overrides_runpath=yes
10149   ;;
10150
10151 openbsd*)
10152   version_type=sunos
10153   sys_lib_dlsearch_path_spec="/usr/lib"
10154   need_lib_prefix=no
10155   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10156   case $host_os in
10157     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10158     *)                         need_version=no  ;;
10159   esac
10160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10164     case $host_os in
10165       openbsd2.[89] | openbsd2.[89].*)
10166         shlibpath_overrides_runpath=no
10167         ;;
10168       *)
10169         shlibpath_overrides_runpath=yes
10170         ;;
10171       esac
10172   else
10173     shlibpath_overrides_runpath=yes
10174   fi
10175   ;;
10176
10177 os2*)
10178   libname_spec='$name'
10179   shrext_cmds=".dll"
10180   need_lib_prefix=no
10181   library_names_spec='$libname${shared_ext} $libname.a'
10182   dynamic_linker='OS/2 ld.exe'
10183   shlibpath_var=LIBPATH
10184   ;;
10185
10186 osf3* | osf4* | osf5*)
10187   version_type=osf
10188   need_lib_prefix=no
10189   need_version=no
10190   soname_spec='${libname}${release}${shared_ext}$major'
10191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192   shlibpath_var=LD_LIBRARY_PATH
10193   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10194   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10195   ;;
10196
10197 solaris*)
10198   version_type=linux
10199   need_lib_prefix=no
10200   need_version=no
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   shlibpath_overrides_runpath=yes
10205   hardcode_into_libs=yes
10206   # ldd complains unless libraries are executable
10207   postinstall_cmds='chmod +x $lib'
10208   ;;
10209
10210 sunos4*)
10211   version_type=sunos
10212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10214   shlibpath_var=LD_LIBRARY_PATH
10215   shlibpath_overrides_runpath=yes
10216   if test "$with_gnu_ld" = yes; then
10217     need_lib_prefix=no
10218   fi
10219   need_version=yes
10220   ;;
10221
10222 sysv4 | sysv4.3*)
10223   version_type=linux
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225   soname_spec='${libname}${release}${shared_ext}$major'
10226   shlibpath_var=LD_LIBRARY_PATH
10227   case $host_vendor in
10228     sni)
10229       shlibpath_overrides_runpath=no
10230       need_lib_prefix=no
10231       export_dynamic_flag_spec='${wl}-Blargedynsym'
10232       runpath_var=LD_RUN_PATH
10233       ;;
10234     siemens)
10235       need_lib_prefix=no
10236       ;;
10237     motorola)
10238       need_lib_prefix=no
10239       need_version=no
10240       shlibpath_overrides_runpath=no
10241       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10242       ;;
10243   esac
10244   ;;
10245
10246 sysv4*MP*)
10247   if test -d /usr/nec ;then
10248     version_type=linux
10249     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10250     soname_spec='$libname${shared_ext}.$major'
10251     shlibpath_var=LD_LIBRARY_PATH
10252   fi
10253   ;;
10254
10255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10256   version_type=freebsd-elf
10257   need_lib_prefix=no
10258   need_version=no
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260   soname_spec='${libname}${release}${shared_ext}$major'
10261   shlibpath_var=LD_LIBRARY_PATH
10262   hardcode_into_libs=yes
10263   if test "$with_gnu_ld" = yes; then
10264     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10265     shlibpath_overrides_runpath=no
10266   else
10267     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10268     shlibpath_overrides_runpath=yes
10269     case $host_os in
10270       sco3.2v5*)
10271         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10272         ;;
10273     esac
10274   fi
10275   sys_lib_dlsearch_path_spec='/usr/lib'
10276   ;;
10277
10278 uts4*)
10279   version_type=linux
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   shlibpath_var=LD_LIBRARY_PATH
10283   ;;
10284
10285 *)
10286   dynamic_linker=no
10287   ;;
10288 esac
10289 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10290 echo "${ECHO_T}$dynamic_linker" >&6; }
10291 test "$dynamic_linker" = no && can_build_shared=no
10292
10293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10294 if test "$GCC" = yes; then
10295   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10296 fi
10297
10298
10299 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10300 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10301 if test "${libltdl_cv_shlibext+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304
10305 module=yes
10306 eval libltdl_cv_shlibext=$shrext_cmds
10307
10308 fi
10309 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10310 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10311 if test -n "$libltdl_cv_shlibext"; then
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10315 _ACEOF
10316
10317 fi
10318
10319
10320 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10321 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10322 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325   libltdl_cv_shlibpath_var="$shlibpath_var"
10326 fi
10327 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10328 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10329 if test -n "$libltdl_cv_shlibpath_var"; then
10330
10331 cat >>confdefs.h <<_ACEOF
10332 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10333 _ACEOF
10334
10335 fi
10336
10337
10338 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10339 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10340 if test "${libltdl_cv_sys_search_path+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10344 fi
10345 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10346 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10347 if test -n "$libltdl_cv_sys_search_path"; then
10348   sys_search_path=
10349   for dir in $libltdl_cv_sys_search_path; do
10350     if test -z "$sys_search_path"; then
10351       sys_search_path="$dir"
10352     else
10353       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10354     fi
10355   done
10356
10357 cat >>confdefs.h <<_ACEOF
10358 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10359 _ACEOF
10360
10361 fi
10362
10363 { echo "$as_me:$LINENO: checking for objdir" >&5
10364 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10365 if test "${libltdl_cv_objdir+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   libltdl_cv_objdir="$objdir"
10369   if test -n "$objdir"; then
10370     :
10371   else
10372     rm -f .libs 2>/dev/null
10373     mkdir .libs 2>/dev/null
10374     if test -d .libs; then
10375       libltdl_cv_objdir=.libs
10376     else
10377       # MS-DOS does not allow filenames that begin with a dot.
10378       libltdl_cv_objdir=_libs
10379     fi
10380   rmdir .libs 2>/dev/null
10381   fi
10382
10383 fi
10384 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10385 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10386
10387 cat >>confdefs.h <<_ACEOF
10388 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10389 _ACEOF
10390
10391
10392
10393
10394
10395
10396 # Check for command to grab the raw symbol name followed by C symbol from nm.
10397 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402
10403 # These are sane defaults that work on at least a few old systems.
10404 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10405
10406 # Character class describing NM global symbol codes.
10407 symcode='[BCDEGRST]'
10408
10409 # Regexp to match symbols that can be accessed directly from C.
10410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10411
10412 # Transform an extracted symbol line into a proper C declaration
10413 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10414
10415 # Transform an extracted symbol line into symbol name and symbol address
10416 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'"
10417
10418 # Define system-specific variables.
10419 case $host_os in
10420 aix*)
10421   symcode='[BCDT]'
10422   ;;
10423 cygwin* | mingw* | pw32*)
10424   symcode='[ABCDGISTW]'
10425   ;;
10426 hpux*) # Its linker distinguishes data from code symbols
10427   if test "$host_cpu" = ia64; then
10428     symcode='[ABCDEGRST]'
10429   fi
10430   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431   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'"
10432   ;;
10433 linux*)
10434   if test "$host_cpu" = ia64; then
10435     symcode='[ABCDGIRSTW]'
10436     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10437     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'"
10438   fi
10439   ;;
10440 irix* | nonstopux*)
10441   symcode='[BCDEGRST]'
10442   ;;
10443 osf*)
10444   symcode='[BCDEGQRST]'
10445   ;;
10446 solaris*)
10447   symcode='[BDRT]'
10448   ;;
10449 sco3.2v5*)
10450   symcode='[DT]'
10451   ;;
10452 sysv4.2uw2*)
10453   symcode='[DT]'
10454   ;;
10455 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10456   symcode='[ABDT]'
10457   ;;
10458 sysv4)
10459   symcode='[DFNSTU]'
10460   ;;
10461 esac
10462
10463 # Handle CRLF in mingw tool chain
10464 opt_cr=
10465 case $build_os in
10466 mingw*)
10467   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10468   ;;
10469 esac
10470
10471 # If we're using GNU nm, then use its standard symbol codes.
10472 case `$NM -V 2>&1` in
10473 *GNU* | *'with BFD'*)
10474   symcode='[ABCDGIRSTW]' ;;
10475 esac
10476
10477 # Try without a prefix undercore, then with it.
10478 for ac_symprfx in "" "_"; do
10479
10480   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10481   symxfrm="\\1 $ac_symprfx\\2 \\2"
10482
10483   # Write the raw and C identifiers.
10484   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10485
10486   # Check to see that the pipe works correctly.
10487   pipe_works=no
10488
10489   rm -f conftest*
10490   cat > conftest.$ac_ext <<EOF
10491 #ifdef __cplusplus
10492 extern "C" {
10493 #endif
10494 char nm_test_var;
10495 void nm_test_func(){}
10496 #ifdef __cplusplus
10497 }
10498 #endif
10499 int main(){nm_test_var='a';nm_test_func();return(0);}
10500 EOF
10501
10502   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503   (eval $ac_compile) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; then
10507     # Now try to grab the symbols.
10508     nlist=conftest.nm
10509     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10510   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } && test -s "$nlist"; then
10514       # Try sorting and uniquifying the output.
10515       if sort "$nlist" | uniq > "$nlist"T; then
10516         mv -f "$nlist"T "$nlist"
10517       else
10518         rm -f "$nlist"T
10519       fi
10520
10521       # Make sure that we snagged all the symbols we need.
10522       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10523         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10524           cat <<EOF > conftest.$ac_ext
10525 #ifdef __cplusplus
10526 extern "C" {
10527 #endif
10528
10529 EOF
10530           # Now generate the symbol file.
10531           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10532
10533           cat <<EOF >> conftest.$ac_ext
10534 #if defined (__STDC__) && __STDC__
10535 # define lt_ptr_t void *
10536 #else
10537 # define lt_ptr_t char *
10538 # define const
10539 #endif
10540
10541 /* The mapping between symbol names and symbols. */
10542 const struct {
10543   const char *name;
10544   lt_ptr_t address;
10545 }
10546 lt_preloaded_symbols[] =
10547 {
10548 EOF
10549           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10550           cat <<\EOF >> conftest.$ac_ext
10551   {0, (lt_ptr_t) 0}
10552 };
10553
10554 #ifdef __cplusplus
10555 }
10556 #endif
10557 EOF
10558           # Now try linking the two files.
10559           mv conftest.$ac_objext conftstm.$ac_objext
10560           lt_save_LIBS="$LIBS"
10561           lt_save_CFLAGS="$CFLAGS"
10562           LIBS="conftstm.$ac_objext"
10563           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10564           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565   (eval $ac_link) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10569             pipe_works=yes
10570           fi
10571           LIBS="$lt_save_LIBS"
10572           CFLAGS="$lt_save_CFLAGS"
10573         else
10574           echo "cannot find nm_test_func in $nlist" >&5
10575         fi
10576       else
10577         echo "cannot find nm_test_var in $nlist" >&5
10578       fi
10579     else
10580       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10581     fi
10582   else
10583     echo "$progname: failed program was:" >&5
10584     cat conftest.$ac_ext >&5
10585   fi
10586   rm -f conftest* conftst*
10587
10588   # Do not use the global_symbol_pipe unless it works.
10589   if test "$pipe_works" = yes; then
10590     break
10591   else
10592     lt_cv_sys_global_symbol_pipe=
10593   fi
10594 done
10595
10596 fi
10597
10598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10599   lt_cv_sys_global_symbol_to_cdecl=
10600 fi
10601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10602   { echo "$as_me:$LINENO: result: failed" >&5
10603 echo "${ECHO_T}failed" >&6; }
10604 else
10605   { echo "$as_me:$LINENO: result: ok" >&5
10606 echo "${ECHO_T}ok" >&6; }
10607 fi
10608
10609
10610 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10611 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10612 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10616     libltdl_cv_preloaded_symbols=yes
10617   else
10618     libltdl_cv_preloaded_symbols=no
10619   fi
10620
10621 fi
10622 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10623 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10624 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_PRELOADED_SYMBOLS 1
10628 _ACEOF
10629
10630 fi
10631
10632 LIBADD_DL=
10633
10634 ac_ext=c
10635 ac_cpp='$CPP $CPPFLAGS'
10636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10639
10640
10641 { echo "$as_me:$LINENO: checking for shl_load" >&5
10642 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10643 if test "${ac_cv_func_shl_load+set}" = set; then
10644   echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646   cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10654 #define shl_load innocuous_shl_load
10655
10656 /* System header to define __stub macros and hopefully few prototypes,
10657     which can conflict with char shl_load (); below.
10658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659     <limits.h> exists even on freestanding compilers.  */
10660
10661 #ifdef __STDC__
10662 # include <limits.h>
10663 #else
10664 # include <assert.h>
10665 #endif
10666
10667 #undef shl_load
10668
10669 /* Override any GCC internal prototype to avoid an error.
10670    Use char because int might match the return type of a GCC
10671    builtin and then its argument prototype would still apply.  */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char shl_load ();
10676 /* The GNU C library defines this for functions which it implements
10677     to always fail with ENOSYS.  Some functions are actually named
10678     something starting with __ and the normal name is an alias.  */
10679 #if defined __stub_shl_load || defined __stub___shl_load
10680 choke me
10681 #endif
10682
10683 int
10684 main ()
10685 {
10686 return shl_load ();
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_link") 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10715          { ac_try='test -s conftest$ac_exeext'
10716   { (case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_try") 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_cv_func_shl_load=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_cv_func_shl_load=no
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext \
10734       conftest$ac_exeext conftest.$ac_ext
10735 fi
10736 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10737 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10738 if test $ac_cv_func_shl_load = yes; then
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define HAVE_SHL_LOAD 1
10742 _ACEOF
10743
10744 else
10745   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10746 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10748   echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750   ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-ldld  $LIBS"
10752 cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760    Use char because int might match the return type of a GCC
10761    builtin and then its argument prototype would still apply.  */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char shl_load ();
10766 int
10767 main ()
10768 {
10769 return shl_load ();
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778   *) ac_try_echo=$ac_try;;
10779 esac
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781   (eval "$ac_link") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } &&
10788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789   { (case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_try") 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest$ac_exeext'
10799   { (case "(($ac_try" in
10800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801   *) ac_try_echo=$ac_try;;
10802 esac
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804   (eval "$ac_try") 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   ac_cv_lib_dld_shl_load=yes
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813         ac_cv_lib_dld_shl_load=no
10814 fi
10815
10816 rm -f core conftest.err conftest.$ac_objext \
10817       conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10821 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10822 if test $ac_cv_lib_dld_shl_load = yes; then
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_SHL_LOAD 1
10826 _ACEOF
10827
10828         LIBADD_DL="$LIBADD_DL -ldld"
10829 else
10830   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldl  $LIBS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845    Use char because int might match the return type of a GCC
10846    builtin and then its argument prototype would still apply.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dlopen ();
10851 int
10852 main ()
10853 {
10854 return dlopen ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } &&
10873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; } &&
10883          { ac_try='test -s conftest$ac_exeext'
10884   { (case "(($ac_try" in
10885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886   *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889   (eval "$ac_try") 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); }; }; then
10893   ac_cv_lib_dl_dlopen=yes
10894 else
10895   echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898         ac_cv_lib_dl_dlopen=no
10899 fi
10900
10901 rm -f core conftest.err conftest.$ac_objext \
10902       conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10904 fi
10905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10907 if test $ac_cv_lib_dl_dlopen = yes; then
10908
10909 cat >>confdefs.h <<\_ACEOF
10910 #define HAVE_LIBDL 1
10911 _ACEOF
10912
10913                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10914 else
10915   cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #if HAVE_DLFCN_H
10922 #  include <dlfcn.h>
10923 #endif
10924
10925 int
10926 main ()
10927 {
10928 dlopen(0, 0);
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937   *) ac_try_echo=$ac_try;;
10938 esac
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940   (eval "$ac_link") 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } &&
10947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; } &&
10957          { ac_try='test -s conftest$ac_exeext'
10958   { (case "(($ac_try" in
10959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960   *) ac_try_echo=$ac_try;;
10961 esac
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963   (eval "$ac_try") 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); }; }; then
10967
10968 cat >>confdefs.h <<\_ACEOF
10969 #define HAVE_LIBDL 1
10970 _ACEOF
10971  libltdl_cv_func_dlopen="yes"
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10977 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-lsvld  $LIBS"
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dlopen ();
10997 int
10998 main ()
10999 {
11000 return dlopen ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_link") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020   { (case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_try") 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest$ac_exeext'
11030   { (case "(($ac_try" in
11031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032   *) ac_try_echo=$ac_try;;
11033 esac
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035   (eval "$ac_try") 2>&5
11036   ac_status=$?
11037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); }; }; then
11039   ac_cv_lib_svld_dlopen=yes
11040 else
11041   echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11043
11044         ac_cv_lib_svld_dlopen=no
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext \
11048       conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11050 fi
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11052 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11053 if test $ac_cv_lib_svld_dlopen = yes; then
11054
11055 cat >>confdefs.h <<\_ACEOF
11056 #define HAVE_LIBDL 1
11057 _ACEOF
11058
11059                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11060 else
11061   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11064   echo $ECHO_N "(cached) $ECHO_C" >&6
11065 else
11066   ac_check_lib_save_LIBS=$LIBS
11067 LIBS="-ldld  $LIBS"
11068 cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074
11075 /* Override any GCC internal prototype to avoid an error.
11076    Use char because int might match the return type of a GCC
11077    builtin and then its argument prototype would still apply.  */
11078 #ifdef __cplusplus
11079 extern "C"
11080 #endif
11081 char dld_link ();
11082 int
11083 main ()
11084 {
11085 return dld_link ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_link") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } &&
11104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105   { (case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_try") 2>&5
11111   ac_status=$?
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); }; } &&
11114          { ac_try='test -s conftest$ac_exeext'
11115   { (case "(($ac_try" in
11116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117   *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120   (eval "$ac_try") 2>&5
11121   ac_status=$?
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); }; }; then
11124   ac_cv_lib_dld_dld_link=yes
11125 else
11126   echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129         ac_cv_lib_dld_dld_link=no
11130 fi
11131
11132 rm -f core conftest.err conftest.$ac_objext \
11133       conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11135 fi
11136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11138 if test $ac_cv_lib_dld_dld_link = yes; then
11139
11140 cat >>confdefs.h <<\_ACEOF
11141 #define HAVE_DLD 1
11142 _ACEOF
11143
11144                 LIBADD_DL="$LIBADD_DL -ldld"
11145 else
11146   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11147 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11148 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11159 #define _dyld_func_lookup innocuous__dyld_func_lookup
11160
11161 /* System header to define __stub macros and hopefully few prototypes,
11162     which can conflict with char _dyld_func_lookup (); below.
11163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11164     <limits.h> exists even on freestanding compilers.  */
11165
11166 #ifdef __STDC__
11167 # include <limits.h>
11168 #else
11169 # include <assert.h>
11170 #endif
11171
11172 #undef _dyld_func_lookup
11173
11174 /* Override any GCC internal prototype to avoid an error.
11175    Use char because int might match the return type of a GCC
11176    builtin and then its argument prototype would still apply.  */
11177 #ifdef __cplusplus
11178 extern "C"
11179 #endif
11180 char _dyld_func_lookup ();
11181 /* The GNU C library defines this for functions which it implements
11182     to always fail with ENOSYS.  Some functions are actually named
11183     something starting with __ and the normal name is an alias.  */
11184 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11185 choke me
11186 #endif
11187
11188 int
11189 main ()
11190 {
11191 return _dyld_func_lookup ();
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext conftest$ac_exeext
11197 if { (ac_try="$ac_link"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_link") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211   { (case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_try") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest$ac_exeext'
11221   { (case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_try") 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; }; then
11230   ac_cv_func__dyld_func_lookup=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_cv_func__dyld_func_lookup=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext \
11239       conftest$ac_exeext conftest.$ac_ext
11240 fi
11241 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11242 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11243 if test $ac_cv_func__dyld_func_lookup = yes; then
11244
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_DYLD 1
11247 _ACEOF
11248
11249 fi
11250
11251
11252 fi
11253
11254
11255 fi
11256
11257
11258 fi
11259
11260 rm -f core conftest.err conftest.$ac_objext \
11261       conftest$ac_exeext conftest.$ac_ext
11262
11263 fi
11264
11265
11266 fi
11267
11268
11269 fi
11270
11271
11272 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11273 then
11274   lt_save_LIBS="$LIBS"
11275   LIBS="$LIBS $LIBADD_DL"
11276
11277 for ac_func in dlerror
11278 do
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h.  */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h.  */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11293 #define $ac_func innocuous_$ac_func
11294
11295 /* System header to define __stub macros and hopefully few prototypes,
11296     which can conflict with char $ac_func (); below.
11297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298     <limits.h> exists even on freestanding compilers.  */
11299
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11305
11306 #undef $ac_func
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309    Use char because int might match the return type of a GCC
11310    builtin and then its argument prototype would still apply.  */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316     to always fail with ENOSYS.  Some functions are actually named
11317     something starting with __ and the normal name is an alias.  */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11321
11322 int
11323 main ()
11324 {
11325 return $ac_func ();
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_link") 2>conftest.er1
11338   ac_status=$?
11339   grep -v '^ *+' conftest.er1 >conftest.err
11340   rm -f conftest.er1
11341   cat conftest.err >&5
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } &&
11344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345   { (case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_try") 2>&5
11351   ac_status=$?
11352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353   (exit $ac_status); }; } &&
11354          { ac_try='test -s conftest$ac_exeext'
11355   { (case "(($ac_try" in
11356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357   *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360   (eval "$ac_try") 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }; then
11364   eval "$as_ac_var=yes"
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369         eval "$as_ac_var=no"
11370 fi
11371
11372 rm -f core conftest.err conftest.$ac_objext \
11373       conftest$ac_exeext conftest.$ac_ext
11374 fi
11375 ac_res=`eval echo '${'$as_ac_var'}'`
11376                { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378 if test `eval echo '${'$as_ac_var'}'` = yes; then
11379   cat >>confdefs.h <<_ACEOF
11380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381 _ACEOF
11382
11383 fi
11384 done
11385
11386   LIBS="$lt_save_LIBS"
11387 fi
11388 ac_ext=c
11389 ac_cpp='$CPP $CPPFLAGS'
11390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393
11394
11395
11396 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11397 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11398 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11399   echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401   ac_cv_sys_symbol_underscore=no
11402   cat > conftest.$ac_ext <<EOF
11403 void nm_test_func(){}
11404 int main(){nm_test_func;return 0;}
11405 EOF
11406   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407   (eval $ac_compile) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; then
11411     # Now try to grab the symbols.
11412     ac_nlist=conftest.nm
11413     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11414   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); } && test -s "$ac_nlist"; then
11418       # See whether the symbols have a leading underscore.
11419       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11420         ac_cv_sys_symbol_underscore=yes
11421       else
11422         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11423           :
11424         else
11425           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11426         fi
11427       fi
11428     else
11429       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11430     fi
11431   else
11432     echo "configure: failed program was:" >&5
11433     cat conftest.c >&5
11434   fi
11435   rm -rf conftest*
11436
11437 fi
11438 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11439 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11440
11441
11442 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11443   if test x"$libltdl_cv_func_dlopen" = xyes ||
11444      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11445         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11446 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11447 if test "${libltdl_cv_need_uscore+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   libltdl_cv_need_uscore=unknown
11451           save_LIBS="$LIBS"
11452           LIBS="$LIBS $LIBADD_DL"
11453           if test "$cross_compiling" = yes; then :
11454   libltdl_cv_need_uscore=cross
11455 else
11456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457   lt_status=$lt_dlunknown
11458   cat > conftest.$ac_ext <<EOF
11459 #line 11454 "configure"
11460 #include "confdefs.h"
11461
11462 #if HAVE_DLFCN_H
11463 #include <dlfcn.h>
11464 #endif
11465
11466 #include <stdio.h>
11467
11468 #ifdef RTLD_GLOBAL
11469 #  define LT_DLGLOBAL           RTLD_GLOBAL
11470 #else
11471 #  ifdef DL_GLOBAL
11472 #    define LT_DLGLOBAL         DL_GLOBAL
11473 #  else
11474 #    define LT_DLGLOBAL         0
11475 #  endif
11476 #endif
11477
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479    find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11481 #  ifdef RTLD_LAZY
11482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11483 #  else
11484 #    ifdef DL_LAZY
11485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11486 #    else
11487 #      ifdef RTLD_NOW
11488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11489 #      else
11490 #        ifdef DL_NOW
11491 #          define LT_DLLAZY_OR_NOW      DL_NOW
11492 #        else
11493 #          define LT_DLLAZY_OR_NOW      0
11494 #        endif
11495 #      endif
11496 #    endif
11497 #  endif
11498 #endif
11499
11500 #ifdef __cplusplus
11501 extern "C" void exit (int);
11502 #endif
11503
11504 void fnord() { int i=42;}
11505 int main ()
11506 {
11507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11508   int status = $lt_dlunknown;
11509
11510   if (self)
11511     {
11512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11514       /* dlclose (self); */
11515     }
11516   else
11517     puts (dlerror ());
11518
11519     exit (status);
11520 }
11521 EOF
11522   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523   (eval $ac_link) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11527     (./conftest; exit; ) >&5 2>/dev/null
11528     lt_status=$?
11529     case x$lt_status in
11530       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11531       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11532       x$lt_dlunknown|x*)  ;;
11533     esac
11534   else :
11535     # compilation failed
11536
11537   fi
11538 fi
11539 rm -fr conftest*
11540
11541           LIBS="$save_LIBS"
11542
11543 fi
11544 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11545 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11546   fi
11547 fi
11548
11549 if test x"$libltdl_cv_need_uscore" = xyes; then
11550
11551 cat >>confdefs.h <<\_ACEOF
11552 #define NEED_USCORE 1
11553 _ACEOF
11554
11555 fi
11556
11557
11558 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11559 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11560 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   # PORTME does your system automatically load deplibs for dlopen?
11564   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11565   # For now, we just catch OSes we know something about -- in the
11566   # future, we'll try test this programmatically.
11567   libltdl_cv_sys_dlopen_deplibs=unknown
11568   case "$host_os" in
11569   aix3*|aix4.1.*|aix4.2.*)
11570     # Unknown whether this is true for these versions of AIX, but
11571     # we want this `case' here to explicitly catch those versions.
11572     libltdl_cv_sys_dlopen_deplibs=unknown
11573     ;;
11574   aix[45]*)
11575     libltdl_cv_sys_dlopen_deplibs=yes
11576     ;;
11577   darwin*)
11578     # Assuming the user has installed a libdl from somewhere, this is true
11579     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11580     libltdl_cv_sys_dlopen_deplibs=yes
11581     ;;
11582   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11583     # GNU and its variants, using gnu ld.so (Glibc)
11584     libltdl_cv_sys_dlopen_deplibs=yes
11585     ;;
11586   hpux10*|hpux11*)
11587     libltdl_cv_sys_dlopen_deplibs=yes
11588     ;;
11589   interix*)
11590     libltdl_cv_sys_dlopen_deplibs=yes
11591     ;;
11592   irix[12345]*|irix6.[01]*)
11593     # Catch all versions of IRIX before 6.2, and indicate that we don't
11594     # know how it worked for any of those versions.
11595     libltdl_cv_sys_dlopen_deplibs=unknown
11596     ;;
11597   irix*)
11598     # The case above catches anything before 6.2, and it's known that
11599     # at 6.2 and later dlopen does load deplibs.
11600     libltdl_cv_sys_dlopen_deplibs=yes
11601     ;;
11602   netbsd*)
11603     libltdl_cv_sys_dlopen_deplibs=yes
11604     ;;
11605   openbsd*)
11606     libltdl_cv_sys_dlopen_deplibs=yes
11607     ;;
11608   osf[1234]*)
11609     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11610     # it did *not* use an RPATH in a shared library to find objects the
11611     # library depends on, so we explictly say `no'.
11612     libltdl_cv_sys_dlopen_deplibs=no
11613     ;;
11614   osf5.0|osf5.0a|osf5.1)
11615     # dlopen *does* load deplibs and with the right loader patch applied
11616     # it even uses RPATH in a shared library to search for shared objects
11617     # that the library depends on, but there's no easy way to know if that
11618     # patch is installed.  Since this is the case, all we can really
11619     # say is unknown -- it depends on the patch being installed.  If
11620     # it is, this changes to `yes'.  Without it, it would be `no'.
11621     libltdl_cv_sys_dlopen_deplibs=unknown
11622     ;;
11623   osf*)
11624     # the two cases above should catch all versions of osf <= 5.1.  Read
11625     # the comments above for what we know about them.
11626     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11627     # is used to find them so we can finally say `yes'.
11628     libltdl_cv_sys_dlopen_deplibs=yes
11629     ;;
11630   solaris*)
11631     libltdl_cv_sys_dlopen_deplibs=yes
11632     ;;
11633   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11634     libltdl_cv_sys_dlopen_deplibs=yes
11635     ;;
11636   esac
11637
11638 fi
11639 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11640 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11641 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11642
11643 cat >>confdefs.h <<\_ACEOF
11644 #define LTDL_DLOPEN_DEPLIBS 1
11645 _ACEOF
11646
11647 fi
11648
11649
11650 for ac_header in argz.h
11651 do
11652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11654   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 fi
11659 ac_res=`eval echo '${'$as_ac_Header'}'`
11660                { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11662 else
11663   # Is the header compilable?
11664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672 $ac_includes_default
11673 #include <$ac_header>
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (ac_try="$ac_compile"
11677 case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_compile") 2>conftest.er1
11683   ac_status=$?
11684   grep -v '^ *+' conftest.er1 >conftest.err
11685   rm -f conftest.er1
11686   cat conftest.err >&5
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); } &&
11689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11690   { (case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_try") 2>&5
11696   ac_status=$?
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); }; } &&
11699          { ac_try='test -s conftest.$ac_objext'
11700   { (case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_try") 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   ac_header_compiler=yes
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714         ac_header_compiler=no
11715 fi
11716
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11719 echo "${ECHO_T}$ac_header_compiler" >&6; }
11720
11721 # Is the header present?
11722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730 #include <$ac_header>
11731 _ACEOF
11732 if { (ac_try="$ac_cpp conftest.$ac_ext"
11733 case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } >/dev/null; then
11745   if test -s conftest.err; then
11746     ac_cpp_err=$ac_c_preproc_warn_flag
11747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11748   else
11749     ac_cpp_err=
11750   fi
11751 else
11752   ac_cpp_err=yes
11753 fi
11754 if test -z "$ac_cpp_err"; then
11755   ac_header_preproc=yes
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760   ac_header_preproc=no
11761 fi
11762
11763 rm -f conftest.err conftest.$ac_ext
11764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765 echo "${ECHO_T}$ac_header_preproc" >&6; }
11766
11767 # So?  What about this header?
11768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11769   yes:no: )
11770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774     ac_header_preproc=yes
11775     ;;
11776   no:yes:* )
11777     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11780 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11784 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11789     ( cat <<\_ASBOX
11790 ## ----------------------------------- ##
11791 ## Report this to llvmbugs@cs.uiuc.edu ##
11792 ## ----------------------------------- ##
11793 _ASBOX
11794      ) | sed "s/^/$as_me: WARNING:     /" >&2
11795     ;;
11796 esac
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   eval "$as_ac_Header=\$ac_header_preproc"
11803 fi
11804 ac_res=`eval echo '${'$as_ac_Header'}'`
11805                { echo "$as_me:$LINENO: result: $ac_res" >&5
11806 echo "${ECHO_T}$ac_res" >&6; }
11807
11808 fi
11809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11810   cat >>confdefs.h <<_ACEOF
11811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11812 _ACEOF
11813
11814 fi
11815
11816 done
11817
11818
11819 { echo "$as_me:$LINENO: checking for error_t" >&5
11820 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11821 if test "${ac_cv_type_error_t+set}" = set; then
11822   echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824   cat >conftest.$ac_ext <<_ACEOF
11825 /* confdefs.h.  */
11826 _ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h.  */
11830 #if HAVE_ARGZ_H
11831 #  include <argz.h>
11832 #endif
11833
11834 typedef error_t ac__type_new_;
11835 int
11836 main ()
11837 {
11838 if ((ac__type_new_ *) 0)
11839   return 0;
11840 if (sizeof (ac__type_new_))
11841   return 0;
11842   ;
11843   return 0;
11844 }
11845 _ACEOF
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850   *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853   (eval "$ac_compile") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } &&
11860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861   { (case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_try") 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; } &&
11870          { ac_try='test -s conftest.$ac_objext'
11871   { (case "(($ac_try" in
11872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873   *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876   (eval "$ac_try") 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; }; then
11880   ac_cv_type_error_t=yes
11881 else
11882   echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11884
11885         ac_cv_type_error_t=no
11886 fi
11887
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11889 fi
11890 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11891 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11892 if test $ac_cv_type_error_t = yes; then
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_ERROR_T 1
11896 _ACEOF
11897
11898
11899 else
11900
11901 cat >>confdefs.h <<\_ACEOF
11902 #define error_t int
11903 _ACEOF
11904
11905 fi
11906
11907
11908
11909
11910
11911
11912
11913 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11914 do
11915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11929 #define $ac_func innocuous_$ac_func
11930
11931 /* System header to define __stub macros and hopefully few prototypes,
11932     which can conflict with char $ac_func (); below.
11933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934     <limits.h> exists even on freestanding compilers.  */
11935
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941
11942 #undef $ac_func
11943
11944 /* Override any GCC internal prototype to avoid an error.
11945    Use char because int might match the return type of a GCC
11946    builtin and then its argument prototype would still apply.  */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char $ac_func ();
11951 /* The GNU C library defines this for functions which it implements
11952     to always fail with ENOSYS.  Some functions are actually named
11953     something starting with __ and the normal name is an alias.  */
11954 #if defined __stub_$ac_func || defined __stub___$ac_func
11955 choke me
11956 #endif
11957
11958 int
11959 main ()
11960 {
11961 return $ac_func ();
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970   *) ac_try_echo=$ac_try;;
11971 esac
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973   (eval "$ac_link") 2>conftest.er1
11974   ac_status=$?
11975   grep -v '^ *+' conftest.er1 >conftest.err
11976   rm -f conftest.er1
11977   cat conftest.err >&5
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } &&
11980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11987   ac_status=$?
11988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989   (exit $ac_status); }; } &&
11990          { ac_try='test -s conftest$ac_exeext'
11991   { (case "(($ac_try" in
11992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993   *) ac_try_echo=$ac_try;;
11994 esac
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996   (eval "$ac_try") 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   eval "$as_ac_var=yes"
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005         eval "$as_ac_var=no"
12006 fi
12007
12008 rm -f core conftest.err conftest.$ac_objext \
12009       conftest$ac_exeext conftest.$ac_ext
12010 fi
12011 ac_res=`eval echo '${'$as_ac_var'}'`
12012                { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014 if test `eval echo '${'$as_ac_var'}'` = yes; then
12015   cat >>confdefs.h <<_ACEOF
12016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 _ACEOF
12018
12019 fi
12020 done
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12050                   stdio.h unistd.h
12051 do
12052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057   echo $ECHO_N "(cached) $ECHO_C" >&6
12058 fi
12059 ac_res=`eval echo '${'$as_ac_Header'}'`
12060                { echo "$as_me:$LINENO: result: $ac_res" >&5
12061 echo "${ECHO_T}$ac_res" >&6; }
12062 else
12063   # Is the header compilable?
12064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12066 cat >conftest.$ac_ext <<_ACEOF
12067 /* confdefs.h.  */
12068 _ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h.  */
12072 $ac_includes_default
12073 #include <$ac_header>
12074 _ACEOF
12075 rm -f conftest.$ac_objext
12076 if { (ac_try="$ac_compile"
12077 case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_compile") 2>conftest.er1
12083   ac_status=$?
12084   grep -v '^ *+' conftest.er1 >conftest.err
12085   rm -f conftest.er1
12086   cat conftest.err >&5
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); } &&
12089          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12090   { (case "(($ac_try" in
12091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092   *) ac_try_echo=$ac_try;;
12093 esac
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095   (eval "$ac_try") 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; } &&
12099          { ac_try='test -s conftest.$ac_objext'
12100   { (case "(($ac_try" in
12101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102   *) ac_try_echo=$ac_try;;
12103 esac
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105   (eval "$ac_try") 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); }; }; then
12109   ac_header_compiler=yes
12110 else
12111   echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114         ac_header_compiler=no
12115 fi
12116
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119 echo "${ECHO_T}$ac_header_compiler" >&6; }
12120
12121 # Is the header present?
12122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130 #include <$ac_header>
12131 _ACEOF
12132 if { (ac_try="$ac_cpp conftest.$ac_ext"
12133 case "(($ac_try" in
12134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135   *) ac_try_echo=$ac_try;;
12136 esac
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } >/dev/null; then
12145   if test -s conftest.err; then
12146     ac_cpp_err=$ac_c_preproc_warn_flag
12147     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12148   else
12149     ac_cpp_err=
12150   fi
12151 else
12152   ac_cpp_err=yes
12153 fi
12154 if test -z "$ac_cpp_err"; then
12155   ac_header_preproc=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160   ac_header_preproc=no
12161 fi
12162
12163 rm -f conftest.err conftest.$ac_ext
12164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165 echo "${ECHO_T}$ac_header_preproc" >&6; }
12166
12167 # So?  What about this header?
12168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12169   yes:no: )
12170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174     ac_header_preproc=yes
12175     ;;
12176   no:yes:* )
12177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12189     ( cat <<\_ASBOX
12190 ## ----------------------------------- ##
12191 ## Report this to llvmbugs@cs.uiuc.edu ##
12192 ## ----------------------------------- ##
12193 _ASBOX
12194      ) | sed "s/^/$as_me: WARNING:     /" >&2
12195     ;;
12196 esac
12197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200   echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202   eval "$as_ac_Header=\$ac_header_preproc"
12203 fi
12204 ac_res=`eval echo '${'$as_ac_Header'}'`
12205                { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12207
12208 fi
12209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210   cat >>confdefs.h <<_ACEOF
12211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212 _ACEOF
12213
12214 fi
12215
12216 done
12217
12218
12219
12220
12221
12222 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12223 do
12224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 fi
12231 ac_res=`eval echo '${'$as_ac_Header'}'`
12232                { echo "$as_me:$LINENO: result: $ac_res" >&5
12233 echo "${ECHO_T}$ac_res" >&6; }
12234 else
12235   # Is the header compilable?
12236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h.  */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h.  */
12244 $ac_includes_default
12245 #include <$ac_header>
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (ac_try="$ac_compile"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_compile") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } &&
12261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262   { (case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_try") 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; } &&
12271          { ac_try='test -s conftest.$ac_objext'
12272   { (case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_try") 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   ac_header_compiler=yes
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286         ac_header_compiler=no
12287 fi
12288
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12291 echo "${ECHO_T}$ac_header_compiler" >&6; }
12292
12293 # Is the header present?
12294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12296 cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 #include <$ac_header>
12303 _ACEOF
12304 if { (ac_try="$ac_cpp conftest.$ac_ext"
12305 case "(($ac_try" in
12306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307   *) ac_try_echo=$ac_try;;
12308 esac
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } >/dev/null; then
12317   if test -s conftest.err; then
12318     ac_cpp_err=$ac_c_preproc_warn_flag
12319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12320   else
12321     ac_cpp_err=
12322   fi
12323 else
12324   ac_cpp_err=yes
12325 fi
12326 if test -z "$ac_cpp_err"; then
12327   ac_header_preproc=yes
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332   ac_header_preproc=no
12333 fi
12334
12335 rm -f conftest.err conftest.$ac_ext
12336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12337 echo "${ECHO_T}$ac_header_preproc" >&6; }
12338
12339 # So?  What about this header?
12340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12341   yes:no: )
12342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12346     ac_header_preproc=yes
12347     ;;
12348   no:yes:* )
12349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12361     ( cat <<\_ASBOX
12362 ## ----------------------------------- ##
12363 ## Report this to llvmbugs@cs.uiuc.edu ##
12364 ## ----------------------------------- ##
12365 _ASBOX
12366      ) | sed "s/^/$as_me: WARNING:     /" >&2
12367     ;;
12368 esac
12369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   eval "$as_ac_Header=\$ac_header_preproc"
12375 fi
12376 ac_res=`eval echo '${'$as_ac_Header'}'`
12377                { echo "$as_me:$LINENO: result: $ac_res" >&5
12378 echo "${ECHO_T}$ac_res" >&6; }
12379
12380 fi
12381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12382   cat >>confdefs.h <<_ACEOF
12383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12384 _ACEOF
12385
12386 fi
12387
12388 done
12389
12390
12391
12392 for ac_header in string.h strings.h
12393 do
12394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12396   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 fi
12401 ac_res=`eval echo '${'$as_ac_Header'}'`
12402                { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12404 else
12405   # Is the header compilable?
12406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 $ac_includes_default
12415 #include <$ac_header>
12416 _ACEOF
12417 rm -f conftest.$ac_objext
12418 if { (ac_try="$ac_compile"
12419 case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_compile") 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432   { (case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_try") 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; } &&
12441          { ac_try='test -s conftest.$ac_objext'
12442   { (case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_try") 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_header_compiler=yes
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456         ac_header_compiler=no
12457 fi
12458
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12461 echo "${ECHO_T}$ac_header_compiler" >&6; }
12462
12463 # Is the header present?
12464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h.  */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h.  */
12472 #include <$ac_header>
12473 _ACEOF
12474 if { (ac_try="$ac_cpp conftest.$ac_ext"
12475 case "(($ac_try" in
12476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477   *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12481   ac_status=$?
12482   grep -v '^ *+' conftest.er1 >conftest.err
12483   rm -f conftest.er1
12484   cat conftest.err >&5
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); } >/dev/null; then
12487   if test -s conftest.err; then
12488     ac_cpp_err=$ac_c_preproc_warn_flag
12489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12490   else
12491     ac_cpp_err=
12492   fi
12493 else
12494   ac_cpp_err=yes
12495 fi
12496 if test -z "$ac_cpp_err"; then
12497   ac_header_preproc=yes
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502   ac_header_preproc=no
12503 fi
12504
12505 rm -f conftest.err conftest.$ac_ext
12506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507 echo "${ECHO_T}$ac_header_preproc" >&6; }
12508
12509 # So?  What about this header?
12510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12511   yes:no: )
12512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12516     ac_header_preproc=yes
12517     ;;
12518   no:yes:* )
12519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12531     ( cat <<\_ASBOX
12532 ## ----------------------------------- ##
12533 ## Report this to llvmbugs@cs.uiuc.edu ##
12534 ## ----------------------------------- ##
12535 _ASBOX
12536      ) | sed "s/^/$as_me: WARNING:     /" >&2
12537     ;;
12538 esac
12539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   eval "$as_ac_Header=\$ac_header_preproc"
12545 fi
12546 ac_res=`eval echo '${'$as_ac_Header'}'`
12547                { echo "$as_me:$LINENO: result: $ac_res" >&5
12548 echo "${ECHO_T}$ac_res" >&6; }
12549
12550 fi
12551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12552   cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12554 _ACEOF
12555  break
12556 fi
12557
12558 done
12559
12560
12561
12562
12563 for ac_func in strchr index
12564 do
12565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12579 #define $ac_func innocuous_$ac_func
12580
12581 /* System header to define __stub macros and hopefully few prototypes,
12582     which can conflict with char $ac_func (); below.
12583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584     <limits.h> exists even on freestanding compilers.  */
12585
12586 #ifdef __STDC__
12587 # include <limits.h>
12588 #else
12589 # include <assert.h>
12590 #endif
12591
12592 #undef $ac_func
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595    Use char because int might match the return type of a GCC
12596    builtin and then its argument prototype would still apply.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char $ac_func ();
12601 /* The GNU C library defines this for functions which it implements
12602     to always fail with ENOSYS.  Some functions are actually named
12603     something starting with __ and the normal name is an alias.  */
12604 #if defined __stub_$ac_func || defined __stub___$ac_func
12605 choke me
12606 #endif
12607
12608 int
12609 main ()
12610 {
12611 return $ac_func ();
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620   *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623   (eval "$ac_link") 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631   { (case "(($ac_try" in
12632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633   *) ac_try_echo=$ac_try;;
12634 esac
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636   (eval "$ac_try") 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest$ac_exeext'
12641   { (case "(($ac_try" in
12642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643   *) ac_try_echo=$ac_try;;
12644 esac
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646   (eval "$ac_try") 2>&5
12647   ac_status=$?
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); }; }; then
12650   eval "$as_ac_var=yes"
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655         eval "$as_ac_var=no"
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext \
12659       conftest$ac_exeext conftest.$ac_ext
12660 fi
12661 ac_res=`eval echo '${'$as_ac_var'}'`
12662                { echo "$as_me:$LINENO: result: $ac_res" >&5
12663 echo "${ECHO_T}$ac_res" >&6; }
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665   cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12668  break
12669 fi
12670 done
12671
12672
12673
12674 for ac_func in strrchr rindex
12675 do
12676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12690 #define $ac_func innocuous_$ac_func
12691
12692 /* System header to define __stub macros and hopefully few prototypes,
12693     which can conflict with char $ac_func (); below.
12694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695     <limits.h> exists even on freestanding compilers.  */
12696
12697 #ifdef __STDC__
12698 # include <limits.h>
12699 #else
12700 # include <assert.h>
12701 #endif
12702
12703 #undef $ac_func
12704
12705 /* Override any GCC internal prototype to avoid an error.
12706    Use char because int might match the return type of a GCC
12707    builtin and then its argument prototype would still apply.  */
12708 #ifdef __cplusplus
12709 extern "C"
12710 #endif
12711 char $ac_func ();
12712 /* The GNU C library defines this for functions which it implements
12713     to always fail with ENOSYS.  Some functions are actually named
12714     something starting with __ and the normal name is an alias.  */
12715 #if defined __stub_$ac_func || defined __stub___$ac_func
12716 choke me
12717 #endif
12718
12719 int
12720 main ()
12721 {
12722 return $ac_func ();
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_link") 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } &&
12741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742   { (case "(($ac_try" in
12743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744   *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747   (eval "$ac_try") 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; } &&
12751          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12761   eval "$as_ac_var=yes"
12762 else
12763   echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766         eval "$as_ac_var=no"
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext \
12770       conftest$ac_exeext conftest.$ac_ext
12771 fi
12772 ac_res=`eval echo '${'$as_ac_var'}'`
12773                { echo "$as_me:$LINENO: result: $ac_res" >&5
12774 echo "${ECHO_T}$ac_res" >&6; }
12775 if test `eval echo '${'$as_ac_var'}'` = yes; then
12776   cat >>confdefs.h <<_ACEOF
12777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12778 _ACEOF
12779  break
12780 fi
12781 done
12782
12783
12784
12785 for ac_func in memcpy bcopy
12786 do
12787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791   echo $ECHO_N "(cached) $ECHO_C" >&6
12792 else
12793   cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12801 #define $ac_func innocuous_$ac_func
12802
12803 /* System header to define __stub macros and hopefully few prototypes,
12804     which can conflict with char $ac_func (); below.
12805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806     <limits.h> exists even on freestanding compilers.  */
12807
12808 #ifdef __STDC__
12809 # include <limits.h>
12810 #else
12811 # include <assert.h>
12812 #endif
12813
12814 #undef $ac_func
12815
12816 /* Override any GCC internal prototype to avoid an error.
12817    Use char because int might match the return type of a GCC
12818    builtin and then its argument prototype would still apply.  */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 char $ac_func ();
12823 /* The GNU C library defines this for functions which it implements
12824     to always fail with ENOSYS.  Some functions are actually named
12825     something starting with __ and the normal name is an alias.  */
12826 #if defined __stub_$ac_func || defined __stub___$ac_func
12827 choke me
12828 #endif
12829
12830 int
12831 main ()
12832 {
12833 return $ac_func ();
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845   (eval "$ac_link") 2>conftest.er1
12846   ac_status=$?
12847   grep -v '^ *+' conftest.er1 >conftest.err
12848   rm -f conftest.er1
12849   cat conftest.err >&5
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); } &&
12852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853   { (case "(($ac_try" in
12854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855   *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858   (eval "$ac_try") 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; } &&
12862          { ac_try='test -s conftest$ac_exeext'
12863   { (case "(($ac_try" in
12864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865   *) ac_try_echo=$ac_try;;
12866 esac
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868   (eval "$ac_try") 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); }; }; then
12872   eval "$as_ac_var=yes"
12873 else
12874   echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877         eval "$as_ac_var=no"
12878 fi
12879
12880 rm -f core conftest.err conftest.$ac_objext \
12881       conftest$ac_exeext conftest.$ac_ext
12882 fi
12883 ac_res=`eval echo '${'$as_ac_var'}'`
12884                { echo "$as_me:$LINENO: result: $ac_res" >&5
12885 echo "${ECHO_T}$ac_res" >&6; }
12886 if test `eval echo '${'$as_ac_var'}'` = yes; then
12887   cat >>confdefs.h <<_ACEOF
12888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12889 _ACEOF
12890  break
12891 fi
12892 done
12893
12894
12895
12896 for ac_func in memmove strcmp
12897 do
12898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904   cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12912 #define $ac_func innocuous_$ac_func
12913
12914 /* System header to define __stub macros and hopefully few prototypes,
12915     which can conflict with char $ac_func (); below.
12916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917     <limits.h> exists even on freestanding compilers.  */
12918
12919 #ifdef __STDC__
12920 # include <limits.h>
12921 #else
12922 # include <assert.h>
12923 #endif
12924
12925 #undef $ac_func
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928    Use char because int might match the return type of a GCC
12929    builtin and then its argument prototype would still apply.  */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char $ac_func ();
12934 /* The GNU C library defines this for functions which it implements
12935     to always fail with ENOSYS.  Some functions are actually named
12936     something starting with __ and the normal name is an alias.  */
12937 #if defined __stub_$ac_func || defined __stub___$ac_func
12938 choke me
12939 #endif
12940
12941 int
12942 main ()
12943 {
12944 return $ac_func ();
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_link") 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964   { (case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_try") 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; } &&
12973          { ac_try='test -s conftest$ac_exeext'
12974   { (case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_try") 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   eval "$as_ac_var=yes"
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988         eval "$as_ac_var=no"
12989 fi
12990
12991 rm -f core conftest.err conftest.$ac_objext \
12992       conftest$ac_exeext conftest.$ac_ext
12993 fi
12994 ac_res=`eval echo '${'$as_ac_var'}'`
12995                { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998   cat >>confdefs.h <<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13000 _ACEOF
13001
13002 fi
13003 done
13004
13005
13006
13007
13008 for ac_func in closedir opendir readdir
13009 do
13010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13023    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13024 #define $ac_func innocuous_$ac_func
13025
13026 /* System header to define __stub macros and hopefully few prototypes,
13027     which can conflict with char $ac_func (); below.
13028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029     <limits.h> exists even on freestanding compilers.  */
13030
13031 #ifdef __STDC__
13032 # include <limits.h>
13033 #else
13034 # include <assert.h>
13035 #endif
13036
13037 #undef $ac_func
13038
13039 /* Override any GCC internal prototype to avoid an error.
13040    Use char because int might match the return type of a GCC
13041    builtin and then its argument prototype would still apply.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 char $ac_func ();
13046 /* The GNU C library defines this for functions which it implements
13047     to always fail with ENOSYS.  Some functions are actually named
13048     something starting with __ and the normal name is an alias.  */
13049 #if defined __stub_$ac_func || defined __stub___$ac_func
13050 choke me
13051 #endif
13052
13053 int
13054 main ()
13055 {
13056 return $ac_func ();
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068   (eval "$ac_link") 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } &&
13075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13076   { (case "(($ac_try" in
13077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078   *) ac_try_echo=$ac_try;;
13079 esac
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081   (eval "$ac_try") 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; } &&
13085          { ac_try='test -s conftest$ac_exeext'
13086   { (case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_try") 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; }; then
13095   eval "$as_ac_var=yes"
13096 else
13097   echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100         eval "$as_ac_var=no"
13101 fi
13102
13103 rm -f core conftest.err conftest.$ac_objext \
13104       conftest$ac_exeext conftest.$ac_ext
13105 fi
13106 ac_res=`eval echo '${'$as_ac_var'}'`
13107                { echo "$as_me:$LINENO: result: $ac_res" >&5
13108 echo "${ECHO_T}$ac_res" >&6; }
13109 if test `eval echo '${'$as_ac_var'}'` = yes; then
13110   cat >>confdefs.h <<_ACEOF
13111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13112 _ACEOF
13113
13114 fi
13115 done
13116
13117
13118
13119 if test "$WITH_LLVMGCCDIR" = "default" ; then
13120   LLVMGCC="llvm-gcc${EXEEXT}"
13121   LLVMGXX="llvm-g++${EXEEXT}"
13122   LLVMGCCCOMMAND="$LLVMGCC"
13123   LLVMGXXCOMMAND="$LLVMGXX"
13124   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13125
13126   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13127
13128   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13129 set dummy $LLVMGCC; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   case $LLVMGCC in
13136   [\\/]* | ?:[\\/]*)
13137   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13138   ;;
13139   *)
13140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13142 do
13143   IFS=$as_save_IFS
13144   test -z "$as_dir" && as_dir=.
13145   for ac_exec_ext in '' $ac_executable_extensions; do
13146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13147     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13149     break 2
13150   fi
13151 done
13152 done
13153 IFS=$as_save_IFS
13154
13155   ;;
13156 esac
13157 fi
13158 LLVMGCC=$ac_cv_path_LLVMGCC
13159 if test -n "$LLVMGCC"; then
13160   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13161 echo "${ECHO_T}$LLVMGCC" >&6; }
13162 else
13163   { echo "$as_me:$LINENO: result: no" >&5
13164 echo "${ECHO_T}no" >&6; }
13165 fi
13166
13167
13168   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13169 set dummy $LLVMGXX; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   case $LLVMGXX in
13176   [\\/]* | ?:[\\/]*)
13177   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13178   ;;
13179   *)
13180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13182 do
13183   IFS=$as_save_IFS
13184   test -z "$as_dir" && as_dir=.
13185   for ac_exec_ext in '' $ac_executable_extensions; do
13186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13187     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13189     break 2
13190   fi
13191 done
13192 done
13193 IFS=$as_save_IFS
13194
13195   ;;
13196 esac
13197 fi
13198 LLVMGXX=$ac_cv_path_LLVMGXX
13199 if test -n "$LLVMGXX"; then
13200   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13201 echo "${ECHO_T}$LLVMGXX" >&6; }
13202 else
13203   { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13205 fi
13206
13207
13208 else
13209   if test -z "$LLVMGCC"; then
13210     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13211     LLVMGCCCOMMAND="$LLVMGCC"
13212   fi
13213   if test -z "$LLVMGXX"; then
13214     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13215     LLVMGXXCOMMAND="$LLVMGXX"
13216   fi
13217
13218   LLVMGCC=$LLVMGCC
13219
13220   LLVMGXX=$LLVMGXX
13221
13222   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13223
13224   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13225
13226 fi
13227
13228
13229 # Check whether --with-llvmcc was given.
13230 if test "${with_llvmcc+set}" = set; then
13231   withval=$with_llvmcc;
13232 else
13233   with_llvmcc=check
13234 fi
13235
13236 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13237 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13238 if test "$with_llvmcc" != "check"; then
13239    if (test "$with_llvmcc" != "llvm-gcc" &&
13240        test "$with_llvmcc" != "clang" &&
13241        test "$with_llvmcc" != "none"); then
13242       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13243 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13244    { (exit 1); exit 1; }; }
13245    fi
13246    WITH_LLVMCC="$with_llvmcc"
13247 elif test -n "$LLVMGCC"; then
13248    WITH_LLVMCC=llvm-gcc
13249 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13250    WITH_LLVMCC=clang
13251 else
13252    WITH_LLVMCC=none
13253 fi
13254 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13255 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13256 LLVMCC_OPTION=$WITH_LLVMCC
13257
13258
13259 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13260 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13261
13262 ICC=no
13263 IXX=no
13264 case $CC in
13265   icc*|icpc*)
13266     ICC=yes
13267     IXX=yes
13268     ;;
13269    *)
13270     ;;
13271 esac
13272
13273 if test "$GCC" != "yes" && test "$ICC" != "yes"
13274 then
13275   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13276 echo "$as_me: error: gcc|icc required but not found" >&2;}
13277    { (exit 1); exit 1; }; }
13278 fi
13279
13280 if test "$GXX" != "yes" && test "$IXX" != "yes"
13281 then
13282   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13283 echo "$as_me: error: g++|icc required but not found" >&2;}
13284    { (exit 1); exit 1; }; }
13285 fi
13286
13287 if test "$GCC" = "yes"
13288 then
13289   cat >conftest.$ac_ext <<_ACEOF
13290 #if !defined(__GNUC__) || __GNUC__ < 3
13291 #error Unsupported GCC version
13292 #endif
13293
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (ac_try="$ac_compile"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_compile") 2>conftest.er1
13303   ac_status=$?
13304   grep -v '^ *+' conftest.er1 >conftest.err
13305   rm -f conftest.er1
13306   cat conftest.err >&5
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } &&
13309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310   { (case "(($ac_try" in
13311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312   *) ac_try_echo=$ac_try;;
13313 esac
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315   (eval "$ac_try") 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; } &&
13319          { ac_try='test -s conftest.$ac_objext'
13320   { (case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_try") 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; }; then
13329   :
13330 else
13331   echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13333
13334         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13335 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13336    { (exit 1); exit 1; }; }
13337 fi
13338
13339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 fi
13341
13342 if test -z "$llvm_cv_gnu_make_command"
13343 then
13344   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13345 echo "$as_me: error: GNU Make required but not found" >&2;}
13346    { (exit 1); exit 1; }; }
13347 fi
13348
13349 { echo "$as_me:$LINENO: result: ok" >&5
13350 echo "${ECHO_T}ok" >&6; }
13351
13352 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13353 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13354 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13355
13356 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13357
13358 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13359 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13360
13361
13362
13363 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13364 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13365 if test "${ac_cv_lib_m_sin+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   ac_check_lib_save_LIBS=$LIBS
13369 LIBS="-lm  $LIBS"
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h.  */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h.  */
13376
13377 /* Override any GCC internal prototype to avoid an error.
13378    Use char because int might match the return type of a GCC
13379    builtin and then its argument prototype would still apply.  */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 char sin ();
13384 int
13385 main ()
13386 {
13387 return sin ();
13388   ;
13389   return 0;
13390 }
13391 _ACEOF
13392 rm -f conftest.$ac_objext conftest$ac_exeext
13393 if { (ac_try="$ac_link"
13394 case "(($ac_try" in
13395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396   *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399   (eval "$ac_link") 2>conftest.er1
13400   ac_status=$?
13401   grep -v '^ *+' conftest.er1 >conftest.err
13402   rm -f conftest.er1
13403   cat conftest.err >&5
13404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405   (exit $ac_status); } &&
13406          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407   { (case "(($ac_try" in
13408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409   *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412   (eval "$ac_try") 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; } &&
13416          { ac_try='test -s conftest$ac_exeext'
13417   { (case "(($ac_try" in
13418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419   *) ac_try_echo=$ac_try;;
13420 esac
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422   (eval "$ac_try") 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }; then
13426   ac_cv_lib_m_sin=yes
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431         ac_cv_lib_m_sin=no
13432 fi
13433
13434 rm -f core conftest.err conftest.$ac_objext \
13435       conftest$ac_exeext conftest.$ac_ext
13436 LIBS=$ac_check_lib_save_LIBS
13437 fi
13438 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13439 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13440 if test $ac_cv_lib_m_sin = yes; then
13441   cat >>confdefs.h <<_ACEOF
13442 #define HAVE_LIBM 1
13443 _ACEOF
13444
13445   LIBS="-lm $LIBS"
13446
13447 fi
13448
13449 if test "$llvm_cv_os_type" = "MingW" ; then
13450
13451 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13452 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13453 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   ac_check_lib_save_LIBS=$LIBS
13457 LIBS="-limagehlp  $LIBS"
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464
13465
13466 int
13467 main ()
13468 {
13469 return main ();
13470   ;
13471   return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478   *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481   (eval "$ac_link") 2>conftest.er1
13482   ac_status=$?
13483   grep -v '^ *+' conftest.er1 >conftest.err
13484   rm -f conftest.er1
13485   cat conftest.err >&5
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } &&
13488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489   { (case "(($ac_try" in
13490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491   *) ac_try_echo=$ac_try;;
13492 esac
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494   (eval "$ac_try") 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; } &&
13498          { ac_try='test -s conftest$ac_exeext'
13499   { (case "(($ac_try" in
13500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501   *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504   (eval "$ac_try") 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; }; then
13508   ac_cv_lib_imagehlp_main=yes
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513         ac_cv_lib_imagehlp_main=no
13514 fi
13515
13516 rm -f core conftest.err conftest.$ac_objext \
13517       conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13519 fi
13520 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13521 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13522 if test $ac_cv_lib_imagehlp_main = yes; then
13523   cat >>confdefs.h <<_ACEOF
13524 #define HAVE_LIBIMAGEHLP 1
13525 _ACEOF
13526
13527   LIBS="-limagehlp $LIBS"
13528
13529 fi
13530
13531
13532 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13533 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13534 if test "${ac_cv_lib_psapi_main+set}" = set; then
13535   echo $ECHO_N "(cached) $ECHO_C" >&6
13536 else
13537   ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lpsapi  $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545
13546
13547 int
13548 main ()
13549 {
13550 return main ();
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13563   ac_status=$?
13564   grep -v '^ *+' conftest.er1 >conftest.err
13565   rm -f conftest.er1
13566   cat conftest.err >&5
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } &&
13569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570   { (case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_try") 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; } &&
13579          { ac_try='test -s conftest$ac_exeext'
13580   { (case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_try") 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); }; }; then
13589   ac_cv_lib_psapi_main=yes
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594         ac_cv_lib_psapi_main=no
13595 fi
13596
13597 rm -f core conftest.err conftest.$ac_objext \
13598       conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13600 fi
13601 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13602 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13603 if test $ac_cv_lib_psapi_main = yes; then
13604   cat >>confdefs.h <<_ACEOF
13605 #define HAVE_LIBPSAPI 1
13606 _ACEOF
13607
13608   LIBS="-lpsapi $LIBS"
13609
13610 fi
13611
13612 fi
13613
13614 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13615 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13616 if test "${ac_cv_search_dlopen+set}" = set; then
13617   echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619   ac_func_search_save_LIBS=$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 dlopen ();
13634 int
13635 main ()
13636 {
13637 return dlopen ();
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 for ac_lib in '' dl; do
13643   if test -z "$ac_lib"; then
13644     ac_res="none required"
13645   else
13646     ac_res=-l$ac_lib
13647     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13648   fi
13649   rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (ac_try="$ac_link"
13651 case "(($ac_try" in
13652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653   *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656   (eval "$ac_link") 2>conftest.er1
13657   ac_status=$?
13658   grep -v '^ *+' conftest.er1 >conftest.err
13659   rm -f conftest.er1
13660   cat conftest.err >&5
13661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } &&
13663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664   { (case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_try") 2>&5
13670   ac_status=$?
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); }; } &&
13673          { ac_try='test -s conftest$ac_exeext'
13674   { (case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679   (eval "$ac_try") 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_cv_search_dlopen=$ac_res
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688
13689 fi
13690
13691 rm -f core conftest.err conftest.$ac_objext \
13692       conftest$ac_exeext
13693   if test "${ac_cv_search_dlopen+set}" = set; then
13694   break
13695 fi
13696 done
13697 if test "${ac_cv_search_dlopen+set}" = set; then
13698   :
13699 else
13700   ac_cv_search_dlopen=no
13701 fi
13702 rm conftest.$ac_ext
13703 LIBS=$ac_func_search_save_LIBS
13704 fi
13705 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13706 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13707 ac_res=$ac_cv_search_dlopen
13708 if test "$ac_res" != no; then
13709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13710
13711 cat >>confdefs.h <<\_ACEOF
13712 #define HAVE_DLOPEN 1
13713 _ACEOF
13714
13715 else
13716   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13717 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13718 fi
13719
13720
13721 if test "$llvm_cv_enable_libffi" = "yes" ; then
13722   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13723 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13724 if test "${ac_cv_search_ffi_call+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   ac_func_search_save_LIBS=$LIBS
13728 cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736    Use char because int might match the return type of a GCC
13737    builtin and then its argument prototype would still apply.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char ffi_call ();
13742 int
13743 main ()
13744 {
13745 return ffi_call ();
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 for ac_lib in '' ffi; do
13751   if test -z "$ac_lib"; then
13752     ac_res="none required"
13753   else
13754     ac_res=-l$ac_lib
13755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13756   fi
13757   rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13772   { (case "(($ac_try" in
13773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13774   *) ac_try_echo=$ac_try;;
13775 esac
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777   (eval "$ac_try") 2>&5
13778   ac_status=$?
13779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780   (exit $ac_status); }; } &&
13781          { ac_try='test -s conftest$ac_exeext'
13782   { (case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787   (eval "$ac_try") 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; }; then
13791   ac_cv_search_ffi_call=$ac_res
13792 else
13793   echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13795
13796
13797 fi
13798
13799 rm -f core conftest.err conftest.$ac_objext \
13800       conftest$ac_exeext
13801   if test "${ac_cv_search_ffi_call+set}" = set; then
13802   break
13803 fi
13804 done
13805 if test "${ac_cv_search_ffi_call+set}" = set; then
13806   :
13807 else
13808   ac_cv_search_ffi_call=no
13809 fi
13810 rm conftest.$ac_ext
13811 LIBS=$ac_func_search_save_LIBS
13812 fi
13813 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13814 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13815 ac_res=$ac_cv_search_ffi_call
13816 if test "$ac_res" != no; then
13817   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13818
13819 cat >>confdefs.h <<\_ACEOF
13820 #define HAVE_FFI_CALL 1
13821 _ACEOF
13822
13823 else
13824   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13825 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13826    { (exit 1); exit 1; }; }
13827 fi
13828
13829 fi
13830
13831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13833 if test "${ac_cv_search_mallinfo+set}" = set; then
13834   echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836   ac_func_search_save_LIBS=$LIBS
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h.  */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h.  */
13843
13844 /* Override any GCC internal prototype to avoid an error.
13845    Use char because int might match the return type of a GCC
13846    builtin and then its argument prototype would still apply.  */
13847 #ifdef __cplusplus
13848 extern "C"
13849 #endif
13850 char mallinfo ();
13851 int
13852 main ()
13853 {
13854 return mallinfo ();
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 for ac_lib in '' malloc; do
13860   if test -z "$ac_lib"; then
13861     ac_res="none required"
13862   else
13863     ac_res=-l$ac_lib
13864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13865   fi
13866   rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_link") 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } &&
13880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881   { (case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_try") 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest$ac_exeext'
13891   { (case "(($ac_try" in
13892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893   *) ac_try_echo=$ac_try;;
13894 esac
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896   (eval "$ac_try") 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); }; }; then
13900   ac_cv_search_mallinfo=$ac_res
13901 else
13902   echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905
13906 fi
13907
13908 rm -f core conftest.err conftest.$ac_objext \
13909       conftest$ac_exeext
13910   if test "${ac_cv_search_mallinfo+set}" = set; then
13911   break
13912 fi
13913 done
13914 if test "${ac_cv_search_mallinfo+set}" = set; then
13915   :
13916 else
13917   ac_cv_search_mallinfo=no
13918 fi
13919 rm conftest.$ac_ext
13920 LIBS=$ac_func_search_save_LIBS
13921 fi
13922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13924 ac_res=$ac_cv_search_mallinfo
13925 if test "$ac_res" != no; then
13926   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13927
13928 cat >>confdefs.h <<\_ACEOF
13929 #define HAVE_MALLINFO 1
13930 _ACEOF
13931
13932 fi
13933
13934
13935 if test "$ENABLE_THREADS" -eq 1 ; then
13936
13937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13940   echo $ECHO_N "(cached) $ECHO_C" >&6
13941 else
13942   ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lpthread  $LIBS"
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950
13951 /* Override any GCC internal prototype to avoid an error.
13952    Use char because int might match the return type of a GCC
13953    builtin and then its argument prototype would still apply.  */
13954 #ifdef __cplusplus
13955 extern "C"
13956 #endif
13957 char pthread_mutex_init ();
13958 int
13959 main ()
13960 {
13961 return pthread_mutex_init ();
13962   ;
13963   return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext conftest$ac_exeext
13967 if { (ac_try="$ac_link"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_link") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } &&
13980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981   { (case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986   (eval "$ac_try") 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; } &&
13990          { ac_try='test -s conftest$ac_exeext'
13991   { (case "(($ac_try" in
13992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993   *) ac_try_echo=$ac_try;;
13994 esac
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996   (eval "$ac_try") 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_lib_pthread_pthread_mutex_init=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_cv_lib_pthread_pthread_mutex_init=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext \
14009       conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14011 fi
14012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14015   cat >>confdefs.h <<_ACEOF
14016 #define HAVE_LIBPTHREAD 1
14017 _ACEOF
14018
14019   LIBS="-lpthread $LIBS"
14020
14021 fi
14022
14023   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14026   echo $ECHO_N "(cached) $ECHO_C" >&6
14027 else
14028   ac_func_search_save_LIBS=$LIBS
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035
14036 /* Override any GCC internal prototype to avoid an error.
14037    Use char because int might match the return type of a GCC
14038    builtin and then its argument prototype would still apply.  */
14039 #ifdef __cplusplus
14040 extern "C"
14041 #endif
14042 char pthread_mutex_lock ();
14043 int
14044 main ()
14045 {
14046 return pthread_mutex_lock ();
14047   ;
14048   return 0;
14049 }
14050 _ACEOF
14051 for ac_lib in '' pthread; do
14052   if test -z "$ac_lib"; then
14053     ac_res="none required"
14054   else
14055     ac_res=-l$ac_lib
14056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14057   fi
14058   rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_link") 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073   { (case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_try") 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest$ac_exeext'
14083   { (case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_try") 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   ac_cv_search_pthread_mutex_lock=$ac_res
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097
14098 fi
14099
14100 rm -f core conftest.err conftest.$ac_objext \
14101       conftest$ac_exeext
14102   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14103   break
14104 fi
14105 done
14106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14107   :
14108 else
14109   ac_cv_search_pthread_mutex_lock=no
14110 fi
14111 rm conftest.$ac_ext
14112 LIBS=$ac_func_search_save_LIBS
14113 fi
14114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14116 ac_res=$ac_cv_search_pthread_mutex_lock
14117 if test "$ac_res" != no; then
14118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14119
14120 cat >>confdefs.h <<\_ACEOF
14121 #define HAVE_PTHREAD_MUTEX_LOCK 1
14122 _ACEOF
14123
14124 fi
14125
14126   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   ac_func_search_save_LIBS=$LIBS
14132 cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138
14139 /* Override any GCC internal prototype to avoid an error.
14140    Use char because int might match the return type of a GCC
14141    builtin and then its argument prototype would still apply.  */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char pthread_rwlock_init ();
14146 int
14147 main ()
14148 {
14149 return pthread_rwlock_init ();
14150   ;
14151   return 0;
14152 }
14153 _ACEOF
14154 for ac_lib in '' pthread; do
14155   if test -z "$ac_lib"; then
14156     ac_res="none required"
14157   else
14158     ac_res=-l$ac_lib
14159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14160   fi
14161   rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_link") 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest$ac_exeext'
14186   { (case "(($ac_try" in
14187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188   *) ac_try_echo=$ac_try;;
14189 esac
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191   (eval "$ac_try") 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_search_pthread_rwlock_init=$ac_res
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200
14201 fi
14202
14203 rm -f core conftest.err conftest.$ac_objext \
14204       conftest$ac_exeext
14205   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14206   break
14207 fi
14208 done
14209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14210   :
14211 else
14212   ac_cv_search_pthread_rwlock_init=no
14213 fi
14214 rm conftest.$ac_ext
14215 LIBS=$ac_func_search_save_LIBS
14216 fi
14217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14219 ac_res=$ac_cv_search_pthread_rwlock_init
14220 if test "$ac_res" != no; then
14221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14222
14223 cat >>confdefs.h <<\_ACEOF
14224 #define HAVE_PTHREAD_RWLOCK_INIT 1
14225 _ACEOF
14226
14227 fi
14228
14229   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   ac_func_search_save_LIBS=$LIBS
14235 cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241
14242 /* Override any GCC internal prototype to avoid an error.
14243    Use char because int might match the return type of a GCC
14244    builtin and then its argument prototype would still apply.  */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char pthread_getspecific ();
14249 int
14250 main ()
14251 {
14252 return pthread_getspecific ();
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 for ac_lib in '' pthread; do
14258   if test -z "$ac_lib"; then
14259     ac_res="none required"
14260   else
14261     ac_res=-l$ac_lib
14262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14263   fi
14264   rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268   *) ac_try_echo=$ac_try;;
14269 esac
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271   (eval "$ac_link") 2>conftest.er1
14272   ac_status=$?
14273   grep -v '^ *+' conftest.er1 >conftest.err
14274   rm -f conftest.er1
14275   cat conftest.err >&5
14276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277   (exit $ac_status); } &&
14278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14279   { (case "(($ac_try" in
14280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281   *) ac_try_echo=$ac_try;;
14282 esac
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284   (eval "$ac_try") 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; } &&
14288          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14298   ac_cv_search_pthread_getspecific=$ac_res
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303
14304 fi
14305
14306 rm -f core conftest.err conftest.$ac_objext \
14307       conftest$ac_exeext
14308   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14309   break
14310 fi
14311 done
14312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14313   :
14314 else
14315   ac_cv_search_pthread_getspecific=no
14316 fi
14317 rm conftest.$ac_ext
14318 LIBS=$ac_func_search_save_LIBS
14319 fi
14320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14322 ac_res=$ac_cv_search_pthread_getspecific
14323 if test "$ac_res" != no; then
14324   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14325
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_PTHREAD_GETSPECIFIC 1
14328 _ACEOF
14329
14330 fi
14331
14332 fi
14333
14334
14335 # Check whether --with-udis86 was given.
14336 if test "${with_udis86+set}" = set; then
14337   withval=$with_udis86;
14338       USE_UDIS86=1
14339
14340       case "$withval" in
14341         /usr/lib|yes) ;;
14342         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14343       esac
14344
14345 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14346 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14347 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-ludis86  $LIBS"
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h.  */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h.  */
14358
14359 /* Override any GCC internal prototype to avoid an error.
14360    Use char because int might match the return type of a GCC
14361    builtin and then its argument prototype would still apply.  */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 char ud_init ();
14366 int
14367 main ()
14368 {
14369 return ud_init ();
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (ac_try="$ac_link"
14376 case "(($ac_try" in
14377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378   *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381   (eval "$ac_link") 2>conftest.er1
14382   ac_status=$?
14383   grep -v '^ *+' conftest.er1 >conftest.err
14384   rm -f conftest.er1
14385   cat conftest.err >&5
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } &&
14388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14398          { ac_try='test -s conftest$ac_exeext'
14399   { (case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_try") 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_cv_lib_udis86_ud_init=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413         ac_cv_lib_udis86_ud_init=no
14414 fi
14415
14416 rm -f core conftest.err conftest.$ac_objext \
14417       conftest$ac_exeext conftest.$ac_ext
14418 LIBS=$ac_check_lib_save_LIBS
14419 fi
14420 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14421 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14422 if test $ac_cv_lib_udis86_ud_init = yes; then
14423   cat >>confdefs.h <<_ACEOF
14424 #define HAVE_LIBUDIS86 1
14425 _ACEOF
14426
14427   LIBS="-ludis86 $LIBS"
14428
14429 else
14430
14431         echo "Error! You need to have libudis86 around."
14432         exit -1
14433
14434 fi
14435
14436
14437 else
14438   USE_UDIS86=0
14439
14440 fi
14441
14442
14443 cat >>confdefs.h <<_ACEOF
14444 #define USE_UDIS86 $USE_UDIS86
14445 _ACEOF
14446
14447
14448
14449 # Check whether --with-oprofile was given.
14450 if test "${with_oprofile+set}" = set; then
14451   withval=$with_oprofile;
14452       USE_OPROFILE=1
14453
14454       case "$withval" in
14455         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14456         no) llvm_cv_oppath=
14457             USE_OPROFILE=0
14458  ;;
14459         *) llvm_cv_oppath="${withval}/lib/oprofile"
14460            CPPFLAGS="-I${withval}/include";;
14461       esac
14462       if test -n "$llvm_cv_oppath" ; then
14463         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14464                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14465 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_bfd_init+set}" = set; then
14467   echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469   ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476
14477 /* Override any GCC internal prototype to avoid an error.
14478    Use char because int might match the return type of a GCC
14479    builtin and then its argument prototype would still apply.  */
14480 #ifdef __cplusplus
14481 extern "C"
14482 #endif
14483 char bfd_init ();
14484 int
14485 main ()
14486 {
14487 return bfd_init ();
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 for ac_lib in '' bfd; do
14493   if test -z "$ac_lib"; then
14494     ac_res="none required"
14495   else
14496     ac_res=-l$ac_lib
14497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14498   fi
14499   rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503   *) ac_try_echo=$ac_try;;
14504 esac
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506   (eval "$ac_link") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514   { (case "(($ac_try" in
14515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14516   *) ac_try_echo=$ac_try;;
14517 esac
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519   (eval "$ac_try") 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); }; } &&
14523          { ac_try='test -s conftest$ac_exeext'
14524   { (case "(($ac_try" in
14525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526   *) ac_try_echo=$ac_try;;
14527 esac
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529   (eval "$ac_try") 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; }; then
14533   ac_cv_search_bfd_init=$ac_res
14534 else
14535   echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14537
14538
14539 fi
14540
14541 rm -f core conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext
14543   if test "${ac_cv_search_bfd_init+set}" = set; then
14544   break
14545 fi
14546 done
14547 if test "${ac_cv_search_bfd_init+set}" = set; then
14548   :
14549 else
14550   ac_cv_search_bfd_init=no
14551 fi
14552 rm conftest.$ac_ext
14553 LIBS=$ac_func_search_save_LIBS
14554 fi
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14556 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14557 ac_res=$ac_cv_search_bfd_init
14558 if test "$ac_res" != no; then
14559   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14560
14561 fi
14562
14563         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14564 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14565 if test "${ac_cv_search_op_open_agent+set}" = set; then
14566   echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568   ac_func_search_save_LIBS=$LIBS
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575
14576 /* Override any GCC internal prototype to avoid an error.
14577    Use char because int might match the return type of a GCC
14578    builtin and then its argument prototype would still apply.  */
14579 #ifdef __cplusplus
14580 extern "C"
14581 #endif
14582 char op_open_agent ();
14583 int
14584 main ()
14585 {
14586 return op_open_agent ();
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 for ac_lib in '' opagent; do
14592   if test -z "$ac_lib"; then
14593     ac_res="none required"
14594   else
14595     ac_res=-l$ac_lib
14596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14597   fi
14598   rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (ac_try="$ac_link"
14600 case "(($ac_try" in
14601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602   *) ac_try_echo=$ac_try;;
14603 esac
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605   (eval "$ac_link") 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } &&
14612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14613   { (case "(($ac_try" in
14614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615   *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618   (eval "$ac_try") 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; } &&
14622          { ac_try='test -s conftest$ac_exeext'
14623   { (case "(($ac_try" in
14624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625   *) ac_try_echo=$ac_try;;
14626 esac
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628   (eval "$ac_try") 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; }; then
14632   ac_cv_search_op_open_agent=$ac_res
14633 else
14634   echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14636
14637
14638 fi
14639
14640 rm -f core conftest.err conftest.$ac_objext \
14641       conftest$ac_exeext
14642   if test "${ac_cv_search_op_open_agent+set}" = set; then
14643   break
14644 fi
14645 done
14646 if test "${ac_cv_search_op_open_agent+set}" = set; then
14647   :
14648 else
14649   ac_cv_search_op_open_agent=no
14650 fi
14651 rm conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14653 fi
14654 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14655 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14656 ac_res=$ac_cv_search_op_open_agent
14657 if test "$ac_res" != no; then
14658   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14659
14660 else
14661
14662           echo "Error! You need to have libopagent around."
14663           exit -1
14664
14665 fi
14666
14667         if test "${ac_cv_header_opagent_h+set}" = set; then
14668   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14669 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_opagent_h+set}" = set; then
14671   echo $ECHO_N "(cached) $ECHO_C" >&6
14672 fi
14673 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14674 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14675 else
14676   # Is the header compilable?
14677 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14678 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h.  */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h.  */
14685 $ac_includes_default
14686 #include <opagent.h>
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (ac_try="$ac_compile"
14690 case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695   (eval "$ac_compile") 2>conftest.er1
14696   ac_status=$?
14697   grep -v '^ *+' conftest.er1 >conftest.err
14698   rm -f conftest.er1
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); } &&
14702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14703   { (case "(($ac_try" in
14704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705   *) ac_try_echo=$ac_try;;
14706 esac
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708   (eval "$ac_try") 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; } &&
14712          { ac_try='test -s conftest.$ac_objext'
14713   { (case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_try") 2>&5
14719   ac_status=$?
14720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721   (exit $ac_status); }; }; then
14722   ac_header_compiler=yes
14723 else
14724   echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.$ac_ext >&5
14726
14727         ac_header_compiler=no
14728 fi
14729
14730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6; }
14733
14734 # Is the header present?
14735 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14736 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14737 cat >conftest.$ac_ext <<_ACEOF
14738 /* confdefs.h.  */
14739 _ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h.  */
14743 #include <opagent.h>
14744 _ACEOF
14745 if { (ac_try="$ac_cpp conftest.$ac_ext"
14746 case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } >/dev/null; then
14758   if test -s conftest.err; then
14759     ac_cpp_err=$ac_c_preproc_warn_flag
14760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14761   else
14762     ac_cpp_err=
14763   fi
14764 else
14765   ac_cpp_err=yes
14766 fi
14767 if test -z "$ac_cpp_err"; then
14768   ac_header_preproc=yes
14769 else
14770   echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773   ac_header_preproc=no
14774 fi
14775
14776 rm -f conftest.err conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14778 echo "${ECHO_T}$ac_header_preproc" >&6; }
14779
14780 # So?  What about this header?
14781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14782   yes:no: )
14783     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14784 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14786 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14787     ac_header_preproc=yes
14788     ;;
14789   no:yes:* )
14790     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14791 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14793 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14795 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14796     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14797 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14798     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14799 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14800     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14801 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14802     ( cat <<\_ASBOX
14803 ## ----------------------------------- ##
14804 ## Report this to llvmbugs@cs.uiuc.edu ##
14805 ## ----------------------------------- ##
14806 _ASBOX
14807      ) | sed "s/^/$as_me: WARNING:     /" >&2
14808     ;;
14809 esac
14810 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14811 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_opagent_h+set}" = set; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   ac_cv_header_opagent_h=$ac_header_preproc
14816 fi
14817 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14818 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14819
14820 fi
14821 if test $ac_cv_header_opagent_h = yes; then
14822   :
14823 else
14824
14825           echo "Error! You need to have opagent.h around."
14826           exit -1
14827
14828 fi
14829
14830
14831       fi
14832
14833 else
14834
14835       USE_OPROFILE=0
14836
14837
14838 fi
14839
14840
14841 cat >>confdefs.h <<_ACEOF
14842 #define USE_OPROFILE $USE_OPROFILE
14843 _ACEOF
14844
14845
14846
14847
14848
14849
14850
14851
14852 ac_header_dirent=no
14853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14854   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14855 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14856 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858   echo $ECHO_N "(cached) $ECHO_C" >&6
14859 else
14860   cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h.  */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h.  */
14866 #include <sys/types.h>
14867 #include <$ac_hdr>
14868
14869 int
14870 main ()
14871 {
14872 if ((DIR *) 0)
14873 return 0;
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882   *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885   (eval "$ac_compile") 2>conftest.er1
14886   ac_status=$?
14887   grep -v '^ *+' conftest.er1 >conftest.err
14888   rm -f conftest.er1
14889   cat conftest.err >&5
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } &&
14892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893   { (case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898   (eval "$ac_try") 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; } &&
14902          { ac_try='test -s conftest.$ac_objext'
14903   { (case "(($ac_try" in
14904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905   *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908   (eval "$ac_try") 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; }; then
14912   eval "$as_ac_Header=yes"
14913 else
14914   echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14916
14917         eval "$as_ac_Header=no"
14918 fi
14919
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 fi
14922 ac_res=`eval echo '${'$as_ac_Header'}'`
14923                { echo "$as_me:$LINENO: result: $ac_res" >&5
14924 echo "${ECHO_T}$ac_res" >&6; }
14925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926   cat >>confdefs.h <<_ACEOF
14927 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14928 _ACEOF
14929
14930 ac_header_dirent=$ac_hdr; break
14931 fi
14932
14933 done
14934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14935 if test $ac_header_dirent = dirent.h; then
14936   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14938 if test "${ac_cv_search_opendir+set}" = set; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   ac_func_search_save_LIBS=$LIBS
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948
14949 /* Override any GCC internal prototype to avoid an error.
14950    Use char because int might match the return type of a GCC
14951    builtin and then its argument prototype would still apply.  */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 char opendir ();
14956 int
14957 main ()
14958 {
14959 return opendir ();
14960   ;
14961   return 0;
14962 }
14963 _ACEOF
14964 for ac_lib in '' dir; do
14965   if test -z "$ac_lib"; then
14966     ac_res="none required"
14967   else
14968     ac_res=-l$ac_lib
14969     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14970   fi
14971   rm -f conftest.$ac_objext conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_link") 2>conftest.er1
14979   ac_status=$?
14980   grep -v '^ *+' conftest.er1 >conftest.err
14981   rm -f conftest.er1
14982   cat conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } &&
14985          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14992   ac_status=$?
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); }; } &&
14995          { ac_try='test -s conftest$ac_exeext'
14996   { (case "(($ac_try" in
14997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998   *) ac_try_echo=$ac_try;;
14999 esac
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001   (eval "$ac_try") 2>&5
15002   ac_status=$?
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); }; }; then
15005   ac_cv_search_opendir=$ac_res
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010
15011 fi
15012
15013 rm -f core conftest.err conftest.$ac_objext \
15014       conftest$ac_exeext
15015   if test "${ac_cv_search_opendir+set}" = set; then
15016   break
15017 fi
15018 done
15019 if test "${ac_cv_search_opendir+set}" = set; then
15020   :
15021 else
15022   ac_cv_search_opendir=no
15023 fi
15024 rm conftest.$ac_ext
15025 LIBS=$ac_func_search_save_LIBS
15026 fi
15027 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15028 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15029 ac_res=$ac_cv_search_opendir
15030 if test "$ac_res" != no; then
15031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15032
15033 fi
15034
15035 else
15036   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15037 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15038 if test "${ac_cv_search_opendir+set}" = set; then
15039   echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041   ac_func_search_save_LIBS=$LIBS
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h.  */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h.  */
15048
15049 /* Override any GCC internal prototype to avoid an error.
15050    Use char because int might match the return type of a GCC
15051    builtin and then its argument prototype would still apply.  */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char opendir ();
15056 int
15057 main ()
15058 {
15059 return opendir ();
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 for ac_lib in '' x; do
15065   if test -z "$ac_lib"; then
15066     ac_res="none required"
15067   else
15068     ac_res=-l$ac_lib
15069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15070   fi
15071   rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (ac_try="$ac_link"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_link") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086   { (case "(($ac_try" in
15087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088   *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091   (eval "$ac_try") 2>&5
15092   ac_status=$?
15093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094   (exit $ac_status); }; } &&
15095          { ac_try='test -s conftest$ac_exeext'
15096   { (case "(($ac_try" in
15097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098   *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101   (eval "$ac_try") 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_cv_search_opendir=$ac_res
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110
15111 fi
15112
15113 rm -f core conftest.err conftest.$ac_objext \
15114       conftest$ac_exeext
15115   if test "${ac_cv_search_opendir+set}" = set; then
15116   break
15117 fi
15118 done
15119 if test "${ac_cv_search_opendir+set}" = set; then
15120   :
15121 else
15122   ac_cv_search_opendir=no
15123 fi
15124 rm conftest.$ac_ext
15125 LIBS=$ac_func_search_save_LIBS
15126 fi
15127 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15128 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15129 ac_res=$ac_cv_search_opendir
15130 if test "$ac_res" != no; then
15131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15132
15133 fi
15134
15135 fi
15136
15137 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15138 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15139 if test "${ac_cv_header_mmap_anon+set}" = set; then
15140   echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142    ac_ext=c
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
15148   cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 #include <sys/mman.h>
15155 #include <unistd.h>
15156 #include <fcntl.h>
15157 int
15158 main ()
15159 {
15160 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (ac_try="$ac_compile"
15167 case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172   (eval "$ac_compile") 2>conftest.er1
15173   ac_status=$?
15174   grep -v '^ *+' conftest.er1 >conftest.err
15175   rm -f conftest.er1
15176   cat conftest.err >&5
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15180   { (case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_try") 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; } &&
15189          { ac_try='test -s conftest.$ac_objext'
15190   { (case "(($ac_try" in
15191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192   *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195   (eval "$ac_try") 2>&5
15196   ac_status=$?
15197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198   (exit $ac_status); }; }; then
15199   ac_cv_header_mmap_anon=yes
15200 else
15201   echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15203
15204         ac_cv_header_mmap_anon=no
15205 fi
15206
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15208   ac_ext=c
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
15214
15215 fi
15216 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15217 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15218 if test "$ac_cv_header_mmap_anon" = yes; then
15219
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_MMAP_ANONYMOUS 1
15222 _ACEOF
15223
15224 fi
15225
15226 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15227 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15228 if test "${ac_cv_header_stat_broken+set}" = set; then
15229   echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231   cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h.  */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h.  */
15237 #include <sys/types.h>
15238 #include <sys/stat.h>
15239
15240 #if defined S_ISBLK && defined S_IFDIR
15241 # if S_ISBLK (S_IFDIR)
15242 You lose.
15243 # endif
15244 #endif
15245
15246 #if defined S_ISBLK && defined S_IFCHR
15247 # if S_ISBLK (S_IFCHR)
15248 You lose.
15249 # endif
15250 #endif
15251
15252 #if defined S_ISLNK && defined S_IFREG
15253 # if S_ISLNK (S_IFREG)
15254 You lose.
15255 # endif
15256 #endif
15257
15258 #if defined S_ISSOCK && defined S_IFREG
15259 # if S_ISSOCK (S_IFREG)
15260 You lose.
15261 # endif
15262 #endif
15263
15264 _ACEOF
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266   $EGREP "You lose" >/dev/null 2>&1; then
15267   ac_cv_header_stat_broken=yes
15268 else
15269   ac_cv_header_stat_broken=no
15270 fi
15271 rm -f conftest*
15272
15273 fi
15274 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15275 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15276 if test $ac_cv_header_stat_broken = yes; then
15277
15278 cat >>confdefs.h <<\_ACEOF
15279 #define STAT_MACROS_BROKEN 1
15280 _ACEOF
15281
15282 fi
15283
15284 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15285 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15286 if test "${ac_cv_header_stdc+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <stdlib.h>
15296 #include <stdarg.h>
15297 #include <string.h>
15298 #include <float.h>
15299
15300 int
15301 main ()
15302 {
15303
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_compile") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } &&
15322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323   { (case "(($ac_try" in
15324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325   *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328   (eval "$ac_try") 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_try") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   ac_cv_header_stdc=yes
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347         ac_cv_header_stdc=no
15348 fi
15349
15350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351
15352 if test $ac_cv_header_stdc = yes; then
15353   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15354   cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <string.h>
15361
15362 _ACEOF
15363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15364   $EGREP "memchr" >/dev/null 2>&1; then
15365   :
15366 else
15367   ac_cv_header_stdc=no
15368 fi
15369 rm -f conftest*
15370
15371 fi
15372
15373 if test $ac_cv_header_stdc = yes; then
15374   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15375   cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381 #include <stdlib.h>
15382
15383 _ACEOF
15384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15385   $EGREP "free" >/dev/null 2>&1; then
15386   :
15387 else
15388   ac_cv_header_stdc=no
15389 fi
15390 rm -f conftest*
15391
15392 fi
15393
15394 if test $ac_cv_header_stdc = yes; then
15395   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15396   if test "$cross_compiling" = yes; then
15397   :
15398 else
15399   cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h.  */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h.  */
15405 #include <ctype.h>
15406 #include <stdlib.h>
15407 #if ((' ' & 0x0FF) == 0x020)
15408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15410 #else
15411 # define ISLOWER(c) \
15412                    (('a' <= (c) && (c) <= 'i') \
15413                      || ('j' <= (c) && (c) <= 'r') \
15414                      || ('s' <= (c) && (c) <= 'z'))
15415 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15416 #endif
15417
15418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15419 int
15420 main ()
15421 {
15422   int i;
15423   for (i = 0; i < 256; i++)
15424     if (XOR (islower (i), ISLOWER (i))
15425         || toupper (i) != TOUPPER (i))
15426       return 2;
15427   return 0;
15428 }
15429 _ACEOF
15430 rm -f conftest$ac_exeext
15431 if { (ac_try="$ac_link"
15432 case "(($ac_try" in
15433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434   *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437   (eval "$ac_link") 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15441   { (case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_try") 2>&5
15447   ac_status=$?
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); }; }; then
15450   :
15451 else
15452   echo "$as_me: program exited with status $ac_status" >&5
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ( exit $ac_status )
15457 ac_cv_header_stdc=no
15458 fi
15459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460 fi
15461
15462
15463 fi
15464 fi
15465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15466 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15467 if test $ac_cv_header_stdc = yes; then
15468
15469 cat >>confdefs.h <<\_ACEOF
15470 #define STDC_HEADERS 1
15471 _ACEOF
15472
15473 fi
15474
15475 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15476 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15477 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480   cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486 #include <sys/types.h>
15487 #include <sys/wait.h>
15488 #ifndef WEXITSTATUS
15489 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15490 #endif
15491 #ifndef WIFEXITED
15492 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15493 #endif
15494
15495 int
15496 main ()
15497 {
15498   int s;
15499   wait (&s);
15500   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (ac_try="$ac_compile"
15507 case "(($ac_try" in
15508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509   *) ac_try_echo=$ac_try;;
15510 esac
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512   (eval "$ac_compile") 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520   { (case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_try") 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; } &&
15529          { ac_try='test -s conftest.$ac_objext'
15530   { (case "(($ac_try" in
15531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532   *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535   (eval "$ac_try") 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }; then
15539   ac_cv_header_sys_wait_h=yes
15540 else
15541   echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15543
15544         ac_cv_header_sys_wait_h=no
15545 fi
15546
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15548 fi
15549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15550 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15551 if test $ac_cv_header_sys_wait_h = yes; then
15552
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_SYS_WAIT_H 1
15555 _ACEOF
15556
15557 fi
15558
15559 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15561 if test "${ac_cv_header_time+set}" = set; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 #include <sys/types.h>
15571 #include <sys/time.h>
15572 #include <time.h>
15573
15574 int
15575 main ()
15576 {
15577 if ((struct tm *) 0)
15578 return 0;
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_compile") 2>conftest.er1
15591   ac_status=$?
15592   grep -v '^ *+' conftest.er1 >conftest.err
15593   rm -f conftest.er1
15594   cat conftest.err >&5
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); } &&
15597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598   { (case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_try") 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_try") 2>&5
15614   ac_status=$?
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); }; }; then
15617   ac_cv_header_time=yes
15618 else
15619   echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15621
15622         ac_cv_header_time=no
15623 fi
15624
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 fi
15627 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15628 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15629 if test $ac_cv_header_time = yes; then
15630
15631 cat >>confdefs.h <<\_ACEOF
15632 #define TIME_WITH_SYS_TIME 1
15633 _ACEOF
15634
15635 fi
15636
15637
15638
15639
15640
15641
15642
15643
15644 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15645 do
15646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 fi
15653 ac_res=`eval echo '${'$as_ac_Header'}'`
15654                { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15656 else
15657   # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.$ac_ext <<_ACEOF
15661 /* confdefs.h.  */
15662 _ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h.  */
15666 $ac_includes_default
15667 #include <$ac_header>
15668 _ACEOF
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_compile") 2>conftest.er1
15677   ac_status=$?
15678   grep -v '^ *+' conftest.er1 >conftest.err
15679   rm -f conftest.er1
15680   cat conftest.err >&5
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } &&
15683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684   { (case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_try") 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest.$ac_objext'
15694   { (case "(($ac_try" in
15695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696   *) ac_try_echo=$ac_try;;
15697 esac
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699   (eval "$ac_try") 2>&5
15700   ac_status=$?
15701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702   (exit $ac_status); }; }; then
15703   ac_header_compiler=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708         ac_header_compiler=no
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15714
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 #include <$ac_header>
15725 _ACEOF
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } >/dev/null; then
15739   if test -s conftest.err; then
15740     ac_cpp_err=$ac_c_preproc_warn_flag
15741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15742   else
15743     ac_cpp_err=
15744   fi
15745 else
15746   ac_cpp_err=yes
15747 fi
15748 if test -z "$ac_cpp_err"; then
15749   ac_header_preproc=yes
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754   ac_header_preproc=no
15755 fi
15756
15757 rm -f conftest.err conftest.$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15760
15761 # So?  What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15763   yes:no: )
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768     ac_header_preproc=yes
15769     ;;
15770   no:yes:* )
15771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15783     ( cat <<\_ASBOX
15784 ## ----------------------------------- ##
15785 ## Report this to llvmbugs@cs.uiuc.edu ##
15786 ## ----------------------------------- ##
15787 _ASBOX
15788      ) | sed "s/^/$as_me: WARNING:     /" >&2
15789     ;;
15790 esac
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796   eval "$as_ac_Header=\$ac_header_preproc"
15797 fi
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799                { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15801
15802 fi
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804   cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15806 _ACEOF
15807
15808 fi
15809
15810 done
15811
15812
15813
15814
15815
15816
15817
15818 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15819 do
15820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825   echo $ECHO_N "(cached) $ECHO_C" >&6
15826 fi
15827 ac_res=`eval echo '${'$as_ac_Header'}'`
15828                { echo "$as_me:$LINENO: result: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15830 else
15831   # Is the header compilable?
15832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840 $ac_includes_default
15841 #include <$ac_header>
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (ac_try="$ac_compile"
15845 case "(($ac_try" in
15846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847   *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850   (eval "$ac_compile") 2>conftest.er1
15851   ac_status=$?
15852   grep -v '^ *+' conftest.er1 >conftest.err
15853   rm -f conftest.er1
15854   cat conftest.err >&5
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); } &&
15857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858   { (case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_try") 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; } &&
15867          { ac_try='test -s conftest.$ac_objext'
15868   { (case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_try") 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877   ac_header_compiler=yes
15878 else
15879   echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882         ac_header_compiler=no
15883 fi
15884
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15887 echo "${ECHO_T}$ac_header_compiler" >&6; }
15888
15889 # Is the header present?
15890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898 #include <$ac_header>
15899 _ACEOF
15900 if { (ac_try="$ac_cpp conftest.$ac_ext"
15901 case "(($ac_try" in
15902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15903   *) ac_try_echo=$ac_try;;
15904 esac
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15907   ac_status=$?
15908   grep -v '^ *+' conftest.er1 >conftest.err
15909   rm -f conftest.er1
15910   cat conftest.err >&5
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); } >/dev/null; then
15913   if test -s conftest.err; then
15914     ac_cpp_err=$ac_c_preproc_warn_flag
15915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15916   else
15917     ac_cpp_err=
15918   fi
15919 else
15920   ac_cpp_err=yes
15921 fi
15922 if test -z "$ac_cpp_err"; then
15923   ac_header_preproc=yes
15924 else
15925   echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15927
15928   ac_header_preproc=no
15929 fi
15930
15931 rm -f conftest.err conftest.$ac_ext
15932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15933 echo "${ECHO_T}$ac_header_preproc" >&6; }
15934
15935 # So?  What about this header?
15936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15937   yes:no: )
15938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15942     ac_header_preproc=yes
15943     ;;
15944   no:yes:* )
15945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15957     ( cat <<\_ASBOX
15958 ## ----------------------------------- ##
15959 ## Report this to llvmbugs@cs.uiuc.edu ##
15960 ## ----------------------------------- ##
15961 _ASBOX
15962      ) | sed "s/^/$as_me: WARNING:     /" >&2
15963     ;;
15964 esac
15965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968   echo $ECHO_N "(cached) $ECHO_C" >&6
15969 else
15970   eval "$as_ac_Header=\$ac_header_preproc"
15971 fi
15972 ac_res=`eval echo '${'$as_ac_Header'}'`
15973                { echo "$as_me:$LINENO: result: $ac_res" >&5
15974 echo "${ECHO_T}$ac_res" >&6; }
15975
15976 fi
15977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15978   cat >>confdefs.h <<_ACEOF
15979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15980 _ACEOF
15981
15982 fi
15983
15984 done
15985
15986
15987
15988 for ac_header in utime.h windows.h
15989 do
15990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15995   echo $ECHO_N "(cached) $ECHO_C" >&6
15996 fi
15997 ac_res=`eval echo '${'$as_ac_Header'}'`
15998                { echo "$as_me:$LINENO: result: $ac_res" >&5
15999 echo "${ECHO_T}$ac_res" >&6; }
16000 else
16001   # Is the header compilable?
16002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h.  */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h.  */
16010 $ac_includes_default
16011 #include <$ac_header>
16012 _ACEOF
16013 rm -f conftest.$ac_objext
16014 if { (ac_try="$ac_compile"
16015 case "(($ac_try" in
16016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017   *) ac_try_echo=$ac_try;;
16018 esac
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020   (eval "$ac_compile") 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } &&
16027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028   { (case "(($ac_try" in
16029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16030   *) ac_try_echo=$ac_try;;
16031 esac
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033   (eval "$ac_try") 2>&5
16034   ac_status=$?
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); }; } &&
16037          { ac_try='test -s conftest.$ac_objext'
16038   { (case "(($ac_try" in
16039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040   *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043   (eval "$ac_try") 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   ac_header_compiler=yes
16048 else
16049   echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052         ac_header_compiler=no
16053 fi
16054
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057 echo "${ECHO_T}$ac_header_compiler" >&6; }
16058
16059 # Is the header present?
16060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h.  */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h.  */
16068 #include <$ac_header>
16069 _ACEOF
16070 if { (ac_try="$ac_cpp conftest.$ac_ext"
16071 case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } >/dev/null; then
16083   if test -s conftest.err; then
16084     ac_cpp_err=$ac_c_preproc_warn_flag
16085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16086   else
16087     ac_cpp_err=
16088   fi
16089 else
16090   ac_cpp_err=yes
16091 fi
16092 if test -z "$ac_cpp_err"; then
16093   ac_header_preproc=yes
16094 else
16095   echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16097
16098   ac_header_preproc=no
16099 fi
16100
16101 rm -f conftest.err conftest.$ac_ext
16102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16103 echo "${ECHO_T}$ac_header_preproc" >&6; }
16104
16105 # So?  What about this header?
16106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107   yes:no: )
16108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16112     ac_header_preproc=yes
16113     ;;
16114   no:yes:* )
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16127     ( cat <<\_ASBOX
16128 ## ----------------------------------- ##
16129 ## Report this to llvmbugs@cs.uiuc.edu ##
16130 ## ----------------------------------- ##
16131 _ASBOX
16132      ) | sed "s/^/$as_me: WARNING:     /" >&2
16133     ;;
16134 esac
16135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138   echo $ECHO_N "(cached) $ECHO_C" >&6
16139 else
16140   eval "$as_ac_Header=\$ac_header_preproc"
16141 fi
16142 ac_res=`eval echo '${'$as_ac_Header'}'`
16143                { echo "$as_me:$LINENO: result: $ac_res" >&5
16144 echo "${ECHO_T}$ac_res" >&6; }
16145
16146 fi
16147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16148   cat >>confdefs.h <<_ACEOF
16149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16150 _ACEOF
16151
16152 fi
16153
16154 done
16155
16156
16157
16158
16159
16160 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16161 do
16162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 fi
16169 ac_res=`eval echo '${'$as_ac_Header'}'`
16170                { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16172 else
16173   # Is the header compilable?
16174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176 cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182 $ac_includes_default
16183 #include <$ac_header>
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189   *) ac_try_echo=$ac_try;;
16190 esac
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192   (eval "$ac_compile") 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200   { (case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_try") 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest.$ac_objext'
16210   { (case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_try") 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }; }; then
16219   ac_header_compiler=yes
16220 else
16221   echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16223
16224         ac_header_compiler=no
16225 fi
16226
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229 echo "${ECHO_T}$ac_header_compiler" >&6; }
16230
16231 # Is the header present?
16232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16235 /* confdefs.h.  */
16236 _ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h.  */
16240 #include <$ac_header>
16241 _ACEOF
16242 if { (ac_try="$ac_cpp conftest.$ac_ext"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } >/dev/null; then
16255   if test -s conftest.err; then
16256     ac_cpp_err=$ac_c_preproc_warn_flag
16257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16258   else
16259     ac_cpp_err=
16260   fi
16261 else
16262   ac_cpp_err=yes
16263 fi
16264 if test -z "$ac_cpp_err"; then
16265   ac_header_preproc=yes
16266 else
16267   echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16269
16270   ac_header_preproc=no
16271 fi
16272
16273 rm -f conftest.err conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16276
16277 # So?  What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16279   yes:no: )
16280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284     ac_header_preproc=yes
16285     ;;
16286   no:yes:* )
16287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16299     ( cat <<\_ASBOX
16300 ## ----------------------------------- ##
16301 ## Report this to llvmbugs@cs.uiuc.edu ##
16302 ## ----------------------------------- ##
16303 _ASBOX
16304      ) | sed "s/^/$as_me: WARNING:     /" >&2
16305     ;;
16306 esac
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310   echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312   eval "$as_ac_Header=\$ac_header_preproc"
16313 fi
16314 ac_res=`eval echo '${'$as_ac_Header'}'`
16315                { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16317
16318 fi
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320   cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16322 _ACEOF
16323
16324 fi
16325
16326 done
16327
16328
16329
16330
16331
16332 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16333 do
16334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339   echo $ECHO_N "(cached) $ECHO_C" >&6
16340 fi
16341 ac_res=`eval echo '${'$as_ac_Header'}'`
16342                { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 else
16345   # Is the header compilable?
16346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h.  */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h.  */
16354 $ac_includes_default
16355 #include <$ac_header>
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_compile") 2>conftest.er1
16365   ac_status=$?
16366   grep -v '^ *+' conftest.er1 >conftest.err
16367   rm -f conftest.er1
16368   cat conftest.err >&5
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); } &&
16371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372   { (case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_try") 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; } &&
16381          { ac_try='test -s conftest.$ac_objext'
16382   { (case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_try") 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_header_compiler=yes
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396         ac_header_compiler=no
16397 fi
16398
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401 echo "${ECHO_T}$ac_header_compiler" >&6; }
16402
16403 # Is the header present?
16404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412 #include <$ac_header>
16413 _ACEOF
16414 if { (ac_try="$ac_cpp conftest.$ac_ext"
16415 case "(($ac_try" in
16416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417   *) ac_try_echo=$ac_try;;
16418 esac
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421   ac_status=$?
16422   grep -v '^ *+' conftest.er1 >conftest.err
16423   rm -f conftest.er1
16424   cat conftest.err >&5
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); } >/dev/null; then
16427   if test -s conftest.err; then
16428     ac_cpp_err=$ac_c_preproc_warn_flag
16429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16430   else
16431     ac_cpp_err=
16432   fi
16433 else
16434   ac_cpp_err=yes
16435 fi
16436 if test -z "$ac_cpp_err"; then
16437   ac_header_preproc=yes
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442   ac_header_preproc=no
16443 fi
16444
16445 rm -f conftest.err conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448
16449 # So?  What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451   yes:no: )
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456     ac_header_preproc=yes
16457     ;;
16458   no:yes:* )
16459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471     ( cat <<\_ASBOX
16472 ## ----------------------------------- ##
16473 ## Report this to llvmbugs@cs.uiuc.edu ##
16474 ## ----------------------------------- ##
16475 _ASBOX
16476      ) | sed "s/^/$as_me: WARNING:     /" >&2
16477     ;;
16478 esac
16479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   eval "$as_ac_Header=\$ac_header_preproc"
16485 fi
16486 ac_res=`eval echo '${'$as_ac_Header'}'`
16487                { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489
16490 fi
16491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492   cat >>confdefs.h <<_ACEOF
16493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494 _ACEOF
16495
16496 fi
16497
16498 done
16499
16500
16501 for ac_header in valgrind/valgrind.h
16502 do
16503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
16510 ac_res=`eval echo '${'$as_ac_Header'}'`
16511                { echo "$as_me:$LINENO: result: $ac_res" >&5
16512 echo "${ECHO_T}$ac_res" >&6; }
16513 else
16514   # Is the header compilable?
16515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 $ac_includes_default
16524 #include <$ac_header>
16525 _ACEOF
16526 rm -f conftest.$ac_objext
16527 if { (ac_try="$ac_compile"
16528 case "(($ac_try" in
16529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16530   *) ac_try_echo=$ac_try;;
16531 esac
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533   (eval "$ac_compile") 2>conftest.er1
16534   ac_status=$?
16535   grep -v '^ *+' conftest.er1 >conftest.err
16536   rm -f conftest.er1
16537   cat conftest.err >&5
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); } &&
16540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16541   { (case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_try") 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; } &&
16550          { ac_try='test -s conftest.$ac_objext'
16551   { (case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556   (eval "$ac_try") 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; }; then
16560   ac_header_compiler=yes
16561 else
16562   echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16564
16565         ac_header_compiler=no
16566 fi
16567
16568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16570 echo "${ECHO_T}$ac_header_compiler" >&6; }
16571
16572 # Is the header present?
16573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16575 cat >conftest.$ac_ext <<_ACEOF
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 #include <$ac_header>
16582 _ACEOF
16583 if { (ac_try="$ac_cpp conftest.$ac_ext"
16584 case "(($ac_try" in
16585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586   *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16590   ac_status=$?
16591   grep -v '^ *+' conftest.er1 >conftest.err
16592   rm -f conftest.er1
16593   cat conftest.err >&5
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); } >/dev/null; then
16596   if test -s conftest.err; then
16597     ac_cpp_err=$ac_c_preproc_warn_flag
16598     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16599   else
16600     ac_cpp_err=
16601   fi
16602 else
16603   ac_cpp_err=yes
16604 fi
16605 if test -z "$ac_cpp_err"; then
16606   ac_header_preproc=yes
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611   ac_header_preproc=no
16612 fi
16613
16614 rm -f conftest.err conftest.$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16616 echo "${ECHO_T}$ac_header_preproc" >&6; }
16617
16618 # So?  What about this header?
16619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16620   yes:no: )
16621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16625     ac_header_preproc=yes
16626     ;;
16627   no:yes:* )
16628     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16630     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16631 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16635 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16640     ( cat <<\_ASBOX
16641 ## ----------------------------------- ##
16642 ## Report this to llvmbugs@cs.uiuc.edu ##
16643 ## ----------------------------------- ##
16644 _ASBOX
16645      ) | sed "s/^/$as_me: WARNING:     /" >&2
16646     ;;
16647 esac
16648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16651   echo $ECHO_N "(cached) $ECHO_C" >&6
16652 else
16653   eval "$as_ac_Header=\$ac_header_preproc"
16654 fi
16655 ac_res=`eval echo '${'$as_ac_Header'}'`
16656                { echo "$as_me:$LINENO: result: $ac_res" >&5
16657 echo "${ECHO_T}$ac_res" >&6; }
16658
16659 fi
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661   cat >>confdefs.h <<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16663 _ACEOF
16664
16665 fi
16666
16667 done
16668
16669
16670 for ac_header in fenv.h
16671 do
16672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 fi
16679 ac_res=`eval echo '${'$as_ac_Header'}'`
16680                { echo "$as_me:$LINENO: result: $ac_res" >&5
16681 echo "${ECHO_T}$ac_res" >&6; }
16682 else
16683   # Is the header compilable?
16684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 $ac_includes_default
16693 #include <$ac_header>
16694 _ACEOF
16695 rm -f conftest.$ac_objext
16696 if { (ac_try="$ac_compile"
16697 case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_compile") 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710   { (case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_try") 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; } &&
16719          { ac_try='test -s conftest.$ac_objext'
16720   { (case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725   (eval "$ac_try") 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   ac_header_compiler=yes
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734         ac_header_compiler=no
16735 fi
16736
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739 echo "${ECHO_T}$ac_header_compiler" >&6; }
16740
16741 # Is the header present?
16742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750 #include <$ac_header>
16751 _ACEOF
16752 if { (ac_try="$ac_cpp conftest.$ac_ext"
16753 case "(($ac_try" in
16754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755   *) ac_try_echo=$ac_try;;
16756 esac
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16759   ac_status=$?
16760   grep -v '^ *+' conftest.er1 >conftest.err
16761   rm -f conftest.er1
16762   cat conftest.err >&5
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); } >/dev/null; then
16765   if test -s conftest.err; then
16766     ac_cpp_err=$ac_c_preproc_warn_flag
16767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16768   else
16769     ac_cpp_err=
16770   fi
16771 else
16772   ac_cpp_err=yes
16773 fi
16774 if test -z "$ac_cpp_err"; then
16775   ac_header_preproc=yes
16776 else
16777   echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780   ac_header_preproc=no
16781 fi
16782
16783 rm -f conftest.err conftest.$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785 echo "${ECHO_T}$ac_header_preproc" >&6; }
16786
16787 # So?  What about this header?
16788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16789   yes:no: )
16790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794     ac_header_preproc=yes
16795     ;;
16796   no:yes:* )
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16809     ( cat <<\_ASBOX
16810 ## ----------------------------------- ##
16811 ## Report this to llvmbugs@cs.uiuc.edu ##
16812 ## ----------------------------------- ##
16813 _ASBOX
16814      ) | sed "s/^/$as_me: WARNING:     /" >&2
16815     ;;
16816 esac
16817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   eval "$as_ac_Header=\$ac_header_preproc"
16823 fi
16824 ac_res=`eval echo '${'$as_ac_Header'}'`
16825                { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16827
16828 fi
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830   cat >>confdefs.h <<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16832 _ACEOF
16833
16834 fi
16835
16836 done
16837
16838 if test "$ENABLE_THREADS" -eq 1 ; then
16839
16840 for ac_header in pthread.h
16841 do
16842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16844   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16847   echo $ECHO_N "(cached) $ECHO_C" >&6
16848 fi
16849 ac_res=`eval echo '${'$as_ac_Header'}'`
16850                { echo "$as_me:$LINENO: result: $ac_res" >&5
16851 echo "${ECHO_T}$ac_res" >&6; }
16852 else
16853   # Is the header compilable?
16854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16856 cat >conftest.$ac_ext <<_ACEOF
16857 /* confdefs.h.  */
16858 _ACEOF
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h.  */
16862 $ac_includes_default
16863 #include <$ac_header>
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_compile") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16880   { (case "(($ac_try" in
16881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882   *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885   (eval "$ac_try") 2>&5
16886   ac_status=$?
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); }; } &&
16889          { ac_try='test -s conftest.$ac_objext'
16890   { (case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_try") 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_header_compiler=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904         ac_header_compiler=no
16905 fi
16906
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16909 echo "${ECHO_T}$ac_header_compiler" >&6; }
16910
16911 # Is the header present?
16912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16914 cat >conftest.$ac_ext <<_ACEOF
16915 /* confdefs.h.  */
16916 _ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h.  */
16920 #include <$ac_header>
16921 _ACEOF
16922 if { (ac_try="$ac_cpp conftest.$ac_ext"
16923 case "(($ac_try" in
16924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925   *) ac_try_echo=$ac_try;;
16926 esac
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16929   ac_status=$?
16930   grep -v '^ *+' conftest.er1 >conftest.err
16931   rm -f conftest.er1
16932   cat conftest.err >&5
16933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934   (exit $ac_status); } >/dev/null; then
16935   if test -s conftest.err; then
16936     ac_cpp_err=$ac_c_preproc_warn_flag
16937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16938   else
16939     ac_cpp_err=
16940   fi
16941 else
16942   ac_cpp_err=yes
16943 fi
16944 if test -z "$ac_cpp_err"; then
16945   ac_header_preproc=yes
16946 else
16947   echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950   ac_header_preproc=no
16951 fi
16952
16953 rm -f conftest.err conftest.$ac_ext
16954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16955 echo "${ECHO_T}$ac_header_preproc" >&6; }
16956
16957 # So?  What about this header?
16958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16959   yes:no: )
16960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16964     ac_header_preproc=yes
16965     ;;
16966   no:yes:* )
16967     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16969     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16971     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16973     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16974 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16979     ( cat <<\_ASBOX
16980 ## ----------------------------------- ##
16981 ## Report this to llvmbugs@cs.uiuc.edu ##
16982 ## ----------------------------------- ##
16983 _ASBOX
16984      ) | sed "s/^/$as_me: WARNING:     /" >&2
16985     ;;
16986 esac
16987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990   echo $ECHO_N "(cached) $ECHO_C" >&6
16991 else
16992   eval "$as_ac_Header=\$ac_header_preproc"
16993 fi
16994 ac_res=`eval echo '${'$as_ac_Header'}'`
16995                { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16997
16998 fi
16999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17000   cat >>confdefs.h <<_ACEOF
17001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17002 _ACEOF
17003  HAVE_PTHREAD=1
17004
17005 else
17006   HAVE_PTHREAD=0
17007
17008 fi
17009
17010 done
17011
17012 else
17013   HAVE_PTHREAD=0
17014
17015 fi
17016
17017 if test "$llvm_cv_enable_libffi" = "yes" ; then
17018
17019
17020 for ac_header in ffi.h ffi/ffi.h
17021 do
17022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17027   echo $ECHO_N "(cached) $ECHO_C" >&6
17028 fi
17029 ac_res=`eval echo '${'$as_ac_Header'}'`
17030                { echo "$as_me:$LINENO: result: $ac_res" >&5
17031 echo "${ECHO_T}$ac_res" >&6; }
17032 else
17033   # Is the header compilable?
17034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 $ac_includes_default
17043 #include <$ac_header>
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (ac_try="$ac_compile"
17047 case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052   (eval "$ac_compile") 2>conftest.er1
17053   ac_status=$?
17054   grep -v '^ *+' conftest.er1 >conftest.err
17055   rm -f conftest.er1
17056   cat conftest.err >&5
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); } &&
17059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; } &&
17069          { ac_try='test -s conftest.$ac_objext'
17070   { (case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075   (eval "$ac_try") 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; }; then
17079   ac_header_compiler=yes
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084         ac_header_compiler=no
17085 fi
17086
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17089 echo "${ECHO_T}$ac_header_compiler" >&6; }
17090
17091 # Is the header present?
17092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100 #include <$ac_header>
17101 _ACEOF
17102 if { (ac_try="$ac_cpp conftest.$ac_ext"
17103 case "(($ac_try" in
17104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105   *) ac_try_echo=$ac_try;;
17106 esac
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } >/dev/null; then
17115   if test -s conftest.err; then
17116     ac_cpp_err=$ac_c_preproc_warn_flag
17117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17118   else
17119     ac_cpp_err=
17120   fi
17121 else
17122   ac_cpp_err=yes
17123 fi
17124 if test -z "$ac_cpp_err"; then
17125   ac_header_preproc=yes
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130   ac_header_preproc=no
17131 fi
17132
17133 rm -f conftest.err conftest.$ac_ext
17134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17135 echo "${ECHO_T}$ac_header_preproc" >&6; }
17136
17137 # So?  What about this header?
17138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17139   yes:no: )
17140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17144     ac_header_preproc=yes
17145     ;;
17146   no:yes:* )
17147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17159     ( cat <<\_ASBOX
17160 ## ----------------------------------- ##
17161 ## Report this to llvmbugs@cs.uiuc.edu ##
17162 ## ----------------------------------- ##
17163 _ASBOX
17164      ) | sed "s/^/$as_me: WARNING:     /" >&2
17165     ;;
17166 esac
17167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17170   echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172   eval "$as_ac_Header=\$ac_header_preproc"
17173 fi
17174 ac_res=`eval echo '${'$as_ac_Header'}'`
17175                { echo "$as_me:$LINENO: result: $ac_res" >&5
17176 echo "${ECHO_T}$ac_res" >&6; }
17177
17178 fi
17179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17180   cat >>confdefs.h <<_ACEOF
17181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17182 _ACEOF
17183
17184 fi
17185
17186 done
17187
17188 fi
17189
17190
17191 for ac_header in CrashReporterClient.h
17192 do
17193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 fi
17200 ac_res=`eval echo '${'$as_ac_Header'}'`
17201                { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17203 else
17204   # Is the header compilable?
17205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17207 cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213 $ac_includes_default
17214 #include <$ac_header>
17215 _ACEOF
17216 rm -f conftest.$ac_objext
17217 if { (ac_try="$ac_compile"
17218 case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_compile") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231   { (case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_try") 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; } &&
17240          { ac_try='test -s conftest.$ac_objext'
17241   { (case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_try") 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   ac_header_compiler=yes
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         ac_header_compiler=no
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17260 echo "${ECHO_T}$ac_header_compiler" >&6; }
17261
17262 # Is the header present?
17263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17265 cat >conftest.$ac_ext <<_ACEOF
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271 #include <$ac_header>
17272 _ACEOF
17273 if { (ac_try="$ac_cpp conftest.$ac_ext"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } >/dev/null; then
17286   if test -s conftest.err; then
17287     ac_cpp_err=$ac_c_preproc_warn_flag
17288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17289   else
17290     ac_cpp_err=
17291   fi
17292 else
17293   ac_cpp_err=yes
17294 fi
17295 if test -z "$ac_cpp_err"; then
17296   ac_header_preproc=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301   ac_header_preproc=no
17302 fi
17303
17304 rm -f conftest.err conftest.$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17307
17308 # So?  What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17310   yes:no: )
17311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17315     ac_header_preproc=yes
17316     ;;
17317   no:yes:* )
17318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17330     ( cat <<\_ASBOX
17331 ## ----------------------------------- ##
17332 ## Report this to llvmbugs@cs.uiuc.edu ##
17333 ## ----------------------------------- ##
17334 _ASBOX
17335      ) | sed "s/^/$as_me: WARNING:     /" >&2
17336     ;;
17337 esac
17338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341   echo $ECHO_N "(cached) $ECHO_C" >&6
17342 else
17343   eval "$as_ac_Header=\$ac_header_preproc"
17344 fi
17345 ac_res=`eval echo '${'$as_ac_Header'}'`
17346                { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17348
17349 fi
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351   cat >>confdefs.h <<_ACEOF
17352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17353 _ACEOF
17354
17355 fi
17356
17357 done
17358
17359
17360
17361
17362
17363   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17364 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17365 if test "${ac_cv_huge_val_sanity+set}" = set; then
17366   echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368
17369     ac_ext=cpp
17370 ac_cpp='$CXXCPP $CPPFLAGS'
17371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17374
17375     ac_save_CXXFLAGS=$CXXFLAGS
17376     CXXFLAGS=-pedantic
17377     if test "$cross_compiling" = yes; then
17378   ac_cv_huge_val_sanity=yes
17379 else
17380   cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 #include <math.h>
17387 int
17388 main ()
17389 {
17390 double x = HUGE_VAL; return x != x;
17391   ;
17392   return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_link") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17406   { (case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_try") 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   ac_cv_huge_val_sanity=yes
17416 else
17417   echo "$as_me: program exited with status $ac_status" >&5
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ( exit $ac_status )
17422 ac_cv_huge_val_sanity=no
17423 fi
17424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17425 fi
17426
17427
17428     CXXFLAGS=$ac_save_CXXFLAGS
17429     ac_ext=c
17430 ac_cpp='$CPP $CPPFLAGS'
17431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17434
17435
17436 fi
17437 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17438 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17439   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17440
17441
17442 { echo "$as_me:$LINENO: checking for pid_t" >&5
17443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17444 if test "${ac_cv_type_pid_t+set}" = set; then
17445   echo $ECHO_N "(cached) $ECHO_C" >&6
17446 else
17447   cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h.  */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h.  */
17453 $ac_includes_default
17454 typedef pid_t ac__type_new_;
17455 int
17456 main ()
17457 {
17458 if ((ac__type_new_ *) 0)
17459   return 0;
17460 if (sizeof (ac__type_new_))
17461   return 0;
17462   ;
17463   return 0;
17464 }
17465 _ACEOF
17466 rm -f conftest.$ac_objext
17467 if { (ac_try="$ac_compile"
17468 case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_compile") 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } &&
17480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481   { (case "(($ac_try" in
17482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483   *) ac_try_echo=$ac_try;;
17484 esac
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486   (eval "$ac_try") 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; } &&
17490          { ac_try='test -s conftest.$ac_objext'
17491   { (case "(($ac_try" in
17492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493   *) ac_try_echo=$ac_try;;
17494 esac
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496   (eval "$ac_try") 2>&5
17497   ac_status=$?
17498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499   (exit $ac_status); }; }; then
17500   ac_cv_type_pid_t=yes
17501 else
17502   echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17504
17505         ac_cv_type_pid_t=no
17506 fi
17507
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 fi
17510 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17511 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17512 if test $ac_cv_type_pid_t = yes; then
17513   :
17514 else
17515
17516 cat >>confdefs.h <<_ACEOF
17517 #define pid_t int
17518 _ACEOF
17519
17520 fi
17521
17522 { echo "$as_me:$LINENO: checking for size_t" >&5
17523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17524 if test "${ac_cv_type_size_t+set}" = set; then
17525   echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527   cat >conftest.$ac_ext <<_ACEOF
17528 /* confdefs.h.  */
17529 _ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h.  */
17533 $ac_includes_default
17534 typedef size_t ac__type_new_;
17535 int
17536 main ()
17537 {
17538 if ((ac__type_new_ *) 0)
17539   return 0;
17540 if (sizeof (ac__type_new_))
17541   return 0;
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (ac_try="$ac_compile"
17548 case "(($ac_try" in
17549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550   *) ac_try_echo=$ac_try;;
17551 esac
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553   (eval "$ac_compile") 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561   { (case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_try") 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest.$ac_objext'
17571   { (case "(($ac_try" in
17572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573   *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576   (eval "$ac_try") 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; }; then
17580   ac_cv_type_size_t=yes
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585         ac_cv_type_size_t=no
17586 fi
17587
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 fi
17590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17592 if test $ac_cv_type_size_t = yes; then
17593   :
17594 else
17595
17596 cat >>confdefs.h <<_ACEOF
17597 #define size_t unsigned int
17598 _ACEOF
17599
17600 fi
17601
17602
17603 cat >>confdefs.h <<_ACEOF
17604 #define RETSIGTYPE void
17605 _ACEOF
17606
17607 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17608 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17609 if test "${ac_cv_struct_tm+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612   cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h.  */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h.  */
17618 #include <sys/types.h>
17619 #include <time.h>
17620
17621 int
17622 main ()
17623 {
17624 struct tm *tp; tp->tm_sec;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (ac_try="$ac_compile"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_compile") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644   { (case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_try") 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; } &&
17653          { ac_try='test -s conftest.$ac_objext'
17654   { (case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_try") 2>&5
17660   ac_status=$?
17661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662   (exit $ac_status); }; }; then
17663   ac_cv_struct_tm=time.h
17664 else
17665   echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668         ac_cv_struct_tm=sys/time.h
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17674 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17675 if test $ac_cv_struct_tm = sys/time.h; then
17676
17677 cat >>confdefs.h <<\_ACEOF
17678 #define TM_IN_SYS_TIME 1
17679 _ACEOF
17680
17681 fi
17682
17683 { echo "$as_me:$LINENO: checking for int64_t" >&5
17684 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17685 if test "${ac_cv_type_int64_t+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 $ac_includes_default
17695 typedef int64_t ac__type_new_;
17696 int
17697 main ()
17698 {
17699 if ((ac__type_new_ *) 0)
17700   return 0;
17701 if (sizeof (ac__type_new_))
17702   return 0;
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714   (eval "$ac_compile") 2>conftest.er1
17715   ac_status=$?
17716   grep -v '^ *+' conftest.er1 >conftest.err
17717   rm -f conftest.er1
17718   cat conftest.err >&5
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); } &&
17721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; } &&
17731          { ac_try='test -s conftest.$ac_objext'
17732   { (case "(($ac_try" in
17733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734   *) ac_try_echo=$ac_try;;
17735 esac
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737   (eval "$ac_try") 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741   ac_cv_type_int64_t=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746         ac_cv_type_int64_t=no
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 fi
17751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17753 if test $ac_cv_type_int64_t = yes; then
17754
17755 cat >>confdefs.h <<_ACEOF
17756 #define HAVE_INT64_T 1
17757 _ACEOF
17758
17759
17760 else
17761   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17762 echo "$as_me: error: Type int64_t required but not found" >&2;}
17763    { (exit 1); exit 1; }; }
17764 fi
17765
17766 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17768 if test "${ac_cv_type_uint64_t+set}" = set; then
17769   echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771   cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h.  */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h.  */
17777 $ac_includes_default
17778 typedef uint64_t ac__type_new_;
17779 int
17780 main ()
17781 {
17782 if ((ac__type_new_ *) 0)
17783   return 0;
17784 if (sizeof (ac__type_new_))
17785   return 0;
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_compile") 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; } &&
17814          { ac_try='test -s conftest.$ac_objext'
17815   { (case "(($ac_try" in
17816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817   *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820   (eval "$ac_try") 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_cv_type_uint64_t=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829         ac_cv_type_uint64_t=no
17830 fi
17831
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17833 fi
17834 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17836 if test $ac_cv_type_uint64_t = yes; then
17837
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_UINT64_T 1
17840 _ACEOF
17841
17842
17843 else
17844   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17845 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17846 if test "${ac_cv_type_u_int64_t+set}" = set; then
17847   echo $ECHO_N "(cached) $ECHO_C" >&6
17848 else
17849   cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855 $ac_includes_default
17856 typedef u_int64_t ac__type_new_;
17857 int
17858 main ()
17859 {
17860 if ((ac__type_new_ *) 0)
17861   return 0;
17862 if (sizeof (ac__type_new_))
17863   return 0;
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872   *) ac_try_echo=$ac_try;;
17873 esac
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875   (eval "$ac_compile") 2>conftest.er1
17876   ac_status=$?
17877   grep -v '^ *+' conftest.er1 >conftest.err
17878   rm -f conftest.er1
17879   cat conftest.err >&5
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); } &&
17882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883   { (case "(($ac_try" in
17884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885   *) ac_try_echo=$ac_try;;
17886 esac
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888   (eval "$ac_try") 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; } &&
17892          { ac_try='test -s conftest.$ac_objext'
17893   { (case "(($ac_try" in
17894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895   *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898   (eval "$ac_try") 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   ac_cv_type_u_int64_t=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907         ac_cv_type_u_int64_t=no
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 fi
17912 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17913 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17914 if test $ac_cv_type_u_int64_t = yes; then
17915
17916 cat >>confdefs.h <<_ACEOF
17917 #define HAVE_U_INT64_T 1
17918 _ACEOF
17919
17920
17921 else
17922   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17923 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17924    { (exit 1); exit 1; }; }
17925 fi
17926
17927 fi
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17939 do
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17954 #define $ac_func innocuous_$ac_func
17955
17956 /* System header to define __stub macros and hopefully few prototypes,
17957     which can conflict with char $ac_func (); below.
17958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959     <limits.h> exists even on freestanding compilers.  */
17960
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17966
17967 #undef $ac_func
17968
17969 /* Override any GCC internal prototype to avoid an error.
17970    Use char because int might match the return type of a GCC
17971    builtin and then its argument prototype would still apply.  */
17972 #ifdef __cplusplus
17973 extern "C"
17974 #endif
17975 char $ac_func ();
17976 /* The GNU C library defines this for functions which it implements
17977     to always fail with ENOSYS.  Some functions are actually named
17978     something starting with __ and the normal name is an alias.  */
17979 #if defined __stub_$ac_func || defined __stub___$ac_func
17980 choke me
17981 #endif
17982
17983 int
17984 main ()
17985 {
17986 return $ac_func ();
17987   ;
17988   return 0;
17989 }
17990 _ACEOF
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995   *) ac_try_echo=$ac_try;;
17996 esac
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998   (eval "$ac_link") 2>conftest.er1
17999   ac_status=$?
18000   grep -v '^ *+' conftest.er1 >conftest.err
18001   rm -f conftest.er1
18002   cat conftest.err >&5
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } &&
18005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006   { (case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011   (eval "$ac_try") 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; } &&
18015          { ac_try='test -s conftest$ac_exeext'
18016   { (case "(($ac_try" in
18017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018   *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021   (eval "$ac_try") 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); }; }; then
18025   eval "$as_ac_var=yes"
18026 else
18027   echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030         eval "$as_ac_var=no"
18031 fi
18032
18033 rm -f core conftest.err conftest.$ac_objext \
18034       conftest$ac_exeext conftest.$ac_ext
18035 fi
18036 ac_res=`eval echo '${'$as_ac_var'}'`
18037                { echo "$as_me:$LINENO: result: $ac_res" >&5
18038 echo "${ECHO_T}$ac_res" >&6; }
18039 if test `eval echo '${'$as_ac_var'}'` = yes; then
18040   cat >>confdefs.h <<_ACEOF
18041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18042 _ACEOF
18043
18044 fi
18045 done
18046
18047
18048
18049
18050
18051 for ac_func in powf fmodf strtof round
18052 do
18053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18057   echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059   cat >conftest.$ac_ext <<_ACEOF
18060 /* confdefs.h.  */
18061 _ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h.  */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18067 #define $ac_func innocuous_$ac_func
18068
18069 /* System header to define __stub macros and hopefully few prototypes,
18070     which can conflict with char $ac_func (); below.
18071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072     <limits.h> exists even on freestanding compilers.  */
18073
18074 #ifdef __STDC__
18075 # include <limits.h>
18076 #else
18077 # include <assert.h>
18078 #endif
18079
18080 #undef $ac_func
18081
18082 /* Override any GCC internal prototype to avoid an error.
18083    Use char because int might match the return type of a GCC
18084    builtin and then its argument prototype would still apply.  */
18085 #ifdef __cplusplus
18086 extern "C"
18087 #endif
18088 char $ac_func ();
18089 /* The GNU C library defines this for functions which it implements
18090     to always fail with ENOSYS.  Some functions are actually named
18091     something starting with __ and the normal name is an alias.  */
18092 #if defined __stub_$ac_func || defined __stub___$ac_func
18093 choke me
18094 #endif
18095
18096 int
18097 main ()
18098 {
18099 return $ac_func ();
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_link") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } &&
18118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; } &&
18128          { ac_try='test -s conftest$ac_exeext'
18129   { (case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_try") 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   eval "$as_ac_var=yes"
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         eval "$as_ac_var=no"
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext \
18147       conftest$ac_exeext conftest.$ac_ext
18148 fi
18149 ac_res=`eval echo '${'$as_ac_var'}'`
18150                { echo "$as_me:$LINENO: result: $ac_res" >&5
18151 echo "${ECHO_T}$ac_res" >&6; }
18152 if test `eval echo '${'$as_ac_var'}'` = yes; then
18153   cat >>confdefs.h <<_ACEOF
18154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18155 _ACEOF
18156
18157 fi
18158 done
18159
18160
18161
18162
18163
18164
18165 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18166 do
18167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18171   echo $ECHO_N "(cached) $ECHO_C" >&6
18172 else
18173   cat >conftest.$ac_ext <<_ACEOF
18174 /* confdefs.h.  */
18175 _ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h.  */
18179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18181 #define $ac_func innocuous_$ac_func
18182
18183 /* System header to define __stub macros and hopefully few prototypes,
18184     which can conflict with char $ac_func (); below.
18185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18186     <limits.h> exists even on freestanding compilers.  */
18187
18188 #ifdef __STDC__
18189 # include <limits.h>
18190 #else
18191 # include <assert.h>
18192 #endif
18193
18194 #undef $ac_func
18195
18196 /* Override any GCC internal prototype to avoid an error.
18197    Use char because int might match the return type of a GCC
18198    builtin and then its argument prototype would still apply.  */
18199 #ifdef __cplusplus
18200 extern "C"
18201 #endif
18202 char $ac_func ();
18203 /* The GNU C library defines this for functions which it implements
18204     to always fail with ENOSYS.  Some functions are actually named
18205     something starting with __ and the normal name is an alias.  */
18206 #if defined __stub_$ac_func || defined __stub___$ac_func
18207 choke me
18208 #endif
18209
18210 int
18211 main ()
18212 {
18213 return $ac_func ();
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext conftest$ac_exeext
18219 if { (ac_try="$ac_link"
18220 case "(($ac_try" in
18221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222   *) ac_try_echo=$ac_try;;
18223 esac
18224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225   (eval "$ac_link") 2>conftest.er1
18226   ac_status=$?
18227   grep -v '^ *+' conftest.er1 >conftest.err
18228   rm -f conftest.er1
18229   cat conftest.err >&5
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); } &&
18232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18233   { (case "(($ac_try" in
18234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235   *) ac_try_echo=$ac_try;;
18236 esac
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238   (eval "$ac_try") 2>&5
18239   ac_status=$?
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); }; } &&
18242          { ac_try='test -s conftest$ac_exeext'
18243   { (case "(($ac_try" in
18244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245   *) ac_try_echo=$ac_try;;
18246 esac
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248   (eval "$ac_try") 2>&5
18249   ac_status=$?
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); }; }; then
18252   eval "$as_ac_var=yes"
18253 else
18254   echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257         eval "$as_ac_var=no"
18258 fi
18259
18260 rm -f core conftest.err conftest.$ac_objext \
18261       conftest$ac_exeext conftest.$ac_ext
18262 fi
18263 ac_res=`eval echo '${'$as_ac_var'}'`
18264                { echo "$as_me:$LINENO: result: $ac_res" >&5
18265 echo "${ECHO_T}$ac_res" >&6; }
18266 if test `eval echo '${'$as_ac_var'}'` = yes; then
18267   cat >>confdefs.h <<_ACEOF
18268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18269 _ACEOF
18270
18271 fi
18272 done
18273
18274
18275
18276
18277 for ac_func in isatty mkdtemp mkstemp
18278 do
18279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18293 #define $ac_func innocuous_$ac_func
18294
18295 /* System header to define __stub macros and hopefully few prototypes,
18296     which can conflict with char $ac_func (); below.
18297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298     <limits.h> exists even on freestanding compilers.  */
18299
18300 #ifdef __STDC__
18301 # include <limits.h>
18302 #else
18303 # include <assert.h>
18304 #endif
18305
18306 #undef $ac_func
18307
18308 /* Override any GCC internal prototype to avoid an error.
18309    Use char because int might match the return type of a GCC
18310    builtin and then its argument prototype would still apply.  */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char $ac_func ();
18315 /* The GNU C library defines this for functions which it implements
18316     to always fail with ENOSYS.  Some functions are actually named
18317     something starting with __ and the normal name is an alias.  */
18318 #if defined __stub_$ac_func || defined __stub___$ac_func
18319 choke me
18320 #endif
18321
18322 int
18323 main ()
18324 {
18325 return $ac_func ();
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (ac_try="$ac_link"
18332 case "(($ac_try" in
18333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334   *) ac_try_echo=$ac_try;;
18335 esac
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337   (eval "$ac_link") 2>conftest.er1
18338   ac_status=$?
18339   grep -v '^ *+' conftest.er1 >conftest.err
18340   rm -f conftest.er1
18341   cat conftest.err >&5
18342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343   (exit $ac_status); } &&
18344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345   { (case "(($ac_try" in
18346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347   *) ac_try_echo=$ac_try;;
18348 esac
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350   (eval "$ac_try") 2>&5
18351   ac_status=$?
18352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353   (exit $ac_status); }; } &&
18354          { ac_try='test -s conftest$ac_exeext'
18355   { (case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_try") 2>&5
18361   ac_status=$?
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); }; }; then
18364   eval "$as_ac_var=yes"
18365 else
18366   echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18368
18369         eval "$as_ac_var=no"
18370 fi
18371
18372 rm -f core conftest.err conftest.$ac_objext \
18373       conftest$ac_exeext conftest.$ac_ext
18374 fi
18375 ac_res=`eval echo '${'$as_ac_var'}'`
18376                { echo "$as_me:$LINENO: result: $ac_res" >&5
18377 echo "${ECHO_T}$ac_res" >&6; }
18378 if test `eval echo '${'$as_ac_var'}'` = yes; then
18379   cat >>confdefs.h <<_ACEOF
18380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18381 _ACEOF
18382
18383 fi
18384 done
18385
18386
18387
18388
18389
18390
18391
18392 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18393 do
18394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18398   echo $ECHO_N "(cached) $ECHO_C" >&6
18399 else
18400   cat >conftest.$ac_ext <<_ACEOF
18401 /* confdefs.h.  */
18402 _ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h.  */
18406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18408 #define $ac_func innocuous_$ac_func
18409
18410 /* System header to define __stub macros and hopefully few prototypes,
18411     which can conflict with char $ac_func (); below.
18412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18413     <limits.h> exists even on freestanding compilers.  */
18414
18415 #ifdef __STDC__
18416 # include <limits.h>
18417 #else
18418 # include <assert.h>
18419 #endif
18420
18421 #undef $ac_func
18422
18423 /* Override any GCC internal prototype to avoid an error.
18424    Use char because int might match the return type of a GCC
18425    builtin and then its argument prototype would still apply.  */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 char $ac_func ();
18430 /* The GNU C library defines this for functions which it implements
18431     to always fail with ENOSYS.  Some functions are actually named
18432     something starting with __ and the normal name is an alias.  */
18433 #if defined __stub_$ac_func || defined __stub___$ac_func
18434 choke me
18435 #endif
18436
18437 int
18438 main ()
18439 {
18440 return $ac_func ();
18441   ;
18442   return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext conftest$ac_exeext
18446 if { (ac_try="$ac_link"
18447 case "(($ac_try" in
18448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449   *) ac_try_echo=$ac_try;;
18450 esac
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452   (eval "$ac_link") 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } &&
18459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460   { (case "(($ac_try" in
18461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462   *) ac_try_echo=$ac_try;;
18463 esac
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465   (eval "$ac_try") 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); }; } &&
18469          { ac_try='test -s conftest$ac_exeext'
18470   { (case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475   (eval "$ac_try") 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); }; }; then
18479   eval "$as_ac_var=yes"
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484         eval "$as_ac_var=no"
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext \
18488       conftest$ac_exeext conftest.$ac_ext
18489 fi
18490 ac_res=`eval echo '${'$as_ac_var'}'`
18491                { echo "$as_me:$LINENO: result: $ac_res" >&5
18492 echo "${ECHO_T}$ac_res" >&6; }
18493 if test `eval echo '${'$as_ac_var'}'` = yes; then
18494   cat >>confdefs.h <<_ACEOF
18495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18496 _ACEOF
18497
18498 fi
18499 done
18500
18501
18502
18503
18504
18505 for ac_func in strerror strerror_r strerror_s setenv
18506 do
18507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511   echo $ECHO_N "(cached) $ECHO_C" >&6
18512 else
18513   cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18521 #define $ac_func innocuous_$ac_func
18522
18523 /* System header to define __stub macros and hopefully few prototypes,
18524     which can conflict with char $ac_func (); below.
18525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526     <limits.h> exists even on freestanding compilers.  */
18527
18528 #ifdef __STDC__
18529 # include <limits.h>
18530 #else
18531 # include <assert.h>
18532 #endif
18533
18534 #undef $ac_func
18535
18536 /* Override any GCC internal prototype to avoid an error.
18537    Use char because int might match the return type of a GCC
18538    builtin and then its argument prototype would still apply.  */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 char $ac_func ();
18543 /* The GNU C library defines this for functions which it implements
18544     to always fail with ENOSYS.  Some functions are actually named
18545     something starting with __ and the normal name is an alias.  */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18547 choke me
18548 #endif
18549
18550 int
18551 main ()
18552 {
18553 return $ac_func ();
18554   ;
18555   return 0;
18556 }
18557 _ACEOF
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562   *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565   (eval "$ac_link") 2>conftest.er1
18566   ac_status=$?
18567   grep -v '^ *+' conftest.er1 >conftest.err
18568   rm -f conftest.er1
18569   cat conftest.err >&5
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); } &&
18572          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573   { (case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_try") 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; } &&
18582          { ac_try='test -s conftest$ac_exeext'
18583   { (case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588   (eval "$ac_try") 2>&5
18589   ac_status=$?
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); }; }; then
18592   eval "$as_ac_var=yes"
18593 else
18594   echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597         eval "$as_ac_var=no"
18598 fi
18599
18600 rm -f core conftest.err conftest.$ac_objext \
18601       conftest$ac_exeext conftest.$ac_ext
18602 fi
18603 ac_res=`eval echo '${'$as_ac_var'}'`
18604                { echo "$as_me:$LINENO: result: $ac_res" >&5
18605 echo "${ECHO_T}$ac_res" >&6; }
18606 if test `eval echo '${'$as_ac_var'}'` = yes; then
18607   cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18609 _ACEOF
18610
18611 fi
18612 done
18613
18614
18615
18616
18617
18618 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18619 do
18620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h.  */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h.  */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18634 #define $ac_func innocuous_$ac_func
18635
18636 /* System header to define __stub macros and hopefully few prototypes,
18637     which can conflict with char $ac_func (); below.
18638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639     <limits.h> exists even on freestanding compilers.  */
18640
18641 #ifdef __STDC__
18642 # include <limits.h>
18643 #else
18644 # include <assert.h>
18645 #endif
18646
18647 #undef $ac_func
18648
18649 /* Override any GCC internal prototype to avoid an error.
18650    Use char because int might match the return type of a GCC
18651    builtin and then its argument prototype would still apply.  */
18652 #ifdef __cplusplus
18653 extern "C"
18654 #endif
18655 char $ac_func ();
18656 /* The GNU C library defines this for functions which it implements
18657     to always fail with ENOSYS.  Some functions are actually named
18658     something starting with __ and the normal name is an alias.  */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 choke me
18661 #endif
18662
18663 int
18664 main ()
18665 {
18666 return $ac_func ();
18667   ;
18668   return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_link") 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } &&
18685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686   { (case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_try") 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; } &&
18695          { ac_try='test -s conftest$ac_exeext'
18696   { (case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701   (eval "$ac_try") 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); }; }; then
18705   eval "$as_ac_var=yes"
18706 else
18707   echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710         eval "$as_ac_var=no"
18711 fi
18712
18713 rm -f core conftest.err conftest.$ac_objext \
18714       conftest$ac_exeext conftest.$ac_ext
18715 fi
18716 ac_res=`eval echo '${'$as_ac_var'}'`
18717                { echo "$as_me:$LINENO: result: $ac_res" >&5
18718 echo "${ECHO_T}$ac_res" >&6; }
18719 if test `eval echo '${'$as_ac_var'}'` = yes; then
18720   cat >>confdefs.h <<_ACEOF
18721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18722 _ACEOF
18723
18724 fi
18725 done
18726
18727
18728
18729
18730
18731 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18732 do
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18747 #define $ac_func innocuous_$ac_func
18748
18749 /* System header to define __stub macros and hopefully few prototypes,
18750     which can conflict with char $ac_func (); below.
18751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752     <limits.h> exists even on freestanding compilers.  */
18753
18754 #ifdef __STDC__
18755 # include <limits.h>
18756 #else
18757 # include <assert.h>
18758 #endif
18759
18760 #undef $ac_func
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763    Use char because int might match the return type of a GCC
18764    builtin and then its argument prototype would still apply.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char $ac_func ();
18769 /* The GNU C library defines this for functions which it implements
18770     to always fail with ENOSYS.  Some functions are actually named
18771     something starting with __ and the normal name is an alias.  */
18772 #if defined __stub_$ac_func || defined __stub___$ac_func
18773 choke me
18774 #endif
18775
18776 int
18777 main ()
18778 {
18779 return $ac_func ();
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788   *) ac_try_echo=$ac_try;;
18789 esac
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791   (eval "$ac_link") 2>conftest.er1
18792   ac_status=$?
18793   grep -v '^ *+' conftest.er1 >conftest.err
18794   rm -f conftest.er1
18795   cat conftest.err >&5
18796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); } &&
18798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799   { (case "(($ac_try" in
18800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801   *) ac_try_echo=$ac_try;;
18802 esac
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804   (eval "$ac_try") 2>&5
18805   ac_status=$?
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); }; } &&
18808          { ac_try='test -s conftest$ac_exeext'
18809   { (case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_try") 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); }; }; then
18818   eval "$as_ac_var=yes"
18819 else
18820   echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823         eval "$as_ac_var=no"
18824 fi
18825
18826 rm -f core conftest.err conftest.$ac_objext \
18827       conftest$ac_exeext conftest.$ac_ext
18828 fi
18829 ac_res=`eval echo '${'$as_ac_var'}'`
18830                { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18832 if test `eval echo '${'$as_ac_var'}'` = yes; then
18833   cat >>confdefs.h <<_ACEOF
18834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18835 _ACEOF
18836
18837 fi
18838 done
18839
18840 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18841 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18842 if test "${llvm_cv_c_printf_a+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   ac_ext=c
18846 ac_cpp='$CPP $CPPFLAGS'
18847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18850
18851  if test "$cross_compiling" = yes; then
18852   llvmac_cv_c_printf_a=no
18853 else
18854   cat >conftest.$ac_ext <<_ACEOF
18855
18856   /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861
18862 #include <stdio.h>
18863 #include <stdlib.h>
18864
18865 int
18866 main ()
18867 {
18868
18869 volatile double A, B;
18870 char Buffer[100];
18871 A = 1;
18872 A /= 10.0;
18873 sprintf(Buffer, "%a", A);
18874 B = atof(Buffer);
18875 if (A != B)
18876   return (1);
18877 if (A != 0x1.999999999999ap-4)
18878   return (1);
18879 return (0);
18880   ;
18881   return 0;
18882 }
18883 _ACEOF
18884 rm -f conftest$ac_exeext
18885 if { (ac_try="$ac_link"
18886 case "(($ac_try" in
18887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888   *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891   (eval "$ac_link") 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   llvm_cv_c_printf_a=yes
18905 else
18906   echo "$as_me: program exited with status $ac_status" >&5
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ( exit $ac_status )
18911 llvmac_cv_c_printf_a=no
18912 fi
18913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18914 fi
18915
18916
18917  ac_ext=c
18918 ac_cpp='$CPP $CPPFLAGS'
18919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18922
18923 fi
18924 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18925 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18926  if test "$llvm_cv_c_printf_a" = "yes"; then
18927
18928 cat >>confdefs.h <<\_ACEOF
18929 #define HAVE_PRINTF_A 1
18930 _ACEOF
18931
18932  fi
18933
18934
18935 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18936 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18937 if test "${ac_cv_func_rand48+set}" = set; then
18938   echo $ECHO_N "(cached) $ECHO_C" >&6
18939 else
18940   ac_ext=cpp
18941 ac_cpp='$CXXCPP $CPPFLAGS'
18942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18945
18946    cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h.  */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h.  */
18952 #include <stdlib.h>
18953 int
18954 main ()
18955 {
18956 srand48(0);lrand48();drand48();
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (ac_try="$ac_compile"
18963 case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_compile") 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } &&
18975          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18976   { (case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_try") 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; } &&
18985          { ac_try='test -s conftest.$ac_objext'
18986   { (case "(($ac_try" in
18987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988   *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991   (eval "$ac_try") 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); }; }; then
18995   ac_cv_func_rand48=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000         ac_cv_func_rand48=no
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004   ac_ext=c
19005 ac_cpp='$CPP $CPPFLAGS'
19006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19009
19010 fi
19011 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19012 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19013
19014 if test "$ac_cv_func_rand48" = "yes" ; then
19015
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_RAND48 1
19018 _ACEOF
19019
19020 fi
19021
19022
19023
19024 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19025 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19026 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029   ac_ext=cpp
19030 ac_cpp='$CXXCPP $CPPFLAGS'
19031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19034
19035    cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041 #include <math.h>
19042 int
19043 main ()
19044 {
19045 float f; isnan(f);
19046   ;
19047   return 0;
19048 }
19049 _ACEOF
19050 rm -f conftest.$ac_objext
19051 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19058   ac_status=$?
19059   grep -v '^ *+' conftest.er1 >conftest.err
19060   rm -f conftest.er1
19061   cat conftest.err >&5
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); } &&
19064          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19065   { (case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_try") 2>&5
19071   ac_status=$?
19072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073   (exit $ac_status); }; } &&
19074          { ac_try='test -s conftest.$ac_objext'
19075   { (case "(($ac_try" in
19076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077   *) ac_try_echo=$ac_try;;
19078 esac
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080   (eval "$ac_try") 2>&5
19081   ac_status=$?
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); }; }; then
19084   ac_cv_func_isnan_in_math_h=yes
19085 else
19086   echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089         ac_cv_func_isnan_in_math_h=no
19090 fi
19091
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093   ac_ext=c
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099 fi
19100 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19101 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19102
19103
19104 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19105
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_ISNAN_IN_MATH_H 1
19108 _ACEOF
19109
19110 fi
19111
19112 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19113 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   ac_ext=cpp
19118 ac_cpp='$CXXCPP $CPPFLAGS'
19119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19122
19123    cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129 #include <cmath>
19130 int
19131 main ()
19132 {
19133 float f; isnan(f);
19134   ;
19135   return 0;
19136 }
19137 _ACEOF
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142   *) ac_try_echo=$ac_try;;
19143 esac
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145   (eval "$ac_compile") 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153   { (case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_try") 2>&5
19159   ac_status=$?
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); }; } &&
19162          { ac_try='test -s conftest.$ac_objext'
19163   { (case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_try") 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_cv_func_isnan_in_cmath=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177         ac_cv_func_isnan_in_cmath=no
19178 fi
19179
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181   ac_ext=c
19182 ac_cpp='$CPP $CPPFLAGS'
19183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187 fi
19188 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19189 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19190
19191 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_ISNAN_IN_CMATH 1
19195 _ACEOF
19196
19197 fi
19198
19199 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19200 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19201 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   ac_ext=cpp
19205 ac_cpp='$CXXCPP $CPPFLAGS'
19206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19209
19210    cat >conftest.$ac_ext <<_ACEOF
19211 /* confdefs.h.  */
19212 _ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h.  */
19216 #include <cmath>
19217 int
19218 main ()
19219 {
19220 float f; std::isnan(f);
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; } &&
19249          { ac_try='test -s conftest.$ac_objext'
19250   { (case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_try") 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   ac_cv_func_std_isnan_in_cmath=yes
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264         ac_cv_func_std_isnan_in_cmath=no
19265 fi
19266
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19268   ac_ext=c
19269 ac_cpp='$CPP $CPPFLAGS'
19270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19273
19274 fi
19275 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19276 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19277
19278 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19279
19280 cat >>confdefs.h <<\_ACEOF
19281 #define HAVE_STD_ISNAN_IN_CMATH 1
19282 _ACEOF
19283
19284 fi
19285
19286
19287 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19288 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19289 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19290   echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292   ac_ext=cpp
19293 ac_cpp='$CXXCPP $CPPFLAGS'
19294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19297
19298    cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304 #include <math.h>
19305 int
19306 main ()
19307 {
19308 float f; isinf(f);
19309   ;
19310   return 0;
19311 }
19312 _ACEOF
19313 rm -f conftest.$ac_objext
19314 if { (ac_try="$ac_compile"
19315 case "(($ac_try" in
19316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317   *) ac_try_echo=$ac_try;;
19318 esac
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320   (eval "$ac_compile") 2>conftest.er1
19321   ac_status=$?
19322   grep -v '^ *+' conftest.er1 >conftest.err
19323   rm -f conftest.er1
19324   cat conftest.err >&5
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); } &&
19327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_try") 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; } &&
19337          { ac_try='test -s conftest.$ac_objext'
19338   { (case "(($ac_try" in
19339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340   *) ac_try_echo=$ac_try;;
19341 esac
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343   (eval "$ac_try") 2>&5
19344   ac_status=$?
19345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347   ac_cv_func_isinf_in_math_h=yes
19348 else
19349   echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352         ac_cv_func_isinf_in_math_h=no
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356   ac_ext=c
19357 ac_cpp='$CPP $CPPFLAGS'
19358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361
19362 fi
19363 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19364 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19365
19366 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19367
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE_ISINF_IN_MATH_H 1
19370 _ACEOF
19371
19372 fi
19373
19374 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19375 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19376 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379   ac_ext=cpp
19380 ac_cpp='$CXXCPP $CPPFLAGS'
19381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19384
19385    cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <cmath>
19392 int
19393 main ()
19394 {
19395 float f; isinf(f);
19396   ;
19397   return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404   *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407   (eval "$ac_compile") 2>conftest.er1
19408   ac_status=$?
19409   grep -v '^ *+' conftest.er1 >conftest.err
19410   rm -f conftest.er1
19411   cat conftest.err >&5
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); } &&
19414          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; } &&
19424          { ac_try='test -s conftest.$ac_objext'
19425   { (case "(($ac_try" in
19426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427   *) ac_try_echo=$ac_try;;
19428 esac
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430   (eval "$ac_try") 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; }; then
19434   ac_cv_func_isinf_in_cmath=yes
19435 else
19436   echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439         ac_cv_func_isinf_in_cmath=no
19440 fi
19441
19442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19443   ac_ext=c
19444 ac_cpp='$CPP $CPPFLAGS'
19445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448
19449 fi
19450 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19451 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19452
19453 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19454
19455 cat >>confdefs.h <<\_ACEOF
19456 #define HAVE_ISINF_IN_CMATH 1
19457 _ACEOF
19458
19459 fi
19460
19461 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19462 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19463 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19464   echo $ECHO_N "(cached) $ECHO_C" >&6
19465 else
19466   ac_ext=cpp
19467 ac_cpp='$CXXCPP $CPPFLAGS'
19468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19471
19472    cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478 #include <cmath>
19479 int
19480 main ()
19481 {
19482 float f; std::isinf(f)}
19483   ;
19484   return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (ac_try="$ac_compile"
19489 case "(($ac_try" in
19490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19491   *) ac_try_echo=$ac_try;;
19492 esac
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494   (eval "$ac_compile") 2>conftest.er1
19495   ac_status=$?
19496   grep -v '^ *+' conftest.er1 >conftest.err
19497   rm -f conftest.er1
19498   cat conftest.err >&5
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); } &&
19501          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19502   { (case "(($ac_try" in
19503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504   *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507   (eval "$ac_try") 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; } &&
19511          { ac_try='test -s conftest.$ac_objext'
19512   { (case "(($ac_try" in
19513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514   *) ac_try_echo=$ac_try;;
19515 esac
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517   (eval "$ac_try") 2>&5
19518   ac_status=$?
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); }; }; then
19521   ac_cv_func_std_isinf_in_cmath=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526         ac_cv_func_std_isinf_in_cmath=no
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530   ac_ext=c
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19535
19536 fi
19537 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19538 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19539
19540 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19541
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_STD_ISINF_IN_CMATH 1
19544 _ACEOF
19545
19546 fi
19547
19548 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19549 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19550 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19551   echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553   ac_ext=cpp
19554 ac_cpp='$CXXCPP $CPPFLAGS'
19555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19558
19559    cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h.  */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h.  */
19565 #include <ieeefp.h>
19566 int
19567 main ()
19568 {
19569 float f; finite(f);
19570   ;
19571   return 0;
19572 }
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (ac_try="$ac_compile"
19576 case "(($ac_try" in
19577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578   *) ac_try_echo=$ac_try;;
19579 esac
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581   (eval "$ac_compile") 2>conftest.er1
19582   ac_status=$?
19583   grep -v '^ *+' conftest.er1 >conftest.err
19584   rm -f conftest.er1
19585   cat conftest.err >&5
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); } &&
19588          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19589   { (case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_try") 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; } &&
19598          { ac_try='test -s conftest.$ac_objext'
19599   { (case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_try") 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_cv_func_finite_in_ieeefp_h=yes
19609 else
19610   echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613         ac_cv_func_finite_in_ieeefp_h=no
19614 fi
19615
19616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19617   ac_ext=c
19618 ac_cpp='$CPP $CPPFLAGS'
19619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19622
19623 fi
19624 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19625 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19626
19627 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19628
19629 cat >>confdefs.h <<\_ACEOF
19630 #define HAVE_FINITE_IN_IEEEFP_H 1
19631 _ACEOF
19632
19633 fi
19634
19635
19636
19637 if test "$llvm_cv_platform_type" = "Unix" ; then
19638
19639
19640 for ac_header in stdlib.h unistd.h
19641 do
19642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 fi
19649 ac_res=`eval echo '${'$as_ac_Header'}'`
19650                { echo "$as_me:$LINENO: result: $ac_res" >&5
19651 echo "${ECHO_T}$ac_res" >&6; }
19652 else
19653   # Is the header compilable?
19654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h.  */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h.  */
19662 $ac_includes_default
19663 #include <$ac_header>
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_compile") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680   { (case "(($ac_try" in
19681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682   *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685   (eval "$ac_try") 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_try") 2>&5
19696   ac_status=$?
19697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); }; }; then
19699   ac_header_compiler=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704         ac_header_compiler=no
19705 fi
19706
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709 echo "${ECHO_T}$ac_header_compiler" >&6; }
19710
19711 # Is the header present?
19712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h.  */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h.  */
19720 #include <$ac_header>
19721 _ACEOF
19722 if { (ac_try="$ac_cpp conftest.$ac_ext"
19723 case "(($ac_try" in
19724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725   *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } >/dev/null; then
19735   if test -s conftest.err; then
19736     ac_cpp_err=$ac_c_preproc_warn_flag
19737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19738   else
19739     ac_cpp_err=
19740   fi
19741 else
19742   ac_cpp_err=yes
19743 fi
19744 if test -z "$ac_cpp_err"; then
19745   ac_header_preproc=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750   ac_header_preproc=no
19751 fi
19752
19753 rm -f conftest.err conftest.$ac_ext
19754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755 echo "${ECHO_T}$ac_header_preproc" >&6; }
19756
19757 # So?  What about this header?
19758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759   yes:no: )
19760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764     ac_header_preproc=yes
19765     ;;
19766   no:yes:* )
19767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779     ( cat <<\_ASBOX
19780 ## ----------------------------------- ##
19781 ## Report this to llvmbugs@cs.uiuc.edu ##
19782 ## ----------------------------------- ##
19783 _ASBOX
19784      ) | sed "s/^/$as_me: WARNING:     /" >&2
19785     ;;
19786 esac
19787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790   echo $ECHO_N "(cached) $ECHO_C" >&6
19791 else
19792   eval "$as_ac_Header=\$ac_header_preproc"
19793 fi
19794 ac_res=`eval echo '${'$as_ac_Header'}'`
19795                { echo "$as_me:$LINENO: result: $ac_res" >&5
19796 echo "${ECHO_T}$ac_res" >&6; }
19797
19798 fi
19799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19800   cat >>confdefs.h <<_ACEOF
19801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19802 _ACEOF
19803
19804 fi
19805
19806 done
19807
19808
19809 for ac_func in getpagesize
19810 do
19811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19815   echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817   cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h.  */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h.  */
19823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19825 #define $ac_func innocuous_$ac_func
19826
19827 /* System header to define __stub macros and hopefully few prototypes,
19828     which can conflict with char $ac_func (); below.
19829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830     <limits.h> exists even on freestanding compilers.  */
19831
19832 #ifdef __STDC__
19833 # include <limits.h>
19834 #else
19835 # include <assert.h>
19836 #endif
19837
19838 #undef $ac_func
19839
19840 /* Override any GCC internal prototype to avoid an error.
19841    Use char because int might match the return type of a GCC
19842    builtin and then its argument prototype would still apply.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 char $ac_func ();
19847 /* The GNU C library defines this for functions which it implements
19848     to always fail with ENOSYS.  Some functions are actually named
19849     something starting with __ and the normal name is an alias.  */
19850 #if defined __stub_$ac_func || defined __stub___$ac_func
19851 choke me
19852 #endif
19853
19854 int
19855 main ()
19856 {
19857 return $ac_func ();
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (ac_try="$ac_link"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_link") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } &&
19876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19877   { (case "(($ac_try" in
19878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879   *) ac_try_echo=$ac_try;;
19880 esac
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882   (eval "$ac_try") 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; } &&
19886          { ac_try='test -s conftest$ac_exeext'
19887   { (case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_try") 2>&5
19893   ac_status=$?
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); }; }; then
19896   eval "$as_ac_var=yes"
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901         eval "$as_ac_var=no"
19902 fi
19903
19904 rm -f core conftest.err conftest.$ac_objext \
19905       conftest$ac_exeext conftest.$ac_ext
19906 fi
19907 ac_res=`eval echo '${'$as_ac_var'}'`
19908                { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19910 if test `eval echo '${'$as_ac_var'}'` = yes; then
19911   cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19913 _ACEOF
19914
19915 fi
19916 done
19917
19918 { echo "$as_me:$LINENO: checking for working mmap" >&5
19919 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19920 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   if test "$cross_compiling" = yes; then
19924   ac_cv_func_mmap_fixed_mapped=no
19925 else
19926   cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932 $ac_includes_default
19933 /* malloc might have been renamed as rpl_malloc. */
19934 #undef malloc
19935
19936 /* Thanks to Mike Haertel and Jim Avera for this test.
19937    Here is a matrix of mmap possibilities:
19938         mmap private not fixed
19939         mmap private fixed at somewhere currently unmapped
19940         mmap private fixed at somewhere already mapped
19941         mmap shared not fixed
19942         mmap shared fixed at somewhere currently unmapped
19943         mmap shared fixed at somewhere already mapped
19944    For private mappings, we should verify that changes cannot be read()
19945    back from the file, nor mmap's back from the file at a different
19946    address.  (There have been systems where private was not correctly
19947    implemented like the infamous i386 svr4.0, and systems where the
19948    VM page cache was not coherent with the file system buffer cache
19949    like early versions of FreeBSD and possibly contemporary NetBSD.)
19950    For shared mappings, we should conversely verify that changes get
19951    propagated back to all the places they're supposed to be.
19952
19953    Grep wants private fixed already mapped.
19954    The main things grep needs to know about mmap are:
19955    * does it exist and is it safe to write into the mmap'd area
19956    * how to use it (BSD variants)  */
19957
19958 #include <fcntl.h>
19959 #include <sys/mman.h>
19960
19961 #if !STDC_HEADERS && !HAVE_STDLIB_H
19962 char *malloc ();
19963 #endif
19964
19965 /* This mess was copied from the GNU getpagesize.h.  */
19966 #if !HAVE_GETPAGESIZE
19967 /* Assume that all systems that can run configure have sys/param.h.  */
19968 # if !HAVE_SYS_PARAM_H
19969 #  define HAVE_SYS_PARAM_H 1
19970 # endif
19971
19972 # ifdef _SC_PAGESIZE
19973 #  define getpagesize() sysconf(_SC_PAGESIZE)
19974 # else /* no _SC_PAGESIZE */
19975 #  if HAVE_SYS_PARAM_H
19976 #   include <sys/param.h>
19977 #   ifdef EXEC_PAGESIZE
19978 #    define getpagesize() EXEC_PAGESIZE
19979 #   else /* no EXEC_PAGESIZE */
19980 #    ifdef NBPG
19981 #     define getpagesize() NBPG * CLSIZE
19982 #     ifndef CLSIZE
19983 #      define CLSIZE 1
19984 #     endif /* no CLSIZE */
19985 #    else /* no NBPG */
19986 #     ifdef NBPC
19987 #      define getpagesize() NBPC
19988 #     else /* no NBPC */
19989 #      ifdef PAGESIZE
19990 #       define getpagesize() PAGESIZE
19991 #      endif /* PAGESIZE */
19992 #     endif /* no NBPC */
19993 #    endif /* no NBPG */
19994 #   endif /* no EXEC_PAGESIZE */
19995 #  else /* no HAVE_SYS_PARAM_H */
19996 #   define getpagesize() 8192   /* punt totally */
19997 #  endif /* no HAVE_SYS_PARAM_H */
19998 # endif /* no _SC_PAGESIZE */
19999
20000 #endif /* no HAVE_GETPAGESIZE */
20001
20002 int
20003 main ()
20004 {
20005   char *data, *data2, *data3;
20006   int i, pagesize;
20007   int fd;
20008
20009   pagesize = getpagesize ();
20010
20011   /* First, make a file with some known garbage in it. */
20012   data = (char *) malloc (pagesize);
20013   if (!data)
20014     return 1;
20015   for (i = 0; i < pagesize; ++i)
20016     *(data + i) = rand ();
20017   umask (0);
20018   fd = creat ("conftest.mmap", 0600);
20019   if (fd < 0)
20020     return 1;
20021   if (write (fd, data, pagesize) != pagesize)
20022     return 1;
20023   close (fd);
20024
20025   /* Next, try to mmap the file at a fixed address which already has
20026      something else allocated at it.  If we can, also make sure that
20027      we see the same garbage.  */
20028   fd = open ("conftest.mmap", O_RDWR);
20029   if (fd < 0)
20030     return 1;
20031   data2 = (char *) malloc (2 * pagesize);
20032   if (!data2)
20033     return 1;
20034   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20035   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20036                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20037     return 1;
20038   for (i = 0; i < pagesize; ++i)
20039     if (*(data + i) != *(data2 + i))
20040       return 1;
20041
20042   /* Finally, make sure that changes to the mapped area do not
20043      percolate back to the file as seen by read().  (This is a bug on
20044      some variants of i386 svr4.0.)  */
20045   for (i = 0; i < pagesize; ++i)
20046     *(data2 + i) = *(data2 + i) + 1;
20047   data3 = (char *) malloc (pagesize);
20048   if (!data3)
20049     return 1;
20050   if (read (fd, data3, pagesize) != pagesize)
20051     return 1;
20052   for (i = 0; i < pagesize; ++i)
20053     if (*(data + i) != *(data3 + i))
20054       return 1;
20055   close (fd);
20056   return 0;
20057 }
20058 _ACEOF
20059 rm -f conftest$ac_exeext
20060 if { (ac_try="$ac_link"
20061 case "(($ac_try" in
20062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20063   *) ac_try_echo=$ac_try;;
20064 esac
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066   (eval "$ac_link") 2>&5
20067   ac_status=$?
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20070   { (case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_try") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; }; then
20079   ac_cv_func_mmap_fixed_mapped=yes
20080 else
20081   echo "$as_me: program exited with status $ac_status" >&5
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ( exit $ac_status )
20086 ac_cv_func_mmap_fixed_mapped=no
20087 fi
20088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20089 fi
20090
20091
20092 fi
20093 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20094 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20095 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20096
20097 cat >>confdefs.h <<\_ACEOF
20098 #define HAVE_MMAP 1
20099 _ACEOF
20100
20101 fi
20102 rm -f conftest.mmap
20103
20104   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20105 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20106 if test "${ac_cv_func_mmap_file+set}" = set; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109    ac_ext=c
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20114
20115   if test "$cross_compiling" = yes; then
20116   ac_cv_func_mmap_file=no
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119
20120     /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125
20126 #include <sys/types.h>
20127 #include <sys/mman.h>
20128 #include <fcntl.h>
20129
20130 int
20131 main ()
20132 {
20133
20134   int fd;
20135   fd = creat ("foo",0777);
20136   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20137   unlink ("foo");
20138   return (fd != (int) MAP_FAILED);
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_link") 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154   { (case "(($ac_try" in
20155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156   *) ac_try_echo=$ac_try;;
20157 esac
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159   (eval "$ac_try") 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   ac_cv_func_mmap_file=yes
20164 else
20165   echo "$as_me: program exited with status $ac_status" >&5
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ( exit $ac_status )
20170 ac_cv_func_mmap_file=no
20171 fi
20172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20173 fi
20174
20175
20176   ac_ext=c
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181
20182
20183 fi
20184 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20185 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20186 if test "$ac_cv_func_mmap_file" = yes; then
20187
20188 cat >>confdefs.h <<\_ACEOF
20189 #define HAVE_MMAP_FILE
20190 _ACEOF
20191
20192    MMAP_FILE=yes
20193
20194 fi
20195
20196   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20197 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20198 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   if test "$llvm_cv_os_type" = "Interix" ; then
20202    ac_cv_need_dev_zero_for_mmap=yes
20203  else
20204    ac_cv_need_dev_zero_for_mmap=no
20205  fi
20206
20207 fi
20208 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20209 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20210 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20211
20212 cat >>confdefs.h <<\_ACEOF
20213 #define NEED_DEV_ZERO_FOR_MMAP 1
20214 _ACEOF
20215
20216 fi
20217
20218   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20219   then
20220     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20221 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20222   fi
20223   if test "$ac_cv_func_mmap_file" = "no"
20224   then
20225     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20226 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20227   fi
20228 fi
20229
20230 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20231 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20232 ac_ext=cpp
20233 ac_cpp='$CXXCPP $CPPFLAGS'
20234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20237
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 int main() {
20245         volatile unsigned long val = 1;
20246         __sync_synchronize();
20247         __sync_val_compare_and_swap(&val, 1, 0);
20248         __sync_add_and_fetch(&val, 1);
20249         __sync_sub_and_fetch(&val, 1);
20250         return 0;
20251       }
20252
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_link") 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } &&
20268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269   { (case "(($ac_try" in
20270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271   *) ac_try_echo=$ac_try;;
20272 esac
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274   (eval "$ac_try") 2>&5
20275   ac_status=$?
20276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277   (exit $ac_status); }; } &&
20278          { ac_try='test -s conftest$ac_exeext'
20279   { (case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_try") 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_ext=c
20289 ac_cpp='$CPP $CPPFLAGS'
20290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20293
20294   { echo "$as_me:$LINENO: result: yes" >&5
20295 echo "${ECHO_T}yes" >&6; }
20296
20297 cat >>confdefs.h <<\_ACEOF
20298 #define LLVM_MULTITHREADED 1
20299 _ACEOF
20300
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305         { echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6; }
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define LLVM_MULTITHREADED 0
20310 _ACEOF
20311
20312   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20313 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20314 fi
20315
20316 rm -f core conftest.err conftest.$ac_objext \
20317       conftest$ac_exeext conftest.$ac_ext
20318
20319
20320 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20321   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20322 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20323 if test "${llvm_cv_linux_mixed+set}" = set; then
20324   echo $ECHO_N "(cached) $ECHO_C" >&6
20325 else
20326    ac_ext=c
20327 ac_cpp='$CPP $CPPFLAGS'
20328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20331
20332   cat >conftest.$ac_ext <<_ACEOF
20333 /* confdefs.h.  */
20334 _ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h.  */
20338 #ifndef __x86_64__
20339        error: Not x86-64 even if uname says so!
20340       #endif
20341
20342 int
20343 main ()
20344 {
20345
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext
20351 if { (ac_try="$ac_compile"
20352 case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_compile") 2>conftest.er1
20358   ac_status=$?
20359   grep -v '^ *+' conftest.er1 >conftest.err
20360   rm -f conftest.er1
20361   cat conftest.err >&5
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); } &&
20364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20365   { (case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_try") 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); }; } &&
20374          { ac_try='test -s conftest.$ac_objext'
20375   { (case "(($ac_try" in
20376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377   *) ac_try_echo=$ac_try;;
20378 esac
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380   (eval "$ac_try") 2>&5
20381   ac_status=$?
20382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383   (exit $ac_status); }; }; then
20384   llvm_cv_linux_mixed=no
20385 else
20386   echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389         llvm_cv_linux_mixed=yes
20390 fi
20391
20392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393   ac_ext=c
20394 ac_cpp='$CPP $CPPFLAGS'
20395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398
20399
20400 fi
20401 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20402 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20403
20404   if test "$llvm_cv_linux_mixed" = "yes"; then
20405     llvm_cv_target_arch="x86"
20406     ARCH="x86"
20407   fi
20408 fi
20409
20410
20411 for ac_func in __dso_handle
20412 do
20413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20417   echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419   cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20427 #define $ac_func innocuous_$ac_func
20428
20429 /* System header to define __stub macros and hopefully few prototypes,
20430     which can conflict with char $ac_func (); below.
20431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20432     <limits.h> exists even on freestanding compilers.  */
20433
20434 #ifdef __STDC__
20435 # include <limits.h>
20436 #else
20437 # include <assert.h>
20438 #endif
20439
20440 #undef $ac_func
20441
20442 /* Override any GCC internal prototype to avoid an error.
20443    Use char because int might match the return type of a GCC
20444    builtin and then its argument prototype would still apply.  */
20445 #ifdef __cplusplus
20446 extern "C"
20447 #endif
20448 char $ac_func ();
20449 /* The GNU C library defines this for functions which it implements
20450     to always fail with ENOSYS.  Some functions are actually named
20451     something starting with __ and the normal name is an alias.  */
20452 #if defined __stub_$ac_func || defined __stub___$ac_func
20453 choke me
20454 #endif
20455
20456 int
20457 main ()
20458 {
20459 return $ac_func ();
20460   ;
20461   return 0;
20462 }
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_link") 2>conftest.er1
20472   ac_status=$?
20473   grep -v '^ *+' conftest.er1 >conftest.err
20474   rm -f conftest.er1
20475   cat conftest.err >&5
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); } &&
20478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479   { (case "(($ac_try" in
20480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481   *) ac_try_echo=$ac_try;;
20482 esac
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484   (eval "$ac_try") 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest$ac_exeext'
20489   { (case "(($ac_try" in
20490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491   *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494   (eval "$ac_try") 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; }; then
20498   eval "$as_ac_var=yes"
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503         eval "$as_ac_var=no"
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext \
20507       conftest$ac_exeext conftest.$ac_ext
20508 fi
20509 ac_res=`eval echo '${'$as_ac_var'}'`
20510                { echo "$as_me:$LINENO: result: $ac_res" >&5
20511 echo "${ECHO_T}$ac_res" >&6; }
20512 if test `eval echo '${'$as_ac_var'}'` = yes; then
20513   cat >>confdefs.h <<_ACEOF
20514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20515 _ACEOF
20516
20517 fi
20518 done
20519
20520
20521 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20522 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20523 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   llvm_cv_llvmgcc_sanity="no"
20527 if test -x "$LLVMGCC" ; then
20528   cp /dev/null conftest.c
20529   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20530       grep 'target datalayout =' > /dev/null 2>&1
20531   if test $? -eq 0 ; then
20532     llvm_cv_llvmgcc_sanity="yes"
20533   fi
20534   rm conftest.c
20535 fi
20536 fi
20537 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20538 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20539
20540 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20541   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20542 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20543   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20544   LLVMCC1=$llvmcc1path
20545
20546   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20547   LLVMCC1PLUS=$llvmcc1pluspath
20548
20549   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20550   LLVMGCCDIR=$llvmgccdir
20551
20552   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20553   LLVMGCC_LANGS=$llvmgcclangs
20554
20555   { echo "$as_me:$LINENO: result: ok" >&5
20556 echo "${ECHO_T}ok" >&6; }
20557 fi
20558
20559 SHLIBEXT=$libltdl_cv_shlibext
20560
20561
20562 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20563
20564
20565 # Translate the various configuration directories and other basic
20566 # information into substitutions that will end up in Makefile.config.in
20567 # that these configured values can be used by the makefiles
20568 if test "${prefix}" = "NONE" ; then
20569   prefix="/usr/local"
20570 fi
20571 eval LLVM_PREFIX="${prefix}";
20572 eval LLVM_BINDIR="${prefix}/bin";
20573 eval LLVM_LIBDIR="${prefix}/lib";
20574 eval LLVM_DATADIR="${prefix}/share/llvm";
20575 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20576 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20577 eval LLVM_INCLUDEDIR="${prefix}/include";
20578 eval LLVM_INFODIR="${prefix}/info";
20579 eval LLVM_MANDIR="${prefix}/man";
20580 LLVM_CONFIGTIME=`date`
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592 # Place the various directores into the config.h file as #defines so that we
20593 # can know about the installation paths within LLVM.
20594
20595 cat >>confdefs.h <<_ACEOF
20596 #define LLVM_PREFIX "$LLVM_PREFIX"
20597 _ACEOF
20598
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define LLVM_BINDIR "$LLVM_BINDIR"
20602 _ACEOF
20603
20604
20605 cat >>confdefs.h <<_ACEOF
20606 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20607 _ACEOF
20608
20609
20610 cat >>confdefs.h <<_ACEOF
20611 #define LLVM_DATADIR "$LLVM_DATADIR"
20612 _ACEOF
20613
20614
20615 cat >>confdefs.h <<_ACEOF
20616 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20617 _ACEOF
20618
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20622 _ACEOF
20623
20624
20625 cat >>confdefs.h <<_ACEOF
20626 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20627 _ACEOF
20628
20629
20630 cat >>confdefs.h <<_ACEOF
20631 #define LLVM_INFODIR "$LLVM_INFODIR"
20632 _ACEOF
20633
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define LLVM_MANDIR "$LLVM_MANDIR"
20637 _ACEOF
20638
20639
20640 cat >>confdefs.h <<_ACEOF
20641 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20642 _ACEOF
20643
20644
20645 cat >>confdefs.h <<_ACEOF
20646 #define LLVM_HOSTTRIPLE "$host"
20647 _ACEOF
20648
20649
20650 # Determine which bindings to build.
20651 if test "$BINDINGS_TO_BUILD" = auto ; then
20652   BINDINGS_TO_BUILD=""
20653   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20654     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20655   fi
20656 fi
20657 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20658
20659
20660 # This isn't really configurey, but it avoids having to repeat the list in
20661 # other files.
20662 ALL_BINDINGS=ocaml
20663
20664
20665 # Do any work necessary to ensure that bindings have what they need.
20666 binding_prereqs_failed=0
20667 for a_binding in $BINDINGS_TO_BUILD ; do
20668   case "$a_binding" in
20669   ocaml)
20670     if test "x$OCAMLC" = x ; then
20671       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20673       binding_prereqs_failed=1
20674     fi
20675     if test "x$OCAMLDEP" = x ; then
20676       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20678       binding_prereqs_failed=1
20679     fi
20680     if test "x$OCAMLOPT" = x ; then
20681       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20682 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20683           fi
20684     if test "x$with_ocaml_libdir" != xauto ; then
20685       OCAML_LIBDIR=$with_ocaml_libdir
20686
20687     else
20688       ocaml_stdlib="`"$OCAMLC" -where`"
20689       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20690       then
20691         # ocaml stdlib is beneath our prefix; use stdlib
20692         OCAML_LIBDIR=$ocaml_stdlib
20693
20694       else
20695         # ocaml stdlib is outside our prefix; use libdir/ocaml
20696         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20697
20698       fi
20699     fi
20700     ;;
20701   esac
20702 done
20703 if test "$binding_prereqs_failed" = 1 ; then
20704   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20705 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20706    { (exit 1); exit 1; }; }
20707 fi
20708
20709 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20710 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20711 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714    ac_ext=cpp
20715 ac_cpp='$CXXCPP $CPPFLAGS'
20716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20719
20720   oldcxxflags="$CXXFLAGS"
20721   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20722   cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728
20729 int
20730 main ()
20731 {
20732
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_compile") 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } &&
20751          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20752   { (case "(($ac_try" in
20753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754   *) ac_try_echo=$ac_try;;
20755 esac
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757   (eval "$ac_try") 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; } &&
20761          { ac_try='test -s conftest.$ac_objext'
20762   { (case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_try") 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; }; then
20771   llvm_cv_cxx_visibility_inlines_hidden=yes
20772 else
20773   echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776         llvm_cv_cxx_visibility_inlines_hidden=no
20777 fi
20778
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780   CXXFLAGS="$oldcxxflags"
20781   ac_ext=c
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787
20788 fi
20789 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20790 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20791 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20792   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20793
20794 else
20795   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20796
20797 fi
20798
20799
20800 if test "$llvm_cv_link_use_r" = "yes" ; then
20801   RPATH="-Wl,-R"
20802 else
20803   RPATH="-Wl,-rpath"
20804 fi
20805
20806
20807 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20808   RDYNAMIC="-Wl,-export-dynamic"
20809 else
20810   RDYNAMIC=""
20811 fi
20812
20813
20814
20815 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20816
20817
20818
20819
20820
20821
20822 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20823
20824 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20825
20826 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20827
20828 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20829
20830 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20831
20832
20833 ac_config_files="$ac_config_files Makefile.config"
20834
20835
20836 ac_config_files="$ac_config_files llvm.spec"
20837
20838
20839 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20840
20841
20842 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20843
20844
20845 ac_config_commands="$ac_config_commands setup"
20846
20847 ac_config_commands="$ac_config_commands Makefile"
20848
20849
20850 ac_config_commands="$ac_config_commands Makefile.common"
20851
20852
20853 ac_config_commands="$ac_config_commands examples/Makefile"
20854
20855
20856 ac_config_commands="$ac_config_commands lib/Makefile"
20857
20858
20859 ac_config_commands="$ac_config_commands runtime/Makefile"
20860
20861
20862 ac_config_commands="$ac_config_commands test/Makefile"
20863
20864
20865 ac_config_commands="$ac_config_commands test/Makefile.tests"
20866
20867
20868 ac_config_commands="$ac_config_commands unittests/Makefile"
20869
20870
20871 ac_config_commands="$ac_config_commands tools/Makefile"
20872
20873
20874 ac_config_commands="$ac_config_commands utils/Makefile"
20875
20876
20877 ac_config_commands="$ac_config_commands projects/Makefile"
20878
20879
20880 ac_config_commands="$ac_config_commands bindings/Makefile"
20881
20882
20883 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20884
20885
20886
20887 cat >confcache <<\_ACEOF
20888 # This file is a shell script that caches the results of configure
20889 # tests run on this system so they can be shared between configure
20890 # scripts and configure runs, see configure's option --config-cache.
20891 # It is not useful on other systems.  If it contains results you don't
20892 # want to keep, you may remove or edit it.
20893 #
20894 # config.status only pays attention to the cache file if you give it
20895 # the --recheck option to rerun configure.
20896 #
20897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20899 # following values.
20900
20901 _ACEOF
20902
20903 # The following way of writing the cache mishandles newlines in values,
20904 # but we know of no workaround that is simple, portable, and efficient.
20905 # So, we kill variables containing newlines.
20906 # Ultrix sh set writes to stderr and can't be redirected directly,
20907 # and sets the high bit in the cache file unless we assign to the vars.
20908 (
20909   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20910     eval ac_val=\$$ac_var
20911     case $ac_val in #(
20912     *${as_nl}*)
20913       case $ac_var in #(
20914       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20915 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20916       esac
20917       case $ac_var in #(
20918       _ | IFS | as_nl) ;; #(
20919       *) $as_unset $ac_var ;;
20920       esac ;;
20921     esac
20922   done
20923
20924   (set) 2>&1 |
20925     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20926     *${as_nl}ac_space=\ *)
20927       # `set' does not quote correctly, so add quotes (double-quote
20928       # substitution turns \\\\ into \\, and sed turns \\ into \).
20929       sed -n \
20930         "s/'/'\\\\''/g;
20931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20932       ;; #(
20933     *)
20934       # `set' quotes correctly as required by POSIX, so do not add quotes.
20935       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20936       ;;
20937     esac |
20938     sort
20939 ) |
20940   sed '
20941      /^ac_cv_env_/b end
20942      t clear
20943      :clear
20944      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20945      t end
20946      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20947      :end' >>confcache
20948 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20949   if test -w "$cache_file"; then
20950     test "x$cache_file" != "x/dev/null" &&
20951       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20952 echo "$as_me: updating cache $cache_file" >&6;}
20953     cat confcache >$cache_file
20954   else
20955     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20956 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20957   fi
20958 fi
20959 rm -f confcache
20960
20961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20962 # Let make expand exec_prefix.
20963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20964
20965 DEFS=-DHAVE_CONFIG_H
20966
20967 ac_libobjs=
20968 ac_ltlibobjs=
20969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20970   # 1. Remove the extension, and $U if already installed.
20971   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20972   ac_i=`echo "$ac_i" | sed "$ac_script"`
20973   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20974   #    will be set to the directory where LIBOBJS objects are built.
20975   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20976   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20977 done
20978 LIBOBJS=$ac_libobjs
20979
20980 LTLIBOBJS=$ac_ltlibobjs
20981
20982
20983 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20984   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20985 Usually this means the macro was only invoked conditionally." >&5
20986 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20987 Usually this means the macro was only invoked conditionally." >&2;}
20988    { (exit 1); exit 1; }; }
20989 fi
20990 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20991   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20992 Usually this means the macro was only invoked conditionally." >&5
20993 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20994 Usually this means the macro was only invoked conditionally." >&2;}
20995    { (exit 1); exit 1; }; }
20996 fi
20997
20998 : ${CONFIG_STATUS=./config.status}
20999 ac_clean_files_save=$ac_clean_files
21000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21003 cat >$CONFIG_STATUS <<_ACEOF
21004 #! $SHELL
21005 # Generated by $as_me.
21006 # Run this file to recreate the current configuration.
21007 # Compiler output produced by configure, useful for debugging
21008 # configure, is in config.log if it exists.
21009
21010 debug=false
21011 ac_cs_recheck=false
21012 ac_cs_silent=false
21013 SHELL=\${CONFIG_SHELL-$SHELL}
21014 _ACEOF
21015
21016 cat >>$CONFIG_STATUS <<\_ACEOF
21017 ## --------------------- ##
21018 ## M4sh Initialization.  ##
21019 ## --------------------- ##
21020
21021 # Be Bourne compatible
21022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21023   emulate sh
21024   NULLCMD=:
21025   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21026   # is contrary to our usage.  Disable this feature.
21027   alias -g '${1+"$@"}'='"$@"'
21028   setopt NO_GLOB_SUBST
21029 else
21030   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21031 fi
21032 BIN_SH=xpg4; export BIN_SH # for Tru64
21033 DUALCASE=1; export DUALCASE # for MKS sh
21034
21035
21036 # PATH needs CR
21037 # Avoid depending upon Character Ranges.
21038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21041 as_cr_digits='0123456789'
21042 as_cr_alnum=$as_cr_Letters$as_cr_digits
21043
21044 # The user is always right.
21045 if test "${PATH_SEPARATOR+set}" != set; then
21046   echo "#! /bin/sh" >conf$$.sh
21047   echo  "exit 0"   >>conf$$.sh
21048   chmod +x conf$$.sh
21049   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21050     PATH_SEPARATOR=';'
21051   else
21052     PATH_SEPARATOR=:
21053   fi
21054   rm -f conf$$.sh
21055 fi
21056
21057 # Support unset when possible.
21058 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21059   as_unset=unset
21060 else
21061   as_unset=false
21062 fi
21063
21064
21065 # IFS
21066 # We need space, tab and new line, in precisely that order.  Quoting is
21067 # there to prevent editors from complaining about space-tab.
21068 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21069 # splitting by setting IFS to empty value.)
21070 as_nl='
21071 '
21072 IFS=" ""        $as_nl"
21073
21074 # Find who we are.  Look in the path if we contain no directory separator.
21075 case $0 in
21076   *[\\/]* ) as_myself=$0 ;;
21077   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21078 for as_dir in $PATH
21079 do
21080   IFS=$as_save_IFS
21081   test -z "$as_dir" && as_dir=.
21082   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21083 done
21084 IFS=$as_save_IFS
21085
21086      ;;
21087 esac
21088 # We did not find ourselves, most probably we were run as `sh COMMAND'
21089 # in which case we are not to be found in the path.
21090 if test "x$as_myself" = x; then
21091   as_myself=$0
21092 fi
21093 if test ! -f "$as_myself"; then
21094   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21095   { (exit 1); exit 1; }
21096 fi
21097
21098 # Work around bugs in pre-3.0 UWIN ksh.
21099 for as_var in ENV MAIL MAILPATH
21100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21101 done
21102 PS1='$ '
21103 PS2='> '
21104 PS4='+ '
21105
21106 # NLS nuisances.
21107 for as_var in \
21108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21110   LC_TELEPHONE LC_TIME
21111 do
21112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21113     eval $as_var=C; export $as_var
21114   else
21115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21116   fi
21117 done
21118
21119 # Required to use basename.
21120 if expr a : '\(a\)' >/dev/null 2>&1 &&
21121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21122   as_expr=expr
21123 else
21124   as_expr=false
21125 fi
21126
21127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21128   as_basename=basename
21129 else
21130   as_basename=false
21131 fi
21132
21133
21134 # Name of the executable.
21135 as_me=`$as_basename -- "$0" ||
21136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21137          X"$0" : 'X\(//\)$' \| \
21138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21139 echo X/"$0" |
21140     sed '/^.*\/\([^/][^/]*\)\/*$/{
21141             s//\1/
21142             q
21143           }
21144           /^X\/\(\/\/\)$/{
21145             s//\1/
21146             q
21147           }
21148           /^X\/\(\/\).*/{
21149             s//\1/
21150             q
21151           }
21152           s/.*/./; q'`
21153
21154 # CDPATH.
21155 $as_unset CDPATH
21156
21157
21158
21159   as_lineno_1=$LINENO
21160   as_lineno_2=$LINENO
21161   test "x$as_lineno_1" != "x$as_lineno_2" &&
21162   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21163
21164   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21165   # uniformly replaced by the line number.  The first 'sed' inserts a
21166   # line-number line after each line using $LINENO; the second 'sed'
21167   # does the real work.  The second script uses 'N' to pair each
21168   # line-number line with the line containing $LINENO, and appends
21169   # trailing '-' during substitution so that $LINENO is not a special
21170   # case at line end.
21171   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21172   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21173   # E. McMahon (1931-1989) for sed's syntax.  :-)
21174   sed -n '
21175     p
21176     /[$]LINENO/=
21177   ' <$as_myself |
21178     sed '
21179       s/[$]LINENO.*/&-/
21180       t lineno
21181       b
21182       :lineno
21183       N
21184       :loop
21185       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21186       t loop
21187       s/-\n.*//
21188     ' >$as_me.lineno &&
21189   chmod +x "$as_me.lineno" ||
21190     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21191    { (exit 1); exit 1; }; }
21192
21193   # Don't try to exec as it changes $[0], causing all sort of problems
21194   # (the dirname of $[0] is not the place where we might find the
21195   # original and so on.  Autoconf is especially sensitive to this).
21196   . "./$as_me.lineno"
21197   # Exit status is that of the last command.
21198   exit
21199 }
21200
21201
21202 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21203   as_dirname=dirname
21204 else
21205   as_dirname=false
21206 fi
21207
21208 ECHO_C= ECHO_N= ECHO_T=
21209 case `echo -n x` in
21210 -n*)
21211   case `echo 'x\c'` in
21212   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21213   *)   ECHO_C='\c';;
21214   esac;;
21215 *)
21216   ECHO_N='-n';;
21217 esac
21218
21219 if expr a : '\(a\)' >/dev/null 2>&1 &&
21220    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21221   as_expr=expr
21222 else
21223   as_expr=false
21224 fi
21225
21226 rm -f conf$$ conf$$.exe conf$$.file
21227 if test -d conf$$.dir; then
21228   rm -f conf$$.dir/conf$$.file
21229 else
21230   rm -f conf$$.dir
21231   mkdir conf$$.dir
21232 fi
21233 echo >conf$$.file
21234 if ln -s conf$$.file conf$$ 2>/dev/null; then
21235   as_ln_s='ln -s'
21236   # ... but there are two gotchas:
21237   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21238   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21239   # In both cases, we have to default to `cp -p'.
21240   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21241     as_ln_s='cp -p'
21242 elif ln conf$$.file conf$$ 2>/dev/null; then
21243   as_ln_s=ln
21244 else
21245   as_ln_s='cp -p'
21246 fi
21247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21248 rmdir conf$$.dir 2>/dev/null
21249
21250 if mkdir -p . 2>/dev/null; then
21251   as_mkdir_p=:
21252 else
21253   test -d ./-p && rmdir ./-p
21254   as_mkdir_p=false
21255 fi
21256
21257 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21258 # systems may use methods other than mode bits to determine executability.
21259 cat >conf$$.file <<_ASEOF
21260 #! /bin/sh
21261 exit 0
21262 _ASEOF
21263 chmod +x conf$$.file
21264 if test -x conf$$.file >/dev/null 2>&1; then
21265   as_executable_p="test -x"
21266 else
21267   as_executable_p=:
21268 fi
21269 rm -f conf$$.file
21270
21271 # Sed expression to map a string onto a valid CPP name.
21272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21273
21274 # Sed expression to map a string onto a valid variable name.
21275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21276
21277
21278 exec 6>&1
21279
21280 # Save the log message, to keep $[0] and so on meaningful, and to
21281 # report actual input values of CONFIG_FILES etc. instead of their
21282 # values after options handling.
21283 ac_log="
21284 This file was extended by llvm $as_me 2.9svn, which was
21285 generated by GNU Autoconf 2.60.  Invocation command line was
21286
21287   CONFIG_FILES    = $CONFIG_FILES
21288   CONFIG_HEADERS  = $CONFIG_HEADERS
21289   CONFIG_LINKS    = $CONFIG_LINKS
21290   CONFIG_COMMANDS = $CONFIG_COMMANDS
21291   $ $0 $@
21292
21293 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21294 "
21295
21296 _ACEOF
21297
21298 cat >>$CONFIG_STATUS <<_ACEOF
21299 # Files that config.status was made for.
21300 config_files="$ac_config_files"
21301 config_headers="$ac_config_headers"
21302 config_commands="$ac_config_commands"
21303
21304 _ACEOF
21305
21306 cat >>$CONFIG_STATUS <<\_ACEOF
21307 ac_cs_usage="\
21308 \`$as_me' instantiates files from templates according to the
21309 current configuration.
21310
21311 Usage: $0 [OPTIONS] [FILE]...
21312
21313   -h, --help       print this help, then exit
21314   -V, --version    print version number, then exit
21315   -q, --quiet      do not print progress messages
21316   -d, --debug      don't remove temporary files
21317       --recheck    update $as_me by reconfiguring in the same conditions
21318   --file=FILE[:TEMPLATE]
21319                    instantiate the configuration file FILE
21320   --header=FILE[:TEMPLATE]
21321                    instantiate the configuration header FILE
21322
21323 Configuration files:
21324 $config_files
21325
21326 Configuration headers:
21327 $config_headers
21328
21329 Configuration commands:
21330 $config_commands
21331
21332 Report bugs to <bug-autoconf@gnu.org>."
21333
21334 _ACEOF
21335 cat >>$CONFIG_STATUS <<_ACEOF
21336 ac_cs_version="\\
21337 llvm config.status 2.9svn
21338 configured by $0, generated by GNU Autoconf 2.60,
21339   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21340
21341 Copyright (C) 2006 Free Software Foundation, Inc.
21342 This config.status script is free software; the Free Software Foundation
21343 gives unlimited permission to copy, distribute and modify it."
21344
21345 ac_pwd='$ac_pwd'
21346 srcdir='$srcdir'
21347 INSTALL='$INSTALL'
21348 _ACEOF
21349
21350 cat >>$CONFIG_STATUS <<\_ACEOF
21351 # If no file are specified by the user, then we need to provide default
21352 # value.  By we need to know if files were specified by the user.
21353 ac_need_defaults=:
21354 while test $# != 0
21355 do
21356   case $1 in
21357   --*=*)
21358     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21359     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21360     ac_shift=:
21361     ;;
21362   *)
21363     ac_option=$1
21364     ac_optarg=$2
21365     ac_shift=shift
21366     ;;
21367   esac
21368
21369   case $ac_option in
21370   # Handling of the options.
21371   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21372     ac_cs_recheck=: ;;
21373   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21374     echo "$ac_cs_version"; exit ;;
21375   --debug | --debu | --deb | --de | --d | -d )
21376     debug=: ;;
21377   --file | --fil | --fi | --f )
21378     $ac_shift
21379     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21380     ac_need_defaults=false;;
21381   --header | --heade | --head | --hea )
21382     $ac_shift
21383     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21384     ac_need_defaults=false;;
21385   --he | --h)
21386     # Conflict between --help and --header
21387     { echo "$as_me: error: ambiguous option: $1
21388 Try \`$0 --help' for more information." >&2
21389    { (exit 1); exit 1; }; };;
21390   --help | --hel | -h )
21391     echo "$ac_cs_usage"; exit ;;
21392   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21393   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21394     ac_cs_silent=: ;;
21395
21396   # This is an error.
21397   -*) { echo "$as_me: error: unrecognized option: $1
21398 Try \`$0 --help' for more information." >&2
21399    { (exit 1); exit 1; }; } ;;
21400
21401   *) ac_config_targets="$ac_config_targets $1"
21402      ac_need_defaults=false ;;
21403
21404   esac
21405   shift
21406 done
21407
21408 ac_configure_extra_args=
21409
21410 if $ac_cs_silent; then
21411   exec 6>/dev/null
21412   ac_configure_extra_args="$ac_configure_extra_args --silent"
21413 fi
21414
21415 _ACEOF
21416 cat >>$CONFIG_STATUS <<_ACEOF
21417 if \$ac_cs_recheck; then
21418   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21419   CONFIG_SHELL=$SHELL
21420   export CONFIG_SHELL
21421   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21422 fi
21423
21424 _ACEOF
21425 cat >>$CONFIG_STATUS <<\_ACEOF
21426 exec 5>>config.log
21427 {
21428   echo
21429   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21430 ## Running $as_me. ##
21431 _ASBOX
21432   echo "$ac_log"
21433 } >&5
21434
21435 _ACEOF
21436 cat >>$CONFIG_STATUS <<_ACEOF
21437 #
21438 # INIT-COMMANDS
21439 #
21440 llvm_src="${srcdir}"
21441
21442 _ACEOF
21443
21444 cat >>$CONFIG_STATUS <<\_ACEOF
21445
21446 # Handling of arguments.
21447 for ac_config_target in $ac_config_targets
21448 do
21449   case $ac_config_target in
21450     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21451     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21452     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21453     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21454     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21455     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21456     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21457     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21458     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21459     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21460     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21461     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21462     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21463     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21464     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21465     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21466     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21467     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21468     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21469     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21470     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21471     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21472     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21473     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21474     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21475
21476   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21478    { (exit 1); exit 1; }; };;
21479   esac
21480 done
21481
21482
21483 # If the user did not use the arguments to specify the items to instantiate,
21484 # then the envvar interface is used.  Set only those that are not.
21485 # We use the long form for the default assignment because of an extremely
21486 # bizarre bug on SunOS 4.1.3.
21487 if $ac_need_defaults; then
21488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21490   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21491 fi
21492
21493 # Have a temporary directory for convenience.  Make it in the build tree
21494 # simply because there is no reason against having it here, and in addition,
21495 # creating and moving files from /tmp can sometimes cause problems.
21496 # Hook for its removal unless debugging.
21497 # Note that there is a small window in which the directory will not be cleaned:
21498 # after its creation but before its name has been assigned to `$tmp'.
21499 $debug ||
21500 {
21501   tmp=
21502   trap 'exit_status=$?
21503   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21504 ' 0
21505   trap '{ (exit 1); exit 1; }' 1 2 13 15
21506 }
21507 # Create a (secure) tmp directory for tmp files.
21508
21509 {
21510   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21511   test -n "$tmp" && test -d "$tmp"
21512 }  ||
21513 {
21514   tmp=./conf$$-$RANDOM
21515   (umask 077 && mkdir "$tmp")
21516 } ||
21517 {
21518    echo "$me: cannot create a temporary directory in ." >&2
21519    { (exit 1); exit 1; }
21520 }
21521
21522 #
21523 # Set up the sed scripts for CONFIG_FILES section.
21524 #
21525
21526 # No need to generate the scripts if there are no CONFIG_FILES.
21527 # This happens for instance when ./config.status config.h
21528 if test -n "$CONFIG_FILES"; then
21529
21530 _ACEOF
21531
21532
21533
21534 ac_delim='%!_!# '
21535 for ac_last_try in false false false false false :; do
21536   cat >conf$$subs.sed <<_ACEOF
21537 SHELL!$SHELL$ac_delim
21538 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21539 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21540 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21541 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21542 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21543 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21544 exec_prefix!$exec_prefix$ac_delim
21545 prefix!$prefix$ac_delim
21546 program_transform_name!$program_transform_name$ac_delim
21547 bindir!$bindir$ac_delim
21548 sbindir!$sbindir$ac_delim
21549 libexecdir!$libexecdir$ac_delim
21550 datarootdir!$datarootdir$ac_delim
21551 datadir!$datadir$ac_delim
21552 sysconfdir!$sysconfdir$ac_delim
21553 sharedstatedir!$sharedstatedir$ac_delim
21554 localstatedir!$localstatedir$ac_delim
21555 includedir!$includedir$ac_delim
21556 oldincludedir!$oldincludedir$ac_delim
21557 docdir!$docdir$ac_delim
21558 infodir!$infodir$ac_delim
21559 htmldir!$htmldir$ac_delim
21560 dvidir!$dvidir$ac_delim
21561 pdfdir!$pdfdir$ac_delim
21562 psdir!$psdir$ac_delim
21563 libdir!$libdir$ac_delim
21564 localedir!$localedir$ac_delim
21565 mandir!$mandir$ac_delim
21566 DEFS!$DEFS$ac_delim
21567 ECHO_C!$ECHO_C$ac_delim
21568 ECHO_N!$ECHO_N$ac_delim
21569 ECHO_T!$ECHO_T$ac_delim
21570 LIBS!$LIBS$ac_delim
21571 build_alias!$build_alias$ac_delim
21572 host_alias!$host_alias$ac_delim
21573 target_alias!$target_alias$ac_delim
21574 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21575 subdirs!$subdirs$ac_delim
21576 build!$build$ac_delim
21577 build_cpu!$build_cpu$ac_delim
21578 build_vendor!$build_vendor$ac_delim
21579 build_os!$build_os$ac_delim
21580 host!$host$ac_delim
21581 host_cpu!$host_cpu$ac_delim
21582 host_vendor!$host_vendor$ac_delim
21583 host_os!$host_os$ac_delim
21584 target!$target$ac_delim
21585 target_cpu!$target_cpu$ac_delim
21586 target_vendor!$target_vendor$ac_delim
21587 target_os!$target_os$ac_delim
21588 OS!$OS$ac_delim
21589 HOST_OS!$HOST_OS$ac_delim
21590 TARGET_OS!$TARGET_OS$ac_delim
21591 LINKALL!$LINKALL$ac_delim
21592 NOLINKALL!$NOLINKALL$ac_delim
21593 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595 ARCH!$ARCH$ac_delim
21596 ENDIAN!$ENDIAN$ac_delim
21597 CC!$CC$ac_delim
21598 CFLAGS!$CFLAGS$ac_delim
21599 LDFLAGS!$LDFLAGS$ac_delim
21600 CPPFLAGS!$CPPFLAGS$ac_delim
21601 ac_ct_CC!$ac_ct_CC$ac_delim
21602 EXEEXT!$EXEEXT$ac_delim
21603 OBJEXT!$OBJEXT$ac_delim
21604 CPP!$CPP$ac_delim
21605 GREP!$GREP$ac_delim
21606 EGREP!$EGREP$ac_delim
21607 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21608 BUILD_CC!$BUILD_CC$ac_delim
21609 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21610 BUILD_CXX!$BUILD_CXX$ac_delim
21611 CVSBUILD!$CVSBUILD$ac_delim
21612 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21613 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21614 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21615 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21616 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21617 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21618 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21619 JIT!$JIT$ac_delim
21620 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21621 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21622 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21623 ENABLE_PIC!$ENABLE_PIC$ac_delim
21624 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21625 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21626 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21627 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21628 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21629 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21630 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21631 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21632 CLANGPATH!$CLANGPATH$ac_delim
21633 CLANGXXPATH!$CLANGXXPATH$ac_delim
21634 _ACEOF
21635
21636   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21637     break
21638   elif $ac_last_try; then
21639     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21641    { (exit 1); exit 1; }; }
21642   else
21643     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21644   fi
21645 done
21646
21647 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21648 if test -n "$ac_eof"; then
21649   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21650   ac_eof=`expr $ac_eof + 1`
21651 fi
21652
21653 cat >>$CONFIG_STATUS <<_ACEOF
21654 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21656 _ACEOF
21657 sed '
21658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21659 s/^/s,@/; s/!/@,|#_!!_#|/
21660 :n
21661 t n
21662 s/'"$ac_delim"'$/,g/; t
21663 s/$/\\/; p
21664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21665 ' >>$CONFIG_STATUS <conf$$subs.sed
21666 rm -f conf$$subs.sed
21667 cat >>$CONFIG_STATUS <<_ACEOF
21668 CEOF$ac_eof
21669 _ACEOF
21670
21671
21672 ac_delim='%!_!# '
21673 for ac_last_try in false false false false false :; do
21674   cat >conf$$subs.sed <<_ACEOF
21675 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21676 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21677 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21678 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21679 CXX!$CXX$ac_delim
21680 CXXFLAGS!$CXXFLAGS$ac_delim
21681 ac_ct_CXX!$ac_ct_CXX$ac_delim
21682 NM!$NM$ac_delim
21683 ifGNUmake!$ifGNUmake$ac_delim
21684 LN_S!$LN_S$ac_delim
21685 CMP!$CMP$ac_delim
21686 CP!$CP$ac_delim
21687 DATE!$DATE$ac_delim
21688 FIND!$FIND$ac_delim
21689 MKDIR!$MKDIR$ac_delim
21690 MV!$MV$ac_delim
21691 RANLIB!$RANLIB$ac_delim
21692 AR!$AR$ac_delim
21693 RM!$RM$ac_delim
21694 SED!$SED$ac_delim
21695 TAR!$TAR$ac_delim
21696 BINPWD!$BINPWD$ac_delim
21697 GRAPHVIZ!$GRAPHVIZ$ac_delim
21698 DOT!$DOT$ac_delim
21699 FDP!$FDP$ac_delim
21700 NEATO!$NEATO$ac_delim
21701 TWOPI!$TWOPI$ac_delim
21702 CIRCO!$CIRCO$ac_delim
21703 GV!$GV$ac_delim
21704 DOTTY!$DOTTY$ac_delim
21705 XDOT_PY!$XDOT_PY$ac_delim
21706 PERL!$PERL$ac_delim
21707 HAVE_PERL!$HAVE_PERL$ac_delim
21708 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21709 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21710 INSTALL_DATA!$INSTALL_DATA$ac_delim
21711 BZIP2!$BZIP2$ac_delim
21712 CAT!$CAT$ac_delim
21713 DOXYGEN!$DOXYGEN$ac_delim
21714 GROFF!$GROFF$ac_delim
21715 GZIP!$GZIP$ac_delim
21716 POD2HTML!$POD2HTML$ac_delim
21717 POD2MAN!$POD2MAN$ac_delim
21718 PDFROFF!$PDFROFF$ac_delim
21719 RUNTEST!$RUNTEST$ac_delim
21720 TCLSH!$TCLSH$ac_delim
21721 ZIP!$ZIP$ac_delim
21722 OCAMLC!$OCAMLC$ac_delim
21723 OCAMLOPT!$OCAMLOPT$ac_delim
21724 OCAMLDEP!$OCAMLDEP$ac_delim
21725 OCAMLDOC!$OCAMLDOC$ac_delim
21726 GAS!$GAS$ac_delim
21727 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21728 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21729 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21730 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21731 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21732 LIBADD_DL!$LIBADD_DL$ac_delim
21733 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21734 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21735 LLVMGCC!$LLVMGCC$ac_delim
21736 LLVMGXX!$LLVMGXX$ac_delim
21737 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21738 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21739 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21740 USE_UDIS86!$USE_UDIS86$ac_delim
21741 USE_OPROFILE!$USE_OPROFILE$ac_delim
21742 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21743 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21744 MMAP_FILE!$MMAP_FILE$ac_delim
21745 LLVMCC1!$LLVMCC1$ac_delim
21746 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21747 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21748 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21749 SHLIBEXT!$SHLIBEXT$ac_delim
21750 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21751 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21752 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21753 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21754 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21755 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21756 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21757 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21758 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21759 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21760 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21761 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21762 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21763 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21764 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21765 RPATH!$RPATH$ac_delim
21766 RDYNAMIC!$RDYNAMIC$ac_delim
21767 LIBOBJS!$LIBOBJS$ac_delim
21768 LTLIBOBJS!$LTLIBOBJS$ac_delim
21769 _ACEOF
21770
21771   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21772     break
21773   elif $ac_last_try; then
21774     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21775 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21776    { (exit 1); exit 1; }; }
21777   else
21778     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21779   fi
21780 done
21781
21782 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21783 if test -n "$ac_eof"; then
21784   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21785   ac_eof=`expr $ac_eof + 1`
21786 fi
21787
21788 cat >>$CONFIG_STATUS <<_ACEOF
21789 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21791 _ACEOF
21792 sed '
21793 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21794 s/^/s,@/; s/!/@,|#_!!_#|/
21795 :n
21796 t n
21797 s/'"$ac_delim"'$/,g/; t
21798 s/$/\\/; p
21799 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21800 ' >>$CONFIG_STATUS <conf$$subs.sed
21801 rm -f conf$$subs.sed
21802 cat >>$CONFIG_STATUS <<_ACEOF
21803 :end
21804 s/|#_!!_#|//g
21805 CEOF$ac_eof
21806 _ACEOF
21807
21808
21809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21811 # trailing colons and then remove the whole line if VPATH becomes empty
21812 # (actually we leave an empty line to preserve line numbers).
21813 if test "x$srcdir" = x.; then
21814   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21815 s/:*\$(srcdir):*/:/
21816 s/:*\${srcdir}:*/:/
21817 s/:*@srcdir@:*/:/
21818 s/^\([^=]*=[     ]*\):*/\1/
21819 s/:*$//
21820 s/^[^=]*=[       ]*$//
21821 }'
21822 fi
21823
21824 cat >>$CONFIG_STATUS <<\_ACEOF
21825 fi # test -n "$CONFIG_FILES"
21826
21827
21828 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21829 do
21830   case $ac_tag in
21831   :[FHLC]) ac_mode=$ac_tag; continue;;
21832   esac
21833   case $ac_mode$ac_tag in
21834   :[FHL]*:*);;
21835   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21836 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21837    { (exit 1); exit 1; }; };;
21838   :[FH]-) ac_tag=-:-;;
21839   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21840   esac
21841   ac_save_IFS=$IFS
21842   IFS=:
21843   set x $ac_tag
21844   IFS=$ac_save_IFS
21845   shift
21846   ac_file=$1
21847   shift
21848
21849   case $ac_mode in
21850   :L) ac_source=$1;;
21851   :[FH])
21852     ac_file_inputs=
21853     for ac_f
21854     do
21855       case $ac_f in
21856       -) ac_f="$tmp/stdin";;
21857       *) # Look for the file first in the build tree, then in the source tree
21858          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21859          # because $ac_f cannot contain `:'.
21860          test -f "$ac_f" ||
21861            case $ac_f in
21862            [\\/$]*) false;;
21863            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21864            esac ||
21865            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21866 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21867    { (exit 1); exit 1; }; };;
21868       esac
21869       ac_file_inputs="$ac_file_inputs $ac_f"
21870     done
21871
21872     # Let's still pretend it is `configure' which instantiates (i.e., don't
21873     # use $as_me), people would be surprised to read:
21874     #    /* config.h.  Generated by config.status.  */
21875     configure_input="Generated from "`IFS=:
21876           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21877     if test x"$ac_file" != x-; then
21878       configure_input="$ac_file.  $configure_input"
21879       { echo "$as_me:$LINENO: creating $ac_file" >&5
21880 echo "$as_me: creating $ac_file" >&6;}
21881     fi
21882
21883     case $ac_tag in
21884     *:-:* | *:-) cat >"$tmp/stdin";;
21885     esac
21886     ;;
21887   esac
21888
21889   ac_dir=`$as_dirname -- "$ac_file" ||
21890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21891          X"$ac_file" : 'X\(//\)[^/]' \| \
21892          X"$ac_file" : 'X\(//\)$' \| \
21893          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21894 echo X"$ac_file" |
21895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21896             s//\1/
21897             q
21898           }
21899           /^X\(\/\/\)[^/].*/{
21900             s//\1/
21901             q
21902           }
21903           /^X\(\/\/\)$/{
21904             s//\1/
21905             q
21906           }
21907           /^X\(\/\).*/{
21908             s//\1/
21909             q
21910           }
21911           s/.*/./; q'`
21912   { as_dir="$ac_dir"
21913   case $as_dir in #(
21914   -*) as_dir=./$as_dir;;
21915   esac
21916   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21917     as_dirs=
21918     while :; do
21919       case $as_dir in #(
21920       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21921       *) as_qdir=$as_dir;;
21922       esac
21923       as_dirs="'$as_qdir' $as_dirs"
21924       as_dir=`$as_dirname -- "$as_dir" ||
21925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21926          X"$as_dir" : 'X\(//\)[^/]' \| \
21927          X"$as_dir" : 'X\(//\)$' \| \
21928          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21929 echo X"$as_dir" |
21930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21931             s//\1/
21932             q
21933           }
21934           /^X\(\/\/\)[^/].*/{
21935             s//\1/
21936             q
21937           }
21938           /^X\(\/\/\)$/{
21939             s//\1/
21940             q
21941           }
21942           /^X\(\/\).*/{
21943             s//\1/
21944             q
21945           }
21946           s/.*/./; q'`
21947       test -d "$as_dir" && break
21948     done
21949     test -z "$as_dirs" || eval "mkdir $as_dirs"
21950   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21951 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21952    { (exit 1); exit 1; }; }; }
21953   ac_builddir=.
21954
21955 case "$ac_dir" in
21956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957 *)
21958   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21959   # A ".." for each directory in $ac_dir_suffix.
21960   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21961   case $ac_top_builddir_sub in
21962   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21963   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21964   esac ;;
21965 esac
21966 ac_abs_top_builddir=$ac_pwd
21967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21968 # for backward compatibility:
21969 ac_top_builddir=$ac_top_build_prefix
21970
21971 case $srcdir in
21972   .)  # We are building in place.
21973     ac_srcdir=.
21974     ac_top_srcdir=$ac_top_builddir_sub
21975     ac_abs_top_srcdir=$ac_pwd ;;
21976   [\\/]* | ?:[\\/]* )  # Absolute name.
21977     ac_srcdir=$srcdir$ac_dir_suffix;
21978     ac_top_srcdir=$srcdir
21979     ac_abs_top_srcdir=$srcdir ;;
21980   *) # Relative name.
21981     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21982     ac_top_srcdir=$ac_top_build_prefix$srcdir
21983     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21984 esac
21985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21986
21987
21988   case $ac_mode in
21989   :F)
21990   #
21991   # CONFIG_FILE
21992   #
21993
21994   case $INSTALL in
21995   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21996   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21997   esac
21998 _ACEOF
21999
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 # If the template does not know about datarootdir, expand it.
22002 # FIXME: This hack should be removed a few years after 2.60.
22003 ac_datarootdir_hack=; ac_datarootdir_seen=
22004
22005 case `sed -n '/datarootdir/ {
22006   p
22007   q
22008 }
22009 /@datadir@/p
22010 /@docdir@/p
22011 /@infodir@/p
22012 /@localedir@/p
22013 /@mandir@/p
22014 ' $ac_file_inputs` in
22015 *datarootdir*) ac_datarootdir_seen=yes;;
22016 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22017   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22018 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22019 _ACEOF
22020 cat >>$CONFIG_STATUS <<_ACEOF
22021   ac_datarootdir_hack='
22022   s&@datadir@&$datadir&g
22023   s&@docdir@&$docdir&g
22024   s&@infodir@&$infodir&g
22025   s&@localedir@&$localedir&g
22026   s&@mandir@&$mandir&g
22027     s&\\\${datarootdir}&$datarootdir&g' ;;
22028 esac
22029 _ACEOF
22030
22031 # Neutralize VPATH when `$srcdir' = `.'.
22032 # Shell code in configure.ac might set extrasub.
22033 # FIXME: do we really want to maintain this feature?
22034 cat >>$CONFIG_STATUS <<_ACEOF
22035   sed "$ac_vpsub
22036 $extrasub
22037 _ACEOF
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039 :t
22040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22041 s&@configure_input@&$configure_input&;t t
22042 s&@top_builddir@&$ac_top_builddir_sub&;t t
22043 s&@srcdir@&$ac_srcdir&;t t
22044 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22045 s&@top_srcdir@&$ac_top_srcdir&;t t
22046 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22047 s&@builddir@&$ac_builddir&;t t
22048 s&@abs_builddir@&$ac_abs_builddir&;t t
22049 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22050 s&@INSTALL@&$ac_INSTALL&;t t
22051 $ac_datarootdir_hack
22052 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22053
22054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22055   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22056   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22057   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22058 which seems to be undefined.  Please make sure it is defined." >&5
22059 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22060 which seems to be undefined.  Please make sure it is defined." >&2;}
22061
22062   rm -f "$tmp/stdin"
22063   case $ac_file in
22064   -) cat "$tmp/out"; rm -f "$tmp/out";;
22065   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22066   esac
22067  ;;
22068   :H)
22069   #
22070   # CONFIG_HEADER
22071   #
22072 _ACEOF
22073
22074 # Transform confdefs.h into a sed script `conftest.defines', that
22075 # substitutes the proper values into config.h.in to produce config.h.
22076 rm -f conftest.defines conftest.tail
22077 # First, append a space to every undef/define line, to ease matching.
22078 echo 's/$/ /' >conftest.defines
22079 # Then, protect against being on the right side of a sed subst, or in
22080 # an unquoted here document, in config.status.  If some macros were
22081 # called several times there might be several #defines for the same
22082 # symbol, which is useless.  But do not sort them, since the last
22083 # AC_DEFINE must be honored.
22084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22085 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22086 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22087 # PARAMS is the parameter list in the macro definition--in most cases, it's
22088 # just an empty string.
22089 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22090 ac_dB='\\)[      (].*,\\1define\\2'
22091 ac_dC=' '
22092 ac_dD=' ,'
22093
22094 uniq confdefs.h |
22095   sed -n '
22096         t rset
22097         :rset
22098         s/^[     ]*#[    ]*define[       ][      ]*//
22099         t ok
22100         d
22101         :ok
22102         s/[\\&,]/\\&/g
22103         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22104         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22105   ' >>conftest.defines
22106
22107 # Remove the space that was appended to ease matching.
22108 # Then replace #undef with comments.  This is necessary, for
22109 # example, in the case of _POSIX_SOURCE, which is predefined and required
22110 # on some systems where configure will not decide to define it.
22111 # (The regexp can be short, since the line contains either #define or #undef.)
22112 echo 's/ $//
22113 s,^[     #]*u.*,/* & */,' >>conftest.defines
22114
22115 # Break up conftest.defines:
22116 ac_max_sed_lines=50
22117
22118 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22119 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22120 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22121 # et cetera.
22122 ac_in='$ac_file_inputs'
22123 ac_out='"$tmp/out1"'
22124 ac_nxt='"$tmp/out2"'
22125
22126 while :
22127 do
22128   # Write a here document:
22129     cat >>$CONFIG_STATUS <<_ACEOF
22130     # First, check the format of the line:
22131     cat >"\$tmp/defines.sed" <<\\CEOF
22132 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22133 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22134 b
22135 :def
22136 _ACEOF
22137   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22138   echo 'CEOF
22139     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22140   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22141   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22142   grep . conftest.tail >/dev/null || break
22143   rm -f conftest.defines
22144   mv conftest.tail conftest.defines
22145 done
22146 rm -f conftest.defines conftest.tail
22147
22148 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22149 cat >>$CONFIG_STATUS <<\_ACEOF
22150   if test x"$ac_file" != x-; then
22151     echo "/* $configure_input  */" >"$tmp/config.h"
22152     cat "$ac_result" >>"$tmp/config.h"
22153     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22154       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22155 echo "$as_me: $ac_file is unchanged" >&6;}
22156     else
22157       rm -f $ac_file
22158       mv "$tmp/config.h" $ac_file
22159     fi
22160   else
22161     echo "/* $configure_input  */"
22162     cat "$ac_result"
22163   fi
22164   rm -f "$tmp/out12"
22165  ;;
22166
22167   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22168 echo "$as_me: executing $ac_file commands" >&6;}
22169  ;;
22170   esac
22171
22172
22173   case $ac_file$ac_mode in
22174     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22175    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22176     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22177    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22178     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22179    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22180     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22181    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22182     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22183    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22184     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22185    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22186     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22187    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22188     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22189    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22190     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22191    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22192     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22193    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22194     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22195    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22196     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22197    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22198     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22199    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22200
22201   esac
22202 done # for ac_tag
22203
22204
22205 { (exit 0); exit 0; }
22206 _ACEOF
22207 chmod +x $CONFIG_STATUS
22208 ac_clean_files=$ac_clean_files_save
22209
22210
22211 # configure is writing to config.log, and then calls config.status.
22212 # config.status does its own redirection, appending to config.log.
22213 # Unfortunately, on DOS this fails, as config.log is still kept open
22214 # by configure, so config.status won't be able to write to it; its
22215 # output is simply discarded.  So we exec the FD to /dev/null,
22216 # effectively closing config.log, so it can be properly (re)opened and
22217 # appended to by config.status.  When coming back to configure, we
22218 # need to make the FD available again.
22219 if test "$no_create" != yes; then
22220   ac_cs_success=:
22221   ac_config_status_args=
22222   test "$silent" = yes &&
22223     ac_config_status_args="$ac_config_status_args --quiet"
22224   exec 5>/dev/null
22225   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22226   exec 5>>config.log
22227   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22228   # would make configure fail if this is the last instruction.
22229   $ac_cs_success || { (exit 1); exit 1; }
22230 fi
22231
22232 #
22233 # CONFIG_SUBDIRS section.
22234 #
22235 if test "$no_recursion" != yes; then
22236
22237   # Remove --cache-file and --srcdir arguments so they do not pile up.
22238   ac_sub_configure_args=
22239   ac_prev=
22240   eval "set x $ac_configure_args"
22241   shift
22242   for ac_arg
22243   do
22244     if test -n "$ac_prev"; then
22245       ac_prev=
22246       continue
22247     fi
22248     case $ac_arg in
22249     -cache-file | --cache-file | --cache-fil | --cache-fi \
22250     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22251       ac_prev=cache_file ;;
22252     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22253     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22254     | --c=*)
22255       ;;
22256     --config-cache | -C)
22257       ;;
22258     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22259       ac_prev=srcdir ;;
22260     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22261       ;;
22262     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22263       ac_prev=prefix ;;
22264     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22265       ;;
22266     *)
22267       case $ac_arg in
22268       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22269       esac
22270       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22271     esac
22272   done
22273
22274   # Always prepend --prefix to ensure using the same prefix
22275   # in subdir configurations.
22276   ac_arg="--prefix=$prefix"
22277   case $ac_arg in
22278   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22279   esac
22280   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22281
22282   ac_popdir=`pwd`
22283   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22284
22285     # Do not complain, so a configure script can configure whichever
22286     # parts of a large source tree are present.
22287     test -d "$srcdir/$ac_dir" || continue
22288
22289     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22290     echo "$as_me:$LINENO: $ac_msg" >&5
22291     echo "$ac_msg" >&6
22292     { as_dir="$ac_dir"
22293   case $as_dir in #(
22294   -*) as_dir=./$as_dir;;
22295   esac
22296   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22297     as_dirs=
22298     while :; do
22299       case $as_dir in #(
22300       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22301       *) as_qdir=$as_dir;;
22302       esac
22303       as_dirs="'$as_qdir' $as_dirs"
22304       as_dir=`$as_dirname -- "$as_dir" ||
22305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22306          X"$as_dir" : 'X\(//\)[^/]' \| \
22307          X"$as_dir" : 'X\(//\)$' \| \
22308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22309 echo X"$as_dir" |
22310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22311             s//\1/
22312             q
22313           }
22314           /^X\(\/\/\)[^/].*/{
22315             s//\1/
22316             q
22317           }
22318           /^X\(\/\/\)$/{
22319             s//\1/
22320             q
22321           }
22322           /^X\(\/\).*/{
22323             s//\1/
22324             q
22325           }
22326           s/.*/./; q'`
22327       test -d "$as_dir" && break
22328     done
22329     test -z "$as_dirs" || eval "mkdir $as_dirs"
22330   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22331 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22332    { (exit 1); exit 1; }; }; }
22333     ac_builddir=.
22334
22335 case "$ac_dir" in
22336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337 *)
22338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22339   # A ".." for each directory in $ac_dir_suffix.
22340   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22341   case $ac_top_builddir_sub in
22342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22344   esac ;;
22345 esac
22346 ac_abs_top_builddir=$ac_pwd
22347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22348 # for backward compatibility:
22349 ac_top_builddir=$ac_top_build_prefix
22350
22351 case $srcdir in
22352   .)  # We are building in place.
22353     ac_srcdir=.
22354     ac_top_srcdir=$ac_top_builddir_sub
22355     ac_abs_top_srcdir=$ac_pwd ;;
22356   [\\/]* | ?:[\\/]* )  # Absolute name.
22357     ac_srcdir=$srcdir$ac_dir_suffix;
22358     ac_top_srcdir=$srcdir
22359     ac_abs_top_srcdir=$srcdir ;;
22360   *) # Relative name.
22361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22362     ac_top_srcdir=$ac_top_build_prefix$srcdir
22363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22364 esac
22365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22366
22367
22368     cd "$ac_dir"
22369
22370     # Check for guested configure; otherwise get Cygnus style configure.
22371     if test -f "$ac_srcdir/configure.gnu"; then
22372       ac_sub_configure=$ac_srcdir/configure.gnu
22373     elif test -f "$ac_srcdir/configure"; then
22374       ac_sub_configure=$ac_srcdir/configure
22375     elif test -f "$ac_srcdir/configure.in"; then
22376       # This should be Cygnus configure.
22377       ac_sub_configure=$ac_aux_dir/configure
22378     else
22379       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22380 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22381       ac_sub_configure=
22382     fi
22383
22384     # The recursion is here.
22385     if test -n "$ac_sub_configure"; then
22386       # Make the cache file name correct relative to the subdirectory.
22387       case $cache_file in
22388       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22389       *) # Relative name.
22390         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22391       esac
22392
22393       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22394 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22395       # The eval makes quoting arguments work.
22396       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22397            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22398         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22399 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22400    { (exit 1); exit 1; }; }
22401     fi
22402
22403     cd "$ac_popdir"
22404   done
22405 fi
22406